Jump to content

heeeeeeeelp


zuro

Recommended Posts

what is wrong with this code?!?!?!?!?!?!!??!?!

 

<?php

mysql_connect("localhost", "root", "");

mysql_select_db("prazna");

$g=$GET_['podrucje_id'];

$a=mysql_query("select * from podrucje");

while($b=mysql_fetch_array($a))

{

print "<li>";

print "<a href='index.php?Id=" .$b['podrucje_id']. "'>" .$b['ime']. "</a>";

print "</li>";

}

 

if(!empty($g))

{

$opis=mysql_query("select opis from podrucje where podrucje_id='$g'");

while($opisp=mysql_fetch_array($opis))

{

print $opisp['opis'];

}

}

?>

Link to comment
https://forums.phpfreaks.com/topic/231211-heeeeeeeelp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.