Jump to content

CyberShot

Members
  • Posts

    322
  • Joined

  • Last visited

Community Answers

  1. CyberShot's post in undefined index problem was marked as the answer   
    Looks like the problem was that I missed adding the class index to one of the options. The error is gone
  2. CyberShot's post in help with array check was marked as the answer   
    It appears I have figured it out.
    function bliss_social(){ if(function_exists('ot_get_option')){ $facebook = ot_get_option('facebook'); $flickr = ot_get_option('flickr'); $twitter = ot_get_option('twitter'); $google = ot_get_option('google_plus'); $social = array( 'facebook' => array( 'title' => 'Facebook', 'link' => $facebook, 'icon' => '1' ), 'flickr' => array( 'title' => 'Flickr', 'link' => $flickr, 'icon' => '2' ), 'twiiter' => array( 'title' => 'Twitter', 'link' => $twitter, 'icon' => '3' ), 'google' => array( 'title' => 'Google+', 'link' => $google, 'icon' => '4' ) ); echo '<ul class="list-social pull-right">'; foreach($social as $row ){ if( !empty($row['link'])){ echo '<li>'; echo '<a class="tipsy2 icon-'.$row['icon'].'" original-title="'.$row['title'].'" href="'.$row['link'].'"></a>'; echo '</li>'; } } echo '</ul>'; } }
  3. CyberShot's post in help writing query was marked as the answer   
    Solved it
    $result = $myconn->query('SELECT SUM(amount) as total, SUM(gallons) as gallons FROM stats');
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.