m0zus Posted December 23, 2006 Report Share Posted December 23, 2006 (edited) Kāds lūdzu var pateikt kur ir kļūda? Man viņš neko neizmet :( <?php $connect=mysql_connect ("localhost", "root", "") or die(mysql_error()); $db=mysql_select_db ("dbtest",$connect); $result = mysql_query("SELECT * FROM test") while($row = mysql_fetch_array( $result )) { if $row['testrow] == 'z' { $kautkas = "kautkas"; } echo $kautkas; } ?> Edited December 23, 2006 by m0zus Link to comment Share on other sites More sharing options...
bubu Posted December 23, 2006 Report Share Posted December 23, 2006 Tev skripts ir nekorekts. Sintaktiskas kļūdas. php.ini failā atrodi display_errors un uzliec to uz On. Link to comment Share on other sites More sharing options...
ok1 Posted December 24, 2006 Report Share Posted December 24, 2006 (edited) Šādi vajadz�#8220;tu visam iet: <?php $connect=mysql_connect ("localhost", "root", "") or die(mysql_error()); $db=mysql_select_db ("dbtest",$connect); $result = mysql_query("SELECT * FROM test") while($row = mysql_fetch_array($result)) { if($row['testrow] == 'z') { echo "kautkas"; } } ?> Bet ja godīgi, tad tavs kods ir pilnīgi nepareizs :D Edited December 24, 2006 by ok1 Link to comment Share on other sites More sharing options...
Recommended Posts