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
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
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
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'
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:
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
6 matches
Mail list logo