View Single Post
Old 01-24-2008, 10:55 AM   #4 (permalink)
d4v1d
The Contributor
Good Samaritan 
 
d4v1d's Avatar
 
Join Date: Dec 2007
Location: Durban, South Africa
Posts: 51
Thanks: 1
d4v1d is on a distinguished road
Default

Ah, never mind... I forgot to add in the inverted commas in the sprintf...

PHP Code:
$insertSQL sprintf("INSERT INTO david_test (david_name) VALUES ('%s')"$_POST['Fname']); 
Sorry about that. I'm used to the old mysql functions, trying out the mysqli and everything is a bit different.
d4v1d is offline  
Reply With Quote