I have one script to give cubis for users online, plus it this selecting the DB somebody i can help me?
<?
mysql_connect('host', 'user', 'senh');
$data = date("Y/m/d H:i:s");
$Amount = 15000;
$pega_ids = mysql_query("SELECT userid FROM point WHERE zoneid='1'") or die(mysql_error());
$rows = mysql_num_rows($pega_ids);
for($i = 1; $i <= $rows; $i++){
mysql_query("call usecash('$pega_ids', '1', '1', '0', '$Amount', '1', '$data', @error)") or die (mysql_error());
}
?>


Reply With Quote

