Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2006, 06:30 AM
Authorized User
 
Join Date: Aug 2005
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create array from database

Is it possible to create a array from a database table?
example table contains langparams en,sv,fi
If it is possible how would I do it?


 
Old November 14th, 2006, 07:56 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

connect to the database with PHP
query the database
loop through the result set and populate an array row by row.

This is how I basically create a result set to use over and over in PHP code.







Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't create a lot of array on VB tumarha Pro VB 6 12 April 26th, 2006 10:45 PM
create array for loop in FSO jfergy Classic ASP Professional 4 April 14th, 2006 09:59 PM
Can we Create Control Array in ASP.NET? whiterainbow BOOK: Professional Crystal Reports for VS.NET 0 May 6th, 2005 04:24 AM
I can't create array more than 500000 records. tumarha Pro VB Databases 2 March 1st, 2004 09:30 AM
Create an Array from a multiple select box drgreybow01 Classic ASP Basics 1 August 10th, 2003 08:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.