#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    3
    Rep Power
    0
    hi,
    i've got a problem using php and mysql in my redhat 6.0 OS. when i run php files with my browser its result an error like this ..."Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/html/masrul_tuto/index.php3 on line
    17 "... anybody could help..
    sorry for my bad english.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    FRANCE
    Posts
    9
    Rep Power
    0
    please show your script
    maybe it could help to see what's wrong

    see ya !
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    suthep,chiangmai,thailand
    Posts
    1
    Rep Power
    0
    hi
    i think yuor php does not support mysql
    so i think you might compile php to support mysql you can see the step of installation in php


    ------------------
    fookies
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    3
    Rep Power
    0
    This is a part of my source code..."
    if (empty($srt)) {
    $srt='TimeStamp';
    }
    if (empty($offset)) {
    $offset='0';
    }
    echo "<h2>Entries from the guest book sorted by $srt</h2>";

    mysql_connect(***,***,***) or die("connection problem ....");
    $query = "select * from visitors order by $srt limit
    $offset,10";
    $result = mysql_db_query("guest_book",$query);"

    tq.

Similar Threads

  1. PHP + MySQL query to make a link
    By emp/ir:kal in forum PHP Development
    Replies: 6
    Last Post: January 22nd, 2004, 01:10 PM
  2. Validate PHP form and update MySQL table
    By tlugosi in forum PHP Development
    Replies: 2
    Last Post: January 18th, 2004, 03:26 PM
  3. MySQL "source" command in PHP
    By crackwombat in forum PHP Development
    Replies: 2
    Last Post: January 18th, 2004, 07:25 AM
  4. Replies: 2
    Last Post: January 9th, 2004, 11:14 AM
  5. how many people who run php run mysql, too??
    By j0sh in forum PHP Development
    Replies: 5
    Last Post: January 4th, 2004, 04:12 PM

IMN logo majestic logo threadwatch logo seochat tools logo