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? Quote 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` Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.