mike12255 Posted June 14, 2009 Share Posted June 14, 2009 im trying to query something into my table that has an element called desc so when i query something in i use: <?php $sql8 ="INSERT INTO fourm_subcats (catid,name,'desc',admin)VALUES ('".$cat."','".$name."', '".$desc."', '".$row7['admin']."')"; ?> but mysql is taking the desc name to be DESC(the descending function) and its causing an error, anyway to get around this? Link to comment https://forums.phpfreaks.com/topic/162103-solved-stop-mysql-from-taking-desc-as-desc/ Share on other sites More sharing options...
Maq Posted June 14, 2009 Share Posted June 14, 2009 Use backticks NOT single quotes to escape field names. `desc` Link to comment https://forums.phpfreaks.com/topic/162103-solved-stop-mysql-from-taking-desc-as-desc/#findComment-855425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.