Jump to content

[SOLVED] How Do You Display Full Error Info?


limitphp

Recommended Posts

mysql_query($query_playlist) or die ("SQL Was (playlist): " . $query_playlist . "<br />Mysql Returned: " . mysql_error());

thank you...

 

SQL Was (playlist): SELECT p.name FROM playlists p INNER JOIN user u ON p.userID = u.userID WHERE u.username = u2 AND p.nameHash = Punk-Rock LIMIT 1

Mysql Returned: Unknown column 'u2' in 'where clause'

 

I don't understand why its saying u2 is a column, when its really a value in a column??

Because you do not have single quotes around it.

 

u.username = 'u2'   is what it should be.

 

oh yeah....

 

the actual code looks like this:

WHERE u.username = ".clean($p_username,'sql')."

 

I forgot to add those single quotes in there....

 

thank you....

 

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.