Multi MySQL Queries not executing :(
When I run this query directly from phpMyAdmin, it works perfectly, but when trying to process it from a URL as a php file, it doesn't update.
I know there no issues with connecting to the database (db-connect.php) because I use the same file for other single query without any issues.
What am I doing wrong?
<?php
require_once('/home/db-connect.php'); // connect to db
$ query = "
UPDATE base SET id = 84 WHERE id = 2 && value <=19;
UPDATE base SET id = 2 WHERE id = 84 && value >=20;
UPDATE base SET id = 78 WHERE id = 18 && value <=19;
UPDATE base SET id = 18 WHERE id = 78 && value >=20;
UPDATE base SET id = 79 WHERE id = 46 && value <=19;
UPDATE base SET id = 46 WHERE id = 79 && value >=20;
UPDATE base SET id = 80 WHERE id = 12 && value <=19;
UPDATE base SET id = 12 WHERE id = 80 && value >=20";
$ result = @mysql_query($ query);
mysql_close($ dbc);
?>
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
Great Success is built from many little successes!
http://www.timbrownlaw.com - My Wee Part of the World.
http://www.LookingOverMyShoulder.com
Great Success is built from many little successes!
http://www.timbrownlaw.com - My Wee Part of the World.
http://www.LookingOverMyShoulder.com
Great Success is built from many little successes!
http://www.timbrownlaw.com - My Wee Part of the World.
http://www.LookingOverMyShoulder.com
Great Success is built from many little successes!
http://www.timbrownlaw.com - My Wee Part of the World.
http://www.LookingOverMyShoulder.com