RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
Place $ in front of compDisplay: $compDisplay[$comp] = $content; -Original Message- From: James Hallam [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 5:02 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Generating populated variables from component/content pairs in a database

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
t,$content) = mysql_fetch_array($result) ) { myarray[$component] = $content; } Hence, the component is the key. -Original Message- From: James Hallam [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:36 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Generating populated variab

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
myarray[$component] = $content; } Hence, the component is the key. -Original Message- From: James Hallam [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:36 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Generating populated variables from component/content pairs in a database Than

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
k Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:18 PM To: 'James Hallam'; [EMAIL PROTECTED] Subject: RE: [PHP] Generating populated variables from component/content pairs in a database $sql = "SELECT * FROM $table_name WHERE sec = '$sec'

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
uot;); while ( link($component,$content) = mysql_fetch_array($result) ) { ...do stuff... } The filed values will be in the $component and $content. -Original Message- From: James Hallam [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:07 PM To: [EMAIL PROTECTED] Subject:

[PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
I've got a fairly basic website content management system I'm working on, and I've got the data split up in MySQL by the following: a few columns for identifiers like language, section and unique keyname, a column for a component name and a column for the relevant content for that component. As f