The problem was with the ";" I ended my queries on each line (!!!)
Not needed for only one query -one for every line.

Thanks to you all and to those who send me prive

Now runs on server too, only I had to change the filename to upercase.(Linux
server)

Makis




> -----Original Message-----
> From: Carsten Gehling [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 11:23 PM
> To: savaidis; [EMAIL PROTECTED]
> Subject: SV: a query from php doen't work
>
>
> > Fra: savaidis [mailto:[EMAIL PROTECTED]]
> > Sendt: 17. april 2002 22:14
> > Emne: a query from php doen't work
>
> > I get a "Query failed" error on this:
> > What could hapent?
>
> Try to alter this line:
>
> $result=mysql_query($buffer);
>
> to look like this:
>
> $result=mysql_query($buffer) or die($buffer."<hr>".mysql_error());
>
> Then you will a) print the failed query, and b) print MySQL's own
> error-response. Then you cal probably figure out, what is wrong.
>
> - Carsten
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to