|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hello
Can any one help me... i got that error on delete script ERROR:You have an error in your SQL syntax near 'pictures where id = 18' at line 1 well that is my <?php $db = mysql_connect("localhost","kami","123"); mysql_select_db("file"); if (isset($_REQUEST['id'])) { $sql = "delete pictures where id = ${_REQUEST['id']}"; // $sql .= "WHERE id=${_REQUEST['id']};"; $query = mysql_query($sql) or die ("ERROR:".mysql_error()); } ?> so can u help it is uploading the files but it is not delete the files....i dont know where is the error so u people kindly help me in regarding this error... Bye take care Sweet dreams Last edited by kami butt : August 12th, 2004 at 01:37 PM. Reason: title mistake |
|
#2
|
||||
|
||||
|
$sql = "delete pictures where id = ${_REQUEST['id']}";
Should be $sql = "delete FROM pictures where id = ${_REQUEST['id']}"; |
|
#3
|
|||
|
|||
|
Quote:
Hello Okay right thank you to tell me. Bye |
|
#4
|
||||
|
||||
|
You're welcome
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > ERROR: in uploading image file. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|