Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Posts posted by DeanWhitehouse

  1. Just glancing through change this

     

    <?php

    $blog_file = file_get_contents('blogtext.txt');

    $blog_list = explode('~', $blog_file);

    foreach ($blog_list as $value)

    {

    echo '<?php ' . $value .  ?>';

    }

    ?>

    to

    <?php

    $blog_file = file_get_contents('blogtext.txt');

    $blog_list = explode('~', $blog_file);

    foreach ($blog_list as $value)

    {

    echo  $value ;

    }

    ?>

    or if u wnted the php tags

    <?php

    $blog_file = file_get_contents('blogtext.txt');

    $blog_list = explode('~', $blog_file);

    foreach ($blog_list as $value)

    {

    echo '<?php ' . $value .  '?>';

    }

  2. Ok first off make sure you have connected to the database, to check add

    if(mysql_ping())

    {

    echo "Connected";

    }

    else

    echo "not";

     

    put that above the query, then after the query put

    echo mysql_num_rows($commentids);

     

    And tell me the output

×
×
  • 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.