Re: [PHP] server error or script error

2007-03-12 Thread Richard Lynch
On Thu, March 8, 2007 3:38 am, Ross wrote: > > 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 fou

Re: [PHP] server error or script error

2007-03-08 Thread Tijnema !
On 3/8/07, Ross <[EMAIL PROTECTED]> wrote: I use this script but is had sudenly stop working. I think it is a config change on the remote server. The porblem is the file either doesn't open or downloads as download.php Can anyone suggest a way to improve this script or debug to fins out if it

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 : $que

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