59 |
|
|
60 |
|
|
61 |
function xx_insert_id($con = 0) { |
function xx_insert_id($con = 0) { |
62 |
|
|
63 |
|
die ("xx_insert_id called"); |
64 |
|
|
65 |
if ($con == 0) { |
if ($con == 0) { |
66 |
$con = $GLOBALS['xx_dbh']; |
$con = $GLOBALS['xx_dbh']; |
67 |
} |
} |
122 |
|
|
123 |
XXX_debug("xx_query [transformed]: $sql"); |
XXX_debug("xx_query [transformed]: $sql"); |
124 |
|
|
|
$ret = $con->query($sql); |
|
|
|
|
125 |
$GLOBALS["xx_element_nr $ret"] = 0; |
$GLOBALS["xx_element_nr $ret"] = 0; |
126 |
|
|
127 |
|
$ret = $con->query($sql); |
128 |
|
|
129 |
|
if ($db->isError($ret)) { |
130 |
|
#die($db->getUserInfo()); |
131 |
|
die($db->DebugInfo()); |
132 |
|
} |
133 |
|
|
134 |
# $GLOBALS["pg_last_oid"] = pg_last_oid($ret); |
# $GLOBALS["pg_last_oid"] = pg_last_oid($ret); |
135 |
if ($ret) { |
if ($ret) { |
136 |
return $ret; |
return $ret; |