Jump to content

gmaestroo

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Novi Sad, Serbia
  • Interests
    Rollerblading, cycling, swimming, fishing

gmaestroo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. When you loop though the results, you should add a condition and incriment variable. Something like this : $i = 0; <?php foreach($db_res as $value) : ?> <?php if($i == 4) : ?> <?php $ = 0; ?> <div class="something"><?php echo $value->something; ?></div> <?php else : ?> <?php echo $value->something; ?> <?php endif; ?> <?php endforeach; ?> Sorry about ugly formatting, this is one bad editor
  2. I have learned the basics from this tutorial, its exelent for start and if you know where to look for, you won't pay a peny. http://www.lynda.com/PHP-tutorials/php-with-mysql-essential-training/435-2.html And later this one http://www.lynda.com/PHP-tutorials/php-with-OOP-beyond-the-basics/653-2.html Happy learning
  3. This will work 100% $title = $_POST[title]; $date = $_POST[date]; $body = $_POST[body]; $q = "INSERT INTO blog (title, date, body) VALUES ('$title', $date', '$body')";
  4. The answer is not simple so i will only give you directions. First you will need a system that checks who is logged in(create table in db loggedInUsers). Next you should pair 2 players and display them an image(another db table pairedUsers). Use a JQuery ajax to check this every who is logged, who is playing with who, and users answers.
  5. @Shakeel This will return an array with true or false, not a single value. So maybe this is why it won't work
×
×
  • 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.