Mailinglisten-Archive |
Moin Moin ,
Ich frag mich, wann ich mysql_free_result eigentlich brauche?
$query = "INSERT INTO $tb (msgid) VALUES ('$msgid')";
if ($result = mysql_db_query($db, $query))
{
echo "<BR>----OK--------------------------------MSG:$msgid-----------------------------";
if (!mysql_free_result($result)) { echo "<BR>NO FREE RESULT<BR>"; }
}
else
{
echo "<BR>---NOK-MSG:$msgid----Result:$result---Verbindung:$verbindung-----------------";
}
Bei obigem Code bekomme ich IMMER den Fehler:
Warning: 1 is not a MySQL result index in /home/para.....
Ich hab die Zeile jetzt einfach auskommentiert und es laeuft. ??
Brauche ich mysql_free_result nur NACH Aufrufen wie z.B.: mysql_fetch_array ?
Ich sach 42 und DANKE, Martin
----- _ _ _ _ . . _ _ . . _ .
|-' /-\ |-< /-\ |\| (_) |-< |\/| /-\ |_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eMail = mailto:mrieth_(at)_paranormal.de
Homepage = http://www.paranormal.de/
php::bar PHP Wiki - Listenarchive