Jump to content

Unknown column


Marcel1993

Recommended Posts

Hey,

 

I've got a query in which a variable is interpreted as a column and I don't why this is caused.

 

$upgrade_time_sql = "SELECT * FROM todo_upgrades WHERE profile_id = ".$profile_id." AND level = ".$profile_data['level2_'.$show.'']." AND type = ".$show."";
$upgrade_time_res = mysql_query($upgrade_time_sql) or die (mysql_error());

 

$show is filled with the content "storage"

 

The mysql_error is

 

"Unknown column 'storage' in 'where clause'"

 

Thanks for helping.

Link to comment
https://forums.phpfreaks.com/topic/222432-unknown-column/
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.