I still need help, can anyone help me?
Here is were am at:
It says to create the following tables in MySql if they don’t exist, but it seems to be calling a variable 2 times called "$dbrows" which is messing up the code:
function dbInit() {
global $dbrows;
$dbrows = Array();
mysql_query("CREATE TABLE IF NOT EXISTS `modx_gallery_info` (
`gallery` varchar(255) NOT NULL,
`entity` varchar(255) NOT NULL,
`title` varchar(1024) NOT NULL,
`description` varchar(10240) NOT NULL,
PRIMARY KEY (`gallery`,`entity`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;");
$result = mysql_query('SELECT * FROM modx_gallery_info');
while($row = mysql_fetch_assoc($result)) {
$dbrows[$row['entity']] = $row;
}
}
Is it bad coding on the coders part or am I just missing something? and could I just manually putting in the MySql code and that would fix it?
Am still learning PHP & MySql so if am wrong sorry,
-FireDart