blackened666 Posted October 3, 2007 Report Posted October 3, 2007 Sveiki, vai varat palīdzēt? kad uzrakstu šadu kodu $SQL="SELECT * FROM par_mums where lang='lv'"; echo $SQL; $rez = mysql_db_query ($datubaaze, $SQL ,$db); while ($row = mysql_fetch_object($rez)) { echo $row['tema']; echo $row['saturs']; echo $row['lang']; echo "<br />"; echo "<br>"; } tad man lapā rādās SELECT * FROM par_mums where lang='lv' Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\wamp\www\CS_NEW\index_www.php on line 61 61 rindiņa ir: while ($row = mysql_fetch_object($rez)) Lietoju WAMP 1.7. 3
andrisp Posted October 3, 2007 Report Posted October 3, 2007 No mysql_db_query() manuāļa lapas: Returns a positive MySQL result resource to the query result, or FALSE on error. The function also returns TRUE/FALSE for INSERT/UPDATE/DELETE queries to indicate success/failure. Izmanto mysql_query();
marcis Posted October 3, 2007 Report Posted October 3, 2007 un mysql_fetch_object izvada kā objektu nevis masīvu
blackened666 Posted October 3, 2007 Author Report Posted October 3, 2007 No mysql_db_query() manuāļa lapas: Izmanto mysql_query(); un kāds varētu izskatītites kods?
andrisp Posted October 3, 2007 Report Posted October 3, 2007 Tas manuālī arī ir. Un vispār man šķie pietiks, ja tu vienkārši nomainīsi funkcijas nosaukumu.
blackened666 Posted October 3, 2007 Author Report Posted October 3, 2007 Tas manuālī arī ir. Un vispār man šķie pietiks, ja tu vienkārši nomainīsi funkcijas nosaukumu. Liels paldies :)
Recommended Posts