www.webdeveloper.com
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 18 of 18

Thread: Lost password

  1. #16
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    ok.

    1) you might need to use the path to the directory for mysql (or change into that directory) in order to use the command. Does Mac allow you to have global app names that you can just type? i forget the term.

    2) php is weird. if you're used to java (like i am) and you do an error in PHP you're going to start ripping your hair out - blank pages means there's an error and your php file isn't configured to show all errors. try adding this to the top of your script:
    PHP Code:
    error_reporting(E_ALL); 
    You can also use mysql_error() and die() to catch errors in your code like this:
    PHP Code:
    mysql_connect($host,$user,$pass) or die('unable to connect to server: '.mysql_error()); 
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  2. #17
    Join Date
    Feb 2005
    Posts
    200
    Oh, so mysql_error() doesn't write anything to the browser? Because when I used it nothing showed up?

  3. #18
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    maybe you should show the code you're using. you might have an error in your syntax.
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



Recent Articles