hey everyone,
im trying to place message boxes in my php script in order to make sure my data is useful as i make my way through the page. i tried using the dl() function to register the w32api, then register the function, to then later call it. does anyone know if i am doing anything wrong. or if there is an extra step or two that i am missing. all i have been able to figure out what to do is what i have stated. if someone could point me in the right direction i would appreciate it.
im trying to place message boxes in my php script in order to make sure my data is useful as i make my way through the page. i tried using the dl() function to register the w32api, then register the function, to then later call it. does anyone know if i am doing anything wrong. or if there is an extra step or two that i am missing. all i have been able to figure out what to do is what i have stated. if someone could point me in the right direction i would appreciate it.
Code:
dl("php_w32api.dll");
w32api_register_function("User32.dll",
"MessageBoxA",
"long");
//run the query... enter info into database
$query = "INSERT INTO test (user_name, password, first_name, phone, email)
VALUES ('$username', '$password', '$name', 5555555555, '$email', NOW())";
$result = @mysql_query($query);
w32api_invoke_function("MessageBoxA", NULL, $query, "test", MB_OK);
MessageBoxA(NULL, $query, "test", MB_OK);
if($result)
{
echo "connection to the database was made and you were entered";
}
else
{
echo "something didnt work";
}