Jump to content

bilis_money

Members
  • Posts

    621
  • Joined

  • Last visited

    Never

Posts posted by bilis_money

  1. $host="localhost"; // Host name

    $username="stuff_admin"; // Mysql username

    $password="password"; // Mysql password

    $db_name="stuff_cycling"; // Database name

    $tbl_name="riders"; // Table name

     

    // Connect to server and select databse.

    $conn = mysql_connect("$host", "$username", "$password")or die("cannot connect");

    mysql_select_db("$db_name")or die("cannot select DB");

     

    just use include();

     

    for a nice tutorial visit this.

    http://www.evolt.org/PHP-Login-System-with-Admin-Features

     

    good luck.

     

     

  2. <?php

    $query  = "SELECT username, high FROM users ORDER BY high ASC LIMIT 10";

     

    $result = mysql_query($query) or die('Error, query failed');

     

    while(list($username, $high) = mysql_fetch_array($result))

    {

    echo "$username, $high <br>";

    }

    ?>

     

  3. My advice is divide an conquer my friend.

     

    the best technique is object oriented programming (oop)

    you can divide those parts as module

     

    for instance.

    1. rate module

    2. comment module

    3. private message module

    and so on..

     

    then you can assemble this just like a puzzle into a bigger system.

     

    do you have good understanding of OOP?

     

     

     

     

  4. I have a subscription to php-architect (xmas present) but I couldn't say Id'e recommend it. Its constantly late, they missed sending me an issue entirely, and to be honest, Ive not read anything in all the issues Ive received (about 4) that I wasn't already aware of.

     

    Thanks for your effort bro.

     

    I'll guess no one is reading php magazine here.

     

     

  5. Hi guys

     

    anybody would like to share the best PHP magazine out there?

     

    can you recommend me some please.

     

    Thank you.

     

     

    -i know googling it is easy but your experience has more value.

     

     

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