Thursday, 31 January 2013

skip entry if already exist Mysql

Hi we can easily do this with the use of single parameter  ignore
 after insert

like

$insert1= mysql_query("INSERT IGNORE INTO your_table_name(your column name,..) VALUES('your values')",$conn1);

this will help you to skip a entry if already exist in table and continue after that with other entries

.htaacess file not visible in magento folder

Hi i was doing my magento project with multi store setup, in which i need to copy the .htacess file to new folder but i was amaze it was not present there
after so long i found the reason. in my folder the option for show hidden files was disable 

so for displaying the files you must go to

view-> and click on show hidden files

and you will able tyo see all hidden files with in that folder