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); } 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 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
Archived
This topic is now archived and is closed to further replies.