homers Posted October 26, 2009 Report Share Posted October 26, 2009 (edited) Tatad man vajag izvilkt komandas sastavu, bet skripts izvēlk tikai vienu spēletaju.. kods: <?php { $results=mysql_query("SELECT * FROM komandas_sastavs WHERE id=".$_GET['id']."") or die(mysql_error()); $s = mysql_fetch_array($results); echo "» <a href='?p=user&id={$s['playera_id']}'>{$s['playera_n']}</a><br>"; } ?> Edited October 26, 2009 by homers Quote Link to comment Share on other sites More sharing options...
Val Posted October 26, 2009 Report Share Posted October 26, 2009 paskaties piemērus. http://php.net/manual/en/function.mysql-fetch-array.php Quote Link to comment Share on other sites More sharing options...
tas_pats Posted October 26, 2009 Report Share Posted October 26, 2009 (edited) bet tu takš arī atlasi tikai vienu ierakstu! Edited October 26, 2009 by tas_pats Quote Link to comment Share on other sites More sharing options...
euphoric Posted October 26, 2009 Report Share Posted October 26, 2009 Iebāz ciklā ;) Quote Link to comment Share on other sites More sharing options...
Kavacky Posted October 26, 2009 Report Share Posted October 26, 2009 Ciklu pašu var kaut kur iebāzt. Quote Link to comment 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.