[Typo3-dev] whats mysql($typo3_db, $query) - sorry for hijacking :-)
Rainer Kuhn
kuhn at punkt.de
Tue Mar 23 14:37:15 CET 2004
Some more information about mysql() - just for historical interest: ;)
mysql($typo3_db, $query) is an old function of php2
(http://museum.php.net/php2/). This is from the php-2.0 doc:
=====
$result = mysql($database,$query)
mysql sends a mysql query. Arguments are the database name and the query
string. ie. <?mysql("MyDatabase" , "select * from table")>. The return value
from this function is a result identifier to be used to access the results
from the other mysql_ functions. A result identifier is a positive integer.
The function returns 0 when no result identifier is created. This is the
case with any queries that do not return anything, such as create, update,
drop, insert and delete. The function will return -1 if an error occurs. A
string describing the error will be placed in $phperrmsg, and unless the
function was called as @mysql() then this error string will also be printed
out. This function is only available if mysql support has been enabled in PHP.
=====
Regards,
Rainer
Robert Lemke wrote:
> TYPO3 is using an undocumented php function.
>
> For even less information about this function see the ZEND website:
>
> http://www.zend.com/phpfunc/function.mysql.php
More information about the TYPO3-dev
mailing list