zuro Posted March 20, 2011 Share Posted March 20, 2011 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']; } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/231211-heeeeeeeelp/ Share on other sites More sharing options...
Pikachu2000 Posted March 20, 2011 Share Posted March 20, 2011 What errors is it giving you? Quote Link to comment https://forums.phpfreaks.com/topic/231211-heeeeeeeelp/#findComment-1190047 Share on other sites More sharing options...
zuro Posted March 20, 2011 Author Share Posted March 20, 2011 it wont work... Quote Link to comment https://forums.phpfreaks.com/topic/231211-heeeeeeeelp/#findComment-1190051 Share on other sites More sharing options...
pets2soul Posted March 21, 2011 Share Posted March 21, 2011 If this is a typo finding game....I would say... $g=$GET_['podrucje_id']; should be $g=$_GET['podrucje_id']; Quote Link to comment https://forums.phpfreaks.com/topic/231211-heeeeeeeelp/#findComment-1190174 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.