10-24-2007, 01:21 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Oct 2007
Location: US
Posts: 66
Thanks: 19
|
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.
|
|
|