Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter milesnewey

    (@milesnewey)

    hmm interesting to see another approach to it, many thanks again for your help Alchymyth.

    Hi Chaps, is there any update on this as I am in desperate need!

    Thread Starter milesnewey

    (@milesnewey)

    That’s awesome Alchymyth, works a treat apart from the fact it only brings one row and it should be bringing three…but i am guessing that could be my table/data, unless you can spot anything wrong with the loop? Can I be cheeky and ask how you would display tabular data? Or is it that just generally in this tables are nasty?

    Thread Starter milesnewey

    (@milesnewey)

    Awesome, thanks alchymyth, it works a treat. Any ideas on how to get it back into a table? Here is my code now, (less than 10 lines – i’m learning all the time!)

    function CountyInstancesOver30($gallery=1) {
    global $wpdb;
    $sql = "SELECT County, COUNT(County) AS Incident FROM tblSpeedData WHERE Speed > 30";
    $result = $wpdb->get_results($sql);
    foreach ($result as $pic)
    {
    return "County: " . $pic->County . ", Incidents: " . $pic->Incident . "<br />";
    }
    }
    add_shortcode('CInstO30', 'CountyInstancesOver30');

    Hi everyone,

    I don’t know if this bears any help or not, but mine was working fine right up until I installed a plugin called inline uploader. It was from the point I activated it that everything went hay wire! I ran the following update script on the mysql back end UPDATE wp_options SET Option_value = ” WHERE Option_Name = ‘active_plugins’, and then activated each plugin one at a time until I found the culprit. I was very scared until I had discovered this, hopes this help folks.

    Kind regards,

    Miles

    Same here, was sooo happy this morning when I got it all working and was really impressed, but I have no idea how to sort this one out now, I am getting the same error, and at the time I wasn’t even messig with the plugin at all…error messge for me is: Fatal error: Cannot break/continue 1 level in /home/u4641/public_html/jmvasdata.com/wp-content/plugins/s2member/includes/classes/no-cache.inc.php(156) : eval()’d code on line 1

Viewing 6 replies - 1 through 6 (of 6 total)