mySQL Problem
- From: Einstein30000 <dominic_ernst@xxxxxx>
- Date: Wed, 07 Nov 2007 08:30:26 -0800
Hi,
in one of my php-scripts is the following query (with an already open
db-connection):
$q = "INSERT INTO main (name, img, descr, from, size, format, cat,
host, link, date) VALUES ('$name', '$img', '$descr', '$user', '$size',
'$format', '$cat', '$host', '$link', '$date')" or die(mysql_error());
And when the query gets executed i get back the following error:
You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'from, size, format, cat, host, link, date) VALUES ('bla', '-',
'keine', 'Holgi',' at line 1
Whats wrong here?!
cheers
.
- Follow-Ups:
- Re: mySQL Problem
- From: Shelly
- Re: mySQL Problem
- From: John Murtari
- Re: mySQL Problem
- From: Steve
- Re: mySQL Problem
- Prev by Date: Re: Furthering my education in OOP - where/how can one learn professional skills?
- Next by Date: Re: Problem using FPDF
- Previous by thread: Re: Problem reading/writing sockets
- Next by thread: Re: mySQL Problem
- Index(es):
Relevant Pages
|