[nycphp-talk] PHP REDIRECT

tedd tedd at
Wed Sep 5 08:36:56 EDT 2007

At 11:26 AM +0100 9/5/07, PaulCheung wrote:
>Can anybody help? I am using "MAINMENU" built in HTML forms to get 
>to get me to where I want to be (Add, Update or Print record) and of 
>course, I cannot update or print a record that does not exist yet. 
>Here is a snippet of the coding.
><?PHP session_start(); PHP?>
>    HTML coding
>    more HTML coding
>    PHP coding
>    more PHP coding
>$q="Select SQL_CALC_FOUND_ROWS * FROM test_table
>WHERE customer = $customer ORDER BY invoices LIMIT $cps, $rpp";
>    PHP coding
>    more PHP coding
>    more coding
>if ($number_of_records == 0)
>    {$link = "http://localhost/mainmenu.php";}
>I have also tried
>header('Location: http://localhost/mainmenu.php);

header('Location: http://localhost/mainmenu.php'); <-- missing '



More information about the talk mailing list