Skip to content

Instantly share code, notes, and snippets.

<?php
define("SKIP_PLUGINS", 1);
require_once "common.php";
$license = array(
'vars' => array(
'core' => array(
'multiple_template_sets' => 0,
emergency
Description
Exception (SQLException) - Could not execute query [Native Error: 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 '2112,2114,2139,2141,2142,2143,2144,2145,2151,281,296,298,300,315,326,327,343,344' at line 1] [User Info: SELECT item_id,category_id FROM items2categories WHERE item_id IN (,2112,2114,2139,2141,2142,2143,2144,2145,2151,281,296,298,300,315,326,327,343,344,346,347,380,381,385,389,406,407,408,427,428,429,430,431,435,436,438,439,55,56)]
Source File
/usr/home/users/dimitar/MAS/mas-kt/heavymetal/lib/3rdparty/creole/drivers/mysqli/MySQLiConnection.php (line: 208)
00201: {
00202: self::$sql[] = $sql;
mysql> desc items;
+-----------------------------------+-----------------------------------------------------------+------+-----+-------------------+-----------------------------+
| Field | Type | Null | Key | Default | Extra |
+-----------------------------------+-----------------------------------------------------------+------+-----+-------------------+-----------------------------+
| id | bigint(20) unsigned | NO | PRI | NULL | auto_increment |
| parent_id | bigint(20) unsigned | YES | MUL | NULL | |
| sku | varchar(50) | NO | UNI | NULL | |
| store_price | d
@dalizard
dalizard / html5form.html
Created March 9, 2011 17:55
HTML5 Form Example
<form>
<fieldset>
<legend>Your details</legend>
<ol>
<li>
<label for='name'>Name</label>
<input id='name' name='name' type='text' placeholder="First and last name" required autofocus>
</li>
<li>
<label for='email'>Email</label>
<section>
{if $can_start_checkout}
<a class="submit" href="{$html_url}">Continue Shopping</a>
<a class="submit" href="{$secure_html_url}index.php?page=checkout">Proceed To Checkout</a>
{$placeholder_after_proceed_to_checkout|smarty:nodefaults}
{* Note: You can start checkout using Google Checkout *}
{if $google_checkout}
<a href="{$secure_html_url}index.php?type=bare&page=google_checkout"><img src="https://checkout.google.com/buttons/checkout.gif?merchant_id={$google_checkout_username}&w=160&h=43&style=trans&variant=text&loc=en_US" height="43" width="160"></a>
def create
@comment = @article.comments.create(params[:comment])
if @comment.save
redirect_to @article, :notice => 'Thanks for your comment'
else
@comment.destroy
render "articles/show"
end
end