25 |
. " AND element_id = " |
. " AND element_id = " |
26 |
. $element_id; |
. $element_id; |
27 |
|
|
28 |
$rs = mysql_query($sql, $con); |
$rs = xx_query($sql, $con); |
29 |
$row = mysql_fetch_array($rs); |
$row = xx_fetch_array($rs); |
30 |
|
|
31 |
// Resource |
// Resource |
32 |
$resource_id = $row["resource_id"]; |
$resource_id = $row["resource_id"]; |
101 |
. $user_ip |
. $user_ip |
102 |
. "')"; |
. "')"; |
103 |
|
|
104 |
if (!mysql_query($sql, $con)){ |
if (!xx_query($sql, $con)){ |
105 |
sql_err($con); |
sql_err($con); |
106 |
mysql_query ("UNLOCK TABLES", $con); |
xx_query ("UNLOCK TABLES", $con); |
107 |
bailout(); |
bailout(); |
108 |
} // bad write |
} // bad write |
109 |
else { |
else { |
110 |
mysql_query("UNLOCK TABLES", $con); |
xx_query("UNLOCK TABLES", $con); |
111 |
|
|
112 |
} // good write to the stats table |
} // good write to the stats table |
113 |
|
|