Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Fetch mysql results into an array using PHP

Tags: ctrsites

$selectSites = mysql_query("SELECT Site_Id FROM CMS_User_SiteAccess_Details WHERE User_Id = '$selectedUserId'"); $ctrSites = 0; while ($row = mysql_fetch_array($selectSites, MYSQL_NUM)) { $AssignedSites[$ctrSites] = $row[0]; $ctrSites++; }



This post first appeared on Confessions Of A Project Development Manager, please read the originial post: here

Share the post

Fetch mysql results into an array using PHP

×

Subscribe to Confessions Of A Project Development Manager

Get updates delivered right to your inbox!

Thank you for your subscription

×