NYCPHP Meetup

[nycphp-talk] PHP REDIRECT

tedd tedd at sperling.com
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>
>    HTML coding
>    more HTML coding
>
><?PHP>
>    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 '

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the talk mailing list