blackened666 Posted October 3, 2007 Report Share 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 Link to comment Share on other sites More sharing options...
andrisp Posted October 3, 2007 Report Share 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(); Link to comment Share on other sites More sharing options...
marcis Posted October 3, 2007 Report Share Posted October 3, 2007 un mysql_fetch_object izvada kā objektu nevis masīvu Link to comment Share on other sites More sharing options...
blackened666 Posted October 3, 2007 Author Report Share Posted October 3, 2007 No mysql_db_query() manuāļa lapas: Izmanto mysql_query(); un kāds varētu izskatītites kods? Link to comment Share on other sites More sharing options...
andrisp Posted October 3, 2007 Report Share Posted October 3, 2007 Tas manuālī arī ir. Un vispār man šķie pietiks, ja tu vienkārši nomainīsi funkcijas nosaukumu. Link to comment Share on other sites More sharing options...
blackened666 Posted October 3, 2007 Author Report Share 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 :) Link to comment Share on other sites More sharing options...
Recommended Posts