Guest Posted June 1, 2005 Share Posted June 1, 2005 Hi, I know theres been several topics on this but i couldnt find any that related to my problem. When i do step 3 "Fire up your browser and run /catalog/links_setup.php, to update your database." i keep getting the message "Parse error: parse error, unexpected ',' in /home/abdhqx/public_html/links_setup.php on line 69". Ive looked at the code but i only really have a basic knoledge of php so i might be missing something. here are lines 68,69,70: array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display Link Title as links', 'TITLES_AS_LINKS', 'False', 'Make the links title a link.', '" . $configuration_group_id . "', '8', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())")); array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display Links Category images', 'SHOW_LINKS_CATEGORIES_IMAGE', 'True', 'Display the images for the Links Categories.', '" . $configuration_group_id . "', '9', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Link Description', 'LINK_LIST_DESCRIPTION', '3', 'Do you want to display the Link Description?', '" . $configuration_group_id . "', '10', now())"), Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2005 Share Posted June 1, 2005 i got it sorted, i had to replace the "," at the end of each line with a ";" Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2005 Share Posted June 1, 2005 ok ive got a new problem now! lol everything seemed to be going ok after the earlier problems. now when i go to the Link Manager admin page i get this error: "Warning: Division by zero in /home/abdhqx/public_html/admin/includes/classes/split_page_results.php on line 33 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX_LINKS_DISPLAY' at line 1 select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_status from links l left join links_description ld on l.links_id = ld.links_id where ld.language_id = '1' order by ld.links_title limit -0, MAX_LINKS_DISPLAY This dosnt mean a thing to me! :( Thanks again, Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.