【发布时间】:2016-01-03 20:21:59
【问题描述】:
我开发了一个小脚本来更新两个表中的一些字段。查询运行没有错误,但出于任何原因,这些字段没有任何反应。我确定我遗漏了一些东西,但我不知道是什么。有什么想法吗?
<?php
//connection to the database
$connect=mysql_connect("localhost","xxxxxx","xxxxxxxxx") or
die("Unable to Connect"); echo ("Connected to server<br>");
//select a database to work with
mysql_select_db("xxxxxxxx") or die("Could not open the db"); echo ("Connected to database<br>");
//execute the SQL query tu update Price taxes on Products
$sql= "UPDATE pslpn_product SET id_tax_rules_group='68'";
$sql= "UPDATE pslpn_product_shop SET id_tax_rules_group='68'";
or die ('Could not update data: ' . mysql_error());
//close the connection
echo ("Finalizado<br>")
?>
【问题讨论】:
标签: phpquery