Jump to content

[SOLVED] if succees go here


ball420

Recommended Posts

i want to have the succes echo a particular web page not a link to the pae i have tried a few combinations but all with errors. here is my success code

//check if query successful 
if($result){
echo "Successful";
echo "<BR>";
echo "<a href='viewguestbook.php'>View guestbook</a>"; // link to view guestbook page 
}

else {
echo "ERROR";
}

mysql_close();

Link to comment
https://forums.phpfreaks.com/topic/56406-solved-if-succees-go-here/
Share on other sites

i'm getting an error on line 39 but it all looks right to me

 

 
//check if query successful 
if($result){
header("Location: restaurant.php);   //do i have to specify a url?? or just the page
}

else {
//this is line 39     echo "ERROR";

}
mysql_close();  

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.