Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z podstrona htmlspecialchars
xXxGrandxXx
post
Post #1





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

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


Witam (IMG:style_emoticons/default/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
 
Start new topic
Odpowiedzi (1 - 4)
pasman
post
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
Post #3





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

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


Oczywiscie (IMG:style_emoticons/default/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
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
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 (IMG:style_emoticons/default/wink.gif)
Dzieki ! (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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 - 23:57