PHP: Connect Mysql Database Using PDO

PHP: Connect Mysql Database Using PDO

Apr. 20, 2018 by

<!– <?php $user=’root’; $pass=’www.cheapglasses123.com’; $dbh = new PDO(‘mysql:host=localhost;dbname=yzmedu’, $user, $pass); ?> –> <?php try { $dbh = new PDO(‘mysql:host=localhost;dbname=yzmedu’, $user, $pass); // var_dump($dbh); foreach($dbh->query(‘SELECT * from message’) as $row) {

Login before Review of Advanced Customer Reviews!

Login before Review of Advanced Customer Reviews!

Feb. 16, 2018 by

By default, anybody can write a review, how to only allow the customer who has placed an order and has logged in to write a review? Enable Advanced Customer Reviews

X-cart Product Image Is too Wide under Mobile!

X-cart Product Image Is too Wide under Mobile!

May. 5, 2017 by

If we set “Maximum product image width” and “Maximum product image height” too big, say set “Maximum product image width” to 500, and set “Maximum product image height” to 250.

Laravel 5.2 Post: TokenMismatchException in VerifyCsrfToken.php line 67:

Laravel 5.2 Post: TokenMismatchException in VerifyCsrfToken.php line 67:

Jun. 29, 2016 by

// Route::post($uri, $callback); Route::post(‘/eyeglasses’, function () { echo ‘post’; }); When running the code under postman, the errors are: Whoops, looks like something went wrong. 1/1 TokenMismatchException in VerifyCsrfToken.php line

How to Install Symfony 2.8 under Ubuntu 16.04?

How to Install Symfony 2.8 under Ubuntu 16.04?

Jun. 26, 2016 by

$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony $ sudo chmod a+x /usr/local/bin/symfony This will create a global symfony command in your system. — $ symfony new my_project_name // $ symfony

How to Install Symfony 3 under Window 10?

How to Install Symfony 3 under Window 10?

Jun. 24, 2016 by

Use composter to install symphony: Install Composer: download composer at https://getcomposer.org/ and setup it. First install wamp at your computer, say you have installed wamp at D:/wamp, and have run

HostGator Page Not Found for Zen-Cart

HostGator Page Not Found for Zen-Cart

Jan. 22, 2016 by

We all know that HostGator has set custom 404 error page for all hosted websites, the visitor leaves your website and reaches to HostGator website. It is really very bad

How to let X-cart redirect to product page directly?

How to let X-cart redirect to product page directly?

Nov. 5, 2015 by

At www.loupesusa.com ,  several categories only have one product. The default category will only display one product, that make the category looks very ugly, I think if a category only

How to display 3 latest articles at homepage of x-cart v4.7.4?

How to display 3 latest articles at homepage of x-cart v4.7.4?

Nov. 2, 2015 by

First step, edit postauth.php which is under root folder. Find $pages_menu = func_query(“SELECT * FROM ” . $sql_tbl[‘pages’] . ” WHERE language=’” . $store_language . “‘ AND active=’Y’ AND level=’E’

Add Different Resource for EmpireCMS

Add Different Resource for EmpireCMS

Apr. 7, 2015 by

Sometimes it is very difficut for us to publish an article if all the articles have 2 or more different articles resources from other sites. In this cases, we can