Jump to content
Larry Ullman's Book Forums

Recommended Posts

Yo Larry


For some reason my script only works when I quote the integer i.e '%d'


$q = sprintf("INSERT INTO tasks (parent_id, task) VALUES ('%d', '%s')", $parent_id,
mysqli_real_escape_string($dbc, strip_tags($_POST['task'])));


If I don't do this the task does not get added. Any ideas?


PHPStorm hinted that I should do this.


I'm using - Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15



Thanks for the great work


Link to comment
Share on other sites


  • Create New...