how to check if id exists in another table sql

SELECT, FROM dash_users LEFT JOIN restaurant ON restaurant.vid = WHERE NOT EXISTS (SELECT 1 FROM dash_users WHERE ) ORDER BY DESC limit 0,100


To Remove tags removed wordpress

Friendly speaking while using the TinyMCE editor in wordpress this one is the issue it from go to visual to text its removing those tags

for overcome those issues  do not remove formatting just use this way

Write your <p> tags like this:

<p dir="ltr">something</p>


To prevent that, br tags can be written like this:

<br class="blank" />

Assign Related Products Programmatically In Magento 1.9

$product = Mage::getModel(‘catalog/product’)->loadByAttribute(‘sku’,$products);
$data = ”;
$relatedData = $product->getRelatedProductIds();
$insertIt = array();
if(count($relatedData) > 0){
foreach($relatedData as $relatedProduct)
$insertIt[$relatedProduct] = array(‘position’=>0,’qty’=>”) ;
$insertIt[$pr_id]= array(‘position’=>0,’qty’=>”);
Mage::getSingleton(‘adminhtml/session’)->addSuccess(Mage::helper(‘adminhtml’)->__(‘Product assigned succesfully’));
catch(Exception $e)
Mage::getSingleton(‘adminhtml/session’)->addError(Mage::helper(‘adminhtml’)->__(‘There is problem with products, please refresh the page to see the result’));