Jump to content

[SOLVED] stop mysql from taking desc as DESC


mike12255

Recommended Posts

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?

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.