IronChefMorimoto
Limp Gawd
- Joined
- Apr 14, 2002
- Messages
- 273
I'm having trouble accessing the row that I'm updating via the SQL update statement below. I'm parsing the results with mysql_fetch_row($submitQuery) and trying to access the 'master_count' field via $submitQueryRow['master_count'] -- it comes up empty.
How do I access the row data that I just updated AFTER the query?
Thanks,
IronChefMorimoto
How do I access the row data that I just updated AFTER the query?
Code:
<?php
$submitConfigID = $_POST["rank_config_id"];
$submitRawData = $_POST["rank_data"];
$submitData = explode(",", $submitRawData);
$submitDataLen = count($submitData);
$submitCon = mysql_connect("dumbasscentral.org","xyz","xyz");
if (!$submitCon)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("xyz", $submitCon);
$submitQuery = mysql_query("UPDATE cxn_RankConfig SET master_count = master_count + 1 WHERE id = '$submitConfigID'");
?>
Thanks,
IronChefMorimoto