working on it ...

Filters

Explore Public Snippets

Sort by

Found 55k snippets

    public by vnhgroup4m modified yesterday at 4:42:03 AM  12  0  2  0

    update wp

    update wp
    php
    $wpdb->update('usertb', array('xu'=>$xuThang,'RemainMoney'=>$tienThang ,'RemainTime'=>$newTime) ,array('FirstName'=>$username)); // cộng tiền gỡ 
    

    public by paulsimmons modified May 10, 2017  70  0  4  0

    Magento Shop by Manufacturer Plugin by FMEAddons

    Magento shop by manufacturer plugin by FMEAddons helps you to create unlimited brands and display them in the brand slider. This module adds the separate page on your e-store for brands and customers can find the brand they love on this page. They can see the products of brands and buy the products right away. Brand page enables brands by category,
    // Enter here the actual content of the snippet.                        

    public by paulsimmons modified Apr 12, 2017  79  1  3  0

    WooCommerce Bookings and Appointment Plugin

    WooCommerce Bookings and Appointment plugin by FMEAddons gives the ability to business owners to sell products and services that require bookings and timed appointments. These products and services involve tickets selling, bookings for concerts, appointments, rentals services, secure a seat online, space in training, book products and much more lik
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Apr 11, 2017  63  0  3  0

    Rich Snippets Magento Extension by FMEAddons

    Magento rich snippets extension for online stores helps the store owners to highlight their products in search results and drag more traffic on the website. This is a must have plugin if you want the success of your business through organic traffic from search engines. This rich snippet module adds schema tags in all product and services pages to
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Apr 4, 2017  104  0  3  0

    WooCommerce Variable Pricing Plugin by FMEAddons

    If you want to convert potential customers to successful business leads, then WooCommerce variable pricing extension is a powerful tool for achieving this goal. This addon provides you an easy interface to offer bulk discounts on various sections on your website. You can give a special offer to your customers such as buy three products and get one
    // Enter here the actual content of the snippet.            

    public by paulsimmons modified Mar 30, 2017  102  0  3  0

    Magento Follow Up Emails Extension

    Magento Follow Up Email is a complete extension developed by FMEAddons that allows store owners to integrate and advance email marketing system in their online store based on Magento. With the help of this powerful extension, they can send emails after occurring of different events such as new order completion, Cart abandonment, Birthday, Christmas
    // Enter here the actual content of the snippet.                        

    public by JavierSalazar modified Mar 30, 2017  124  1  3  0

    Clonar registros en mysql

    Si necesitas una función para clonar registros, aquí tienes unas. La idea es sencilla: usar SQL para clonar un registro. En esencia es algo así: INSERT INTO tabla (SELECT * FROM tabla WHERE id=..) El problema es que la SQL anterior no funciona si tienes un campo clave (99% de las tablas, o un campo único). Así que toca refinar mas la funció
    php
    <?php
    function mysql_clonar_registro ( $tabla, $clave ) {
    
       // limpieza parámetros
       $tabla= mysql_real_escape_string($tabla);
       $clave= mysql_real_escape_string($clave);
    
       // obtener lista de campos, no únicos
       $rsCampos = mysql_query("SHOW COLUMNS FROM $tabla");
       $campos= array();
       $campoClave ="";
       while ( $campo = mysql_fetch_array($rsCampos) ){
    
           if ( $campo["Key"] == "PRI" ){
               $campoClave = $campo[0];
           }
           $campos[] =  $campo["Key"] == "PRI" || $campo["Key"] == "UNI" ? "NULL":    $campo[0];
       }
       mysql_free_result ( $rsCampos );
    
       // clonar el registro mediante una SQL
       if ( $campoClave && count($campos)>0 ) {
           $SQL = sprintf( "INSERT INTO $tabla ( SELECT %s FROM $tabla WHERE %s='%s' )",
               implode(",",$campos),
               $campoClave,
               $clave );
           mysql_query ($SQL);
           return mysql_affected_rows();
       }
       return false;
    }   
    ?>            

    public by paulsimmons modified Mar 29, 2017  72  0  3  0

    WooCommerce Currency Converter Plugin

    If you want to target multiple regions with your web store you must use WooCommerce multi-currency plugin to provide the best user experience to your international clients. WooCommerce currency switcher plugin allows you to add multiple currencies which will allow your customers to view product pricing and checkout in their local currency or to whi
    // Enter here the actual content of the snippet.            

    public by JavierSalazar modified Feb 23, 2017  208  1  3  0

    Llenar un SELECT OPTION con PHP con info de la BD

    Llenar un SELECT OPTION con PHP con info de la BD
    php
    // $ctlTipoProveedor es una clase que obtiene sus datos desde la bd
    <?php 
        foreach ($ctlTipoProveedor->listarTodos($link) as $k) {
          if ($k->getId() == $proveedor->getTipoProveedor()){
            echo "<option value=".$k->getId()."' selected>Proveedor ".$k->getNombre()."</option>";
          }
          else
          {
            echo "<option value=".$k->getId()."'>Proveedor ".$k->getNombre()."</option>";
          }
        }
    ?>                        

    public by bhavinshah modified Jan 28, 2017  143  1  3  0

    pre

    PHP
    echo '<pre>';print_r();die("deaD");
    • Public Snippets
    • Channels Snippets