Afficher un message
Vieux 26/04/2006, 21h32   #5
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: INSERT query runs in mysql client, but not in PHP.

Bill Karwin wrote:
> Often, mismatched quotes and
> other errors introduced by the variables become obvious if you look at
> the SQL that is actually executed.


For example, can the value of any of these variables contain
single-quotes or apostrophe characters?

$title = $_POST['title'];
$intro = $_POST['intro'];
$full = $_POST['full];

Read http://www.php.net/manual/en/functio...ape-string.php
for an explanation, and examples of fixing the problem.

Regards,
Bill K.
  Réponse avec citation
 
Page generated in 0,05631 seconds with 9 queries