Jump to content

Syntax for update? Errors?


Skipjackrick

Recommended Posts

This is obviously not the correct syntax for update because I keep getting an error.

 

what do I have incorrect?

 

 

<?php
$result = mysql_query("UPDATE submit 

SET 	submit_id=175,
	team_id=17,
	angler='Ay Jay',
	species_id=5,
	points=10,
	length=0,
	yyyy=2008,
	mm=03,
	dd=30,
	image='rick1.jpg',
	region_id=1

WHERE submit_id=175,
	team_id=17,
	angler='Ay Jay',
	species_id=4,
	points=20,
	length=0,
	yyyy=2008,
	mm=03,
	dd=30,
	image='rick1jpg',
	region_id=1") 

or die(mysql_error());  
?>

Link to comment
https://forums.phpfreaks.com/topic/98840-syntax-for-update-errors/
Share on other sites

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.