I have one mysql linkid in an include.
$dbcon1=mysql_connect("localhost","root","pass") or die(mysql_error);
mysql_select_db("ttsalescom")or die(mysql_error);
The PHP manual says that to use mysql_affected_rows, you run your query, then use the mysql_affected_rows function as follows...
$arupdate1 = mysql_query("UPDATE PROFIT SET addretgamt = '{$aramount2}', type = '{$x}' WHERE mid = '{$armid2}' AND ReportDate = '{$arprocdate1}'");
$logquery1 = mysql_affected_rows($dbcon1);
I have many more queries using the same linkid. What do I do?
Thanks,
Adam