Jump to content

Inserting variables into SQL?


AncientSage

Recommended Posts

Hello,

I'm attempting to put variables into a column, but it appears to be giving me problems:

[code]
INSERT INTO file (id, song_filename, song_name, song_author, song_genre) VALUES ('', $file, $name, $type, $description);
[/code]

Yeah, it's telling me "unknown column *putvalueof$filehere* in"

It's thinking the variables are columns, how would I get around this?
Link to comment
https://forums.phpfreaks.com/topic/16355-inserting-variables-into-sql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.