development, then you do not usually
write to files. You use database. If there is something you absolutely
HAVE to write to file, then you can use /tmp directory for that
purposes.
--
Best regards,
Leonid Mamtchenkov, RHCE
System Administrator
Francoudi Stephanou Ltd.
BOFH: It's stuck
]]
Sent: Wednesday, September 18, 2002 7:41 PM
To: PHP
Subject: Re: [PHP] Auto-increment value
MySQL has |LAST_INSERT_ID() function, try it (SELECT ||LAST_INSERT_ID())|
--
Best regards,
Leonid Mamtchenkov, RHCE
System Administrator
Francoudi Stephanou Ltd.
BOFH: HTTPD Error 666 : BOFH
that 24807 is your oid. Check the difference between
SELECT * FROM table; and SELECT oid,* FROM table;.
HTH.
-- snip snip --
if($result = pg_exec($db, $sql))
{
$query = success;
echo oid : .pg_last_oid($result);
}
-- snip snip --
--
Best regards,
Leonid
of examples at
http://www.freshmeat.net or any other software repository.
Do not reinvent the wheel. ;)
--
Best regards,
Leonid Mamtchenkov, RHCE
System Administrator
Francoudi Stephanou Ltd.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
There is a benchmarking utlity that comes with apache, called ab.
HTH.
--
Best regards,
Leonid Mamtchenkov, RHCE
System Administrator
Francoudi Stephanou Ltd.
BOFH excuse #159:
Stubborn processes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo