Re: [PHP4BETA] MySQL module #2
| From: | mcgarry at tig dot com dot au | Date: | Sun, 05 Sep 1999 10:44:37 +0000 |
| Subject: | Re: [PHP4BETA] MySQL module #2 | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4122@lists.php.net to get a copy of this message | ||
> Just gave it a try and it looked pretty good, until I tried to use
> mysql_insert_id(). In the apache error_log I found the following :-(
>
> [Sun Sep 5 13:34:33 1999] [notice] child pid 24305 exit signal Segmentation fault
Yeah,
I wrote an email to Zeev earlier saying I thought it was working fine,
but I think I may have still been running PHP3 (dufus alert!).
I get a similar Segmentation fault running the following script:
======
<?PHP
require 'dbconnect.inc';
$result = mysql_query("INSERT INTO webproj.categories (PARENT_ID,
CATEGORY_ID, DESCRIPTION, ACTIVE, POSITION) VALUES ('".$PARENT_ID."',
'', '".$CAT_NAME."', '0', '9')");
header("Location: catalogue.php3?CAT_ID=$PARENT_ID");
?>
======
dbconnect.inc connects using:
======
$connection = mysql_pconnect($dbhost, $dbuser , $dbpasswd);
======
The query itself is successful as far as the database is concerned, ie
the data is successfully inserted into the database.