Hey,
My PHP isn't great, I need to preform a different task depending on the result of the sql query, I have.....
for( p=0; p<3; p++)
{
<?php
// Request the info
$result = mysql_query("SELECT psword FROM db WHERE psword='password'"
;
if (!$result) {
echo("<P>Error performing query: " .mysql_error() . "</P>"
;
exit();
}
else
if ($result == password ){
<a href="menu.html"></a>
}
else
if( p=2 ){
echo("<P>Account not blocked</P>"
;
exit();
?>
}
If result from query is the same as the password that was read in I want it to go directly to menu.html, is a link correct here ?
Thanks for any help,
Angua
My PHP isn't great, I need to preform a different task depending on the result of the sql query, I have.....
for( p=0; p<3; p++)
{
<?php
// Request the info
$result = mysql_query("SELECT psword FROM db WHERE psword='password'"

if (!$result) {
echo("<P>Error performing query: " .mysql_error() . "</P>"

exit();
}
else
if ($result == password ){
<a href="menu.html"></a>
}
else
if( p=2 ){
echo("<P>Account not blocked</P>"

exit();
?>
}
If result from query is the same as the password that was read in I want it to go directly to menu.html, is a link correct here ?
Thanks for any help,
Angua