function makeOrder($arr, $order, $default) {
// Function by Colandus!
$type = 'asc';
if(isset($_GET['order'])) {
$v = explode('_', strrev($_GET['order']), 2);
if(count($v) == 2)
if($orderBy = $arr[strrev($v[1])])
$default = $orderBy;
$type = (strrev($v[0]) == 'asc' ? 'desc' : 'asc');
}
return 'ORDER BY ' . $default . ' ' . $type;
}
function getOrder($arr, $order, $this) {
// Function by Colandus!
$type = 'asc';
if($orderBy = $arr[$this])
if(isset($_GET[$order])) {
$v = explode('_', strrev($_GET[$order]), 2);
if(strrev($v[1]) == $this)
$type = (strrev($v[0]) == 'asc' ? 'desc' : 'asc');
}
return $this . '_' . $type;
}
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pid' in 'field list'' in C:\xampp\htdocs\shopadmin.php:138 Stack trace: #0 C:\xampp\htdocs\shopadmin.php(138): PDO->query('INSERT INTO `z_...') #1 C:\xampp\htdocs\index.php(178): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\shopadmin.php on line 138
[24/05/2009 22:42:59] Lua Script Error: [GlobalEvent Interface]
[24/05/2009 22:42:59] data/globalevents/scripts/shop.lua:onThink
[24/05/2009 22:42:59] luaDoAddContainerItem(). Container not found
[24/05/2009 22:43:00] Lua Script Error: [GlobalEvent Interface]
[24/05/2009 22:43:00] data/globalevents/scripts/shop.lua:onThink
[24/05/2009 22:43:00] luaDoAddContainerItem(). Container not found
[24/05/2009 22:43:00] Lua Script Error: [GlobalEvent Interface]
[24/05/2009 22:43:01] data/globalevents/scripts/shop.lua:onThink
[24/05/2009 22:43:01] luaDoAddContainerItem(). Container not found
[24/05/2009 22:43:01] Lua Script Error: [GlobalEvent Interface]
[24/05/2009 22:43:02] data/globalevents/scripts/shop.lua:onThink
[24/05/2009 22:43:02] luaDoAddContainerItem(). Container not found
[24/05/2009 22:43:02] Lua Script Error: [GlobalEvent Interface]
[24/05/2009 22:43:03] data/globalevents/scripts/shop.lua:onThink
[24/05/2009 22:43:03] luaDoAddContainerItem(). Container not found
I tested the script. Doesn't work, the page is blank.
And you need forgot to tell them that they need to change their location of the server in the script, on line 250~~.
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pid' in 'field list'' in C:\xampp\htdocs\newot\shopadmin.php:121 Stack trace: #0 C:\xampp\htdocs\newot\shopadmin.php(121): PDO->query('INSERT INTO `z_...') #1 C:\xampp\htdocs\newot\index.php(106): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\newot\shopadmin.php on line 121
Help?
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pid' in 'field list'' in /var/www/korek/shopadmin.php:121 Stack trace: #0 /var/www/korek/shopadmin.php(121): PDO->query('INSERT INTO `z_...') #1 /var/www/korek/index.php(213): include('/var/www/korek/...') #2 {main} thrown in /var/www/korek/shopadmin.php on line 121
Updated v3. Check first Post for more information!