อายเด้...
<?
require_once('../Connections/connect.php');
mysql_connect("localhost","root","$password_connect");
mysql_select_db("psrh");
$sqlSelect = " select * from request1 ";
$sqlSelect = " update request1 set statusPRINT = 1 where date between '2011-10-6' and '2011-11-5' ";
mysql_query($sqlSelect);
<?
require_once('../Connections/connect.php');
mysql_connect("localhost","root","$password_connect");
mysql_select_db("psrh");
$sqlSelect = " select * from request1 where date between '2011-10-6' and '2011-11-5' ";
$sqlSelect = " update request1 set statusPRINT = 1 ";
mysql_query($sqlSelect);
?>
Code (PHP)
$query=mysql_query("slect * from request1 where date between '' and '' ");
$result=mysql_fetch_array($query);
$result=$result['id'];
for($id=1; $id<=$result; $id++){
$query2=mysql_query("update request1 set statusPRINT='1' where id= ' $result['$id'] ' ");
}
อายเด้...
<?
require_once('../Connections/connect.php');
mysql_connect("localhost","root","$password_connect");
mysql_select_db("psrh");
$sqlSelect = " select * from request1 ";
$sqlSelect = " update request1 set statusPRINT = 1 where date between '2011-10-6' and '2011-11-5' ";
mysql_query($sqlSelect);