aurheim Posted March 23, 2007 Share Posted March 23, 2007 I have a object that will recive an array and make an optionbox out of it. Problem: It seams that im only able to copy the last result over to the array $enheter.Anyone able to point me to the right direction? $enhetquery = "SELECT EnhetsId,EnhetsNavn FROM tEnhet"; $db=new base(); $con=$db->connect(); $valg=$db->kompetansebase($con);//chooses DB $res=$db->ask($con,$enhetquery); $enheter=""; for ($i=0;$i<mssql_num_rows($res);++$i){ $enheter= mssql_fetch_row($res); } Quote Link to comment https://forums.phpfreaks.com/topic/43910-solved-copying-result-from-sqlserver-to-an-array/ Share on other sites More sharing options...
aurheim Posted March 24, 2007 Author Share Posted March 24, 2007 Found this http://www.phpfreaks.com/forums/index.php/topic,132142.0.html Problem solved Quote Link to comment https://forums.phpfreaks.com/topic/43910-solved-copying-result-from-sqlserver-to-an-array/#findComment-214221 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.