Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Status gg
mausik
post
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 20.08.2009

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


Witam, ciągle piszę swój 1 skrypt. Teraz mam problem z umieszczeniem statusu gg w pliku php który czyta dane (IMG:style_emoticons/default/smile.gif)

Numer gg z tabeli gg czyta, ale nie wiem jak zrobić by był odnośnik z obecnym statusem gg.

Mój kod od tego pliku wygląda tak.

  1. <?php
  2. include ('header.php');
  3. ?>
  4.  
  5. <center>
  6. <?
  7. @$db = mysql_pconnect("localhost", "mausik_test", "mojetajnehaslo");
  8. $wyborbazy=@mysql_select_db("mausik_test");
  9. $query = "select * from prezenterzy";
  10. $result = mysql_query($query);
  11. $num_results =mysql_num_rows($result);
  12.  
  13. print "<p>Prezenterów w bazie danych: ".$num_results."</p>";
  14. for ($i=0; $i <$num_results; $i++) {
  15. $row = mysql_fetch_array($result);
  16. print stripslashes($row["imie"] );
  17. print "<br>";
  18. print stripslashes($row["ksywka"] );
  19. print "<br>";
  20. print stripslashes($row["stanowisko"] );
  21. print "<br>";
  22. print stripslashes($row["gg"] );
  23. print "<br>";
  24. }
  25. ?>
  26.  
  27.  
  28.  
  29.  
  30.  
  31. <?php include ('footer.php'); ?>


Myślałem coś typu

  1. <a href="gg:[wczytać numer z bazy]"><img src="http://www.gadu-gadu.pl/users/status.asp?id=[wczytać numer z bazy]" border="0"></a>


lecz nie wiem jak to wykonać, proszę o pomoc
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: 22.08.2025 - 13:04