I've attempted to install shazamgallery, I uploaded the files to /shazamgallery
in myadmin, I click my database and select sql browse for the file click go and I get this error.
I've tried removing the <?php
and various other combinations to no avail, its a shame because this addon seems to be the only one that suppports user galleries which is what I need.
(ignore the very top and very bottom php tags, its the only way I could display the whole code.)
<?php
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 10
STR: //
SQL: <?php
// $Id
function shazamgallery_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE IF NOT EXISTS shazamgallery (
nid int(10) UNSIGNED NOT NULL,
tid int(10) UNSIGNED NOT NULL,
gdefault int(10) UNSIGNED NOT NULL,
weight tinyint(3),
PRIMARY KEY (nid, tid)
) ENGINE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;")
SQL query:
<?php // $Id function shazamgallery_install() { switch ($GLOBALS['db_type']) { case 'mysql': case 'mysqli': db_query("CREATE TABLE IF NOT EXISTS shazamgallery ( nid int(10) UNSIGNED NOT NULL, tid int(10) UNSIGNED NOT NULL, gdefault int(10) UNSIGNED NOT NULL, weight tinyint(3), PRIMARY KEY (nid, tid) ) ENGINE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;")