Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default SQL Query Executor

    Hi All,

    I have tried to run the following with the SQL Query Executor:
    <?php
    $installer = $this;
    $installer->startSetup();
    $tblName = Mage::getSingleton('core/resource')->getTableName("social_log");
    $installer->run("
    CREATE TABLE $tblName (
    `login_id` varchar(50) NOT NULL ,
    `entity_id` int(11) NOT NULL ,
    `email` varchar(255) NOT NULL ,
    PRIMARY KEY (`login_id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    ");

    $installer->endSetup();


    And I get the following error:
    WARNING: An Error occurred, please refresh the page and try again.

    www.assceneon.com/catalog

    Thanks for your help,

    Donovan

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,334
    Plugin Contributions
    94

    Default Re: SQL Query Executor

    You could start here: https://www.zen-cart.com/content.php...-and-try-again

    I Googled "zen cart warning an error occurred" and that link was the top hit.

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: SQL Query Executor

    You are trying to run that code where exactly?

    Where did you find that code? It is a php script not an sql statement.

    What exactly are you trying to do?

  4. #4
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default Re: SQL Query Executor

    Hi Nicole

    I was trying to upload a mod and it had that code and said to use the SQL Executor. What I did was upload it as a file and it worked.

    Thanks for your help.

    Dono

 

 

Similar Threads

  1. v139h Use of SQL Query Executor
    By GerryTheMole in forum General Questions
    Replies: 5
    Last Post: 26 Mar 2014, 03:07 PM
  2. SQL Query Executor
    By tomreitz in forum General Questions
    Replies: 6
    Last Post: 30 Nov 2009, 09:55 PM
  3. SQL Query Executor
    By pukman in forum General Questions
    Replies: 1
    Last Post: 8 Jul 2009, 11:43 AM
  4. SQL Query Executor
    By MeltDown in forum General Questions
    Replies: 2
    Last Post: 15 Jul 2006, 05:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR