#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    456
    Rep Power
    14
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    mysql_connect("lithium", "root", "password");
    $query = "INSERT INTO files VALUES ('', '$dldemand', '$artist', '$song', '$url', '0')";
    $result = mysql_db_query("mp3db", $query);
    [/code]

    Why does that code work in php3 but not php4? What must be changed for it to work in php4?

    Thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    59
    Rep Power
    14
    It might help if you posted the exact error message you are getting, also your root password isn't very secure...j/k

    Chris

Similar Threads

  1. Apache 2.0 and PHP4 Upgrade Problems
    By xml in forum PHP Development
    Replies: 4
    Last Post: February 10th, 2004, 11:52 AM
  2. imap_open() works there, but not here
    By octothorpe in forum PHP Development
    Replies: 0
    Last Post: February 8th, 2004, 08:26 PM
  3. Perl script works in command line but not browser
    By actorindp in forum Perl Programming
    Replies: 8
    Last Post: January 25th, 2004, 10:50 PM
  4. Replies: 0
    Last Post: January 16th, 2004, 08:44 AM
  5. sendmail works slow.
    By martinwtp in forum Linux Help
    Replies: 1
    Last Post: December 31st, 2003, 12:05 PM

IMN logo majestic logo threadwatch logo seochat tools logo