
July 26th, 1999, 06:39 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Um, no, you can't. The variables are not passed to mysql. Mysql has no idea what's in your php variables. php must pass the data in the variables to mysql and if there is a single quote it WILL send back an error. To prevent this you need to use addslashes().
$query="insert into $table values('addslashes($data)','addslashes($moredata)')";
[This message has been edited by rod k (edited 07-26-99).]
[This message has been edited by rod k (edited 07-26-99).]
|