Go Back   Web Design & SEO Company > Knowledgebase

Knowledgebase Articles and information about running a website, cPanel and various hints and tips. Here you will find tutorials on php, MySql, .htaccess, cron, SEO, Search Engines, CHMOD, FTP, CSS, HTML and various other hints and tips on running and Administrating a website.

Reply
 
Tools Display Modes
  #1  
Old 11-15-2007, 10:00 AM
bretheartbobby bretheartbobby is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default Converting mysql result set into an array?

Could someone tell me the best way to convert a mysql result set into a php array please? Basically what I need to do (unless there's a better way) is to perform a query and then convert this into an array. I then need to perform a second query, convert that into an array and insert the second array into each of the first arrays members. So I end up with this:
Code:
 From query 1
        From query 2
        From query 2
        From query 2
From query 1
        From query 2
        From query 2
        From query 2
From query 1
        From query 2
        From query 2
        From query 2
I then need to convert the array into a HTML list. If anyone could offer any guidance with any of this it would be much appreciated.

Thanks.
__________________
Smoking cessation lasers
Reply With Quote
  #2  
Old 11-15-2007, 02:55 PM
Admin Admin is offline
Administrator
 
Join Date: Jan 2007
Posts: 327
Default

Hello Bobby,

I'd really love to be able to help you on this one, however our programmer is away and i mainly do design work... So this one is slightly over my head, although i'll be sure to point him in this direction when he returns.
Reply With Quote
  #3  
Old 02-11-2008, 06:54 PM
rick22 rick22 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default

sorry buddy...
i am new to designing... i dont know much about SQL
Reply With Quote
Reply

Tools
Display Modes



Forum time zone is GMT. Currently it's 11:15 PM.


What is my IP | Domain Forum
Web Design & SEO Forums Powered by vBulletin® Version 3.7.0