Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Problem z podstrona htmlspecialchars
xXxGrandxXx
post 29.01.2015, 21:55:43
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 23.11.2012

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


Witam smile.gif
Mam problem ktory polega na tym ze ani obrazek ani opis nie są wyswietlane, natomiast div pokazuje sie normalnie.
ID - jest pobierane z linku np: index.php?id=2

  1. $ids = htmlspecialchars($_GET["id"]);
  2. $query = mysql_fetch_array(mysql_query("SELECT FROM farmer_nasiona WHERE nasiono = '$ids' "));
  3.  
  4.  
  5. if($_GET['id']){
  6.  
  7. echo "
  8. <div id='poka'><center><br>
  9. <img src='mhpic/".$query['identyfikator'].".jpg' width='200'/>
  10. <font size='2'>".$query['opis']."</font>
  11. </div>
  12. ";
  13.  
  14. }

Go to the top of the page
+Quote Post
pasman
post 29.01.2015, 23:09:20
Post #2





Grupa: Zarejestrowani
Postów: 70
Pomógł: 4
Dołączył: 16.03.2012

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


Czy gdzieś łączysz się do bazy ?
Go to the top of the page
+Quote Post
xXxGrandxXx
post 29.01.2015, 23:32:00
Post #3





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 23.11.2012

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


Oczywiscie wink.gif wszystko działa normalnie tylko problem wlasnie z tym wyswietlaniem img i opisu
Go to the top of the page
+Quote Post
markuz
post 30.01.2015, 00:22:42
Post #4





Grupa: Zarejestrowani
Postów: 1 240
Pomógł: 278
Dołączył: 11.03.2008

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


  1. var_dump($query)
- co wyświetla?


--------------------
Go to the top of the page
+Quote Post
xXxGrandxXx
post 30.01.2015, 02:23:35
Post #5





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 23.11.2012

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


NULL

Okej juz sie z tym uporałem wink.gif
Dzieki ! smile.gif
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 8.07.2025 - 01:53