Re: [PHP-WIN] Dynamic querys to SQl Server

2002-04-11 Thread Mike Flynn
If I understand you correctly, then you could try something like this: ===Page 1: Select info to view... Name Email City ===Page 2: $query = 'SELECT '; $first = true; foreach ($columns AS $value) { if (!$first) { $query .= ', '; } else { $first = false; } $qu

RE: [PHP-WIN] Dynamic querys to SQl Server

2002-04-11 Thread Svensson, B.A.T. (HKG)
> From: R.S. Herhuth > Sent: Thursday, April 11, 2002 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Dynamic querys to SQl Server > > Basically what I have created so far is a page that dynamically builds > all of the column names of a database. I have assigned eac

[PHP-WIN] Dynamic querys to SQl Server

2002-04-11 Thread R.S. Herhuth
I'm new to php and I'm trying hard to get a grasp on pulling data from SQL Server. I'm looking for an efficient method for making dynamic queries to SQL server. Basically what I have created so far is a page that dynamically builds all of the column names of a database. I have assigned each