Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mysql_numrows();, Blad
andy84
post
Post #1





Grupa: Zarejestrowani
Postów: 165
Pomógł: 0
Dołączył: 14.11.2005
Skąd: London

Ostrzeżenie: (0%)
-----


witam to moj skrypt
  1. <?
  2. $username="root";
  3. $password="";
  4. $dbname="formularz";
  5. mysql_connect(localhost,$username,$password);
  6. @mysql_select_db($dbname) or die("unable to connect to database");
  7. $query="SELECT*FORM dane";
  8. $result=mysql_query($query);
  9.  
  10. $num=mysql_numrows($result);
  11.  
  12. echo "<b><center>Customer informations</center></b><br><br><br>";
  13.  
  14. $i=0;
  15. while ($i<$num){
  16. $first=mysql_result($result,$i,'first');
  17. $last=mysql_result($result,$i,'last');
  18. $email=mysql_result($result,$i,'email');
  19. $address=mysql_result($result,$i,'address');
  20. $city=mysql_result($result,$i,'city');
  21. $town=mysql_result($result,$i,'town');
  22. $zip=mysql_result($result,$i,'zip');
  23. $tel=mysql_result($result,$i,'tel');
  24. $fax=mysql_result($result,$i,'fax');
  25. $service=mysql_result($result,$i,'option');
  26. $comment=mysql_result($result,$i,'comment');
  27.  
  28. echo "$first $last<br>$email<br>$address<br>$city<br>$town<br>$zip<br>$tel<br>$fax<br>$service<br>$comment";
  29. $i++;
  30. }
  31. ?>

nie iwemczemu mysql_numrows mi wywala blad (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) jak dubluje jakis temat to przepraszam moze poprostu nie szukame dobrze
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 05:45