Similar Posts
How to safe website from hack
1- apply JavaScript on input Feilds do not accept special chrectors 2- use mysql_real_escape_string() to get input fields values 3- select values from database by username then compre db username and password with input username password . 4- after check above you can make sure no one can hack your website
How to get multiple select box values using jquery?
$(‘#multiple :selected’).each(function(i, selected){ console.log($(selected).text()) });
Add Image in your main menu or navigation menu in magento
/app/code/core/Mage/Catalog/Model navigation.php after <div class=”block1″> $imauma=”; if($categoryImage<>”) { $url=Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); $imauma='<img src=”‘.$url.’media/catalog/category/’.$categoryImage.’” style=”float:left;margin-right:10px;”>’; } $html[] = ‘<div class=”block1″>’.$imauma;
Rewrite Rule in PHP
RewriteRule ^users/([a-zA-z0-9-_+.(),|&]+).html?$ users/details.php?username=$1 [NC,L] # Handle product requests users/uspmca.html => users/details.php?username=uspmca
How to Change PHPMYADMIN Password
1- open terminal login as root 2-if already password then mysql -h your_host -u root -p else mysql -h your_host -u root 3- SET PASSWORD FOR root@localhost = PASSWORD(‘yourpassword’);
Re – Write Rule To handle a request
RewriteRule ^folder/title-id.html?$ folder/file.php?id=$2 [NC,L] # Handle product requests RewriteRule ^video/([a-zA-z0-9-_+.(),’”|&]+)-([0-9]+).html?$ video/videoplay.php?id=$2 [NC,L] # Handle product requests Just Change you href like title-id.html