Re: [PHP] server error or script error

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 3:38 am, Ross wrote: ?php include ('../phpscripts/connect.php'); $id = $_GET['id']; $query = SELECT * FROM mypdfs WHERE id =$id; $result= mysql_query($query) or die('Error, query failed'); if (!mysql_num_rows($result)) { die(No matching records were found in

RE: [PHP] server error or script error

2007-03-08 Thread Flavien CHANTELOT
I guess the problem is here : $query = SELECT * FROM mypdfs WHERE id =$id; Change it to : $query = SELECT * FROM mypdfs WHERE id =.$id; -Message d'origine- De : Ross [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 mars 2007 09:39 À : php-general@lists.php.net Objet : [PHP] server error or

Re: [PHP] server error or script error

2007-03-08 Thread Ross
This script change does not make a difference. What could have been turned on/off on the server to cause this? I can output the binary to screen but I cannot create the pdf. R. Flavien CHANTELOT [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I guess the problem is here : $query =

Re: [PHP] server error or script error

2007-03-08 Thread Tijnema !
On 3/8/07, Ross [EMAIL PROTECTED] wrote: ?php include ('../phpscripts/connect.php'); $id = $_GET['id']; $query = SELECT * FROM mypdfs WHERE id =$id; $result= mysql_query($query) or die('Error, query failed'); if (!mysql_num_rows($result)) { die(No matching records were found in the