[PHP] Function Not Working...Little help

2009-11-05 Thread Don Wieland
Hello, I am trying to get this function working but it gives me a PHP error (blank page): function Validate_Page_Nav($LastPage, $ErrorPage) { $trimmed = str_replace($staffroot, '', $_SERVER['SCRIPT_NAME']); $resul = $db-query(SELECT * FROM Page_Access WHERE URI = '$trimmed') or die(failed

[PHP] function not working after header call

2001-05-08 Thread Johannes Janson
Hi, I just don't get it...I have a form where the user enters name, surname and a personal code. The action page checks for correct input which is only letters for the two names and only numbers for the code. If there is a wrong input in one of the fields a variable is set which is then (amongst

Re: [PHP] function not working after header call

2001-05-08 Thread Johannes Janson
Well, what can I say??? Magic windows Reboot the system or post a message and it works! johannes Johannes Janson [EMAIL PROTECTED] schrieb im Newsbeitrag 9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]... Hi, I just don't get it...I have a form where the user enters

Re: [PHP] function not working?

2001-02-28 Thread Chris Lee
your function function display_contents($table,$session) { $count = 0; $result = mysql_query( "SELECT * FROM $table WHERE session = '$session'"); while($row = mysql_fetch_array($result)) { $result_inv = mysql_query( "SELECT * FROM retailseafood WHERE pid = '{$row['items']}'

[PHP] function not working?

2001-02-27 Thread Kurth Bemis
i can't get his function to work. i pass the correct data to it...but no results heres the function function display_contents($table,$session) { $count = 0; $result = mysql_query( "SELECT * FROM $table WHERE session='$session'");