View Single Post
Old 10-24-2007, 01:21 AM   #2 (permalink)
Gurnk
The Contributor
Upcoming Programmer 
 
Gurnk's Avatar
 
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
Gurnk is on a distinguished road
Default

This is all I use to insert something into a table. It seems to work for me. I don't know if you can use the sprintf function with this method, as I'm not to familiar with sprintf.
PHP Code:
$query "INSERT INTO images (field, field, field) VALUES ('$variable', '$variable', '$variable')";
$result mysql_query($query); 
Of course you can do that in one variable, but I like having them separate.
Send a message via MSN to Gurnk
Gurnk is offline  
Reply With Quote