02112007 0928 GMT-6

do this:

if ($dbc = mysql_connect()){
 // do the thing
} else {
  echo "Error: ".mysql_error();
}

This will show you the problem.

wade


On Sun, 2007-02-11 at 15:14 +0000, alternate_dph wrote:
> --- In [email protected], Wade Smart <[EMAIL PROTECTED]> wrote:
> >
> > 02112007 0727 GMT-6
> > 
> > <?php
> >   ini_set('display_errors', 1);
> >   error_reporting(E_ALL);
> > 
> > Drop that in when doing developing. It will show you errors. 
> 
> Thanks, that showed me something else going on:
> 
> Fatal error: Call to undefined function mysql_connect() in
> C:\wamp\www\tgs-answers.php on line 25
> 
> This is the line that generates the error:
> 
> mysql_connect(localhost,$username,$password);
> 
> Now, I know this function works because I use it on a remote server.
> 
> 
> 
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
> 
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list 
> Yahoo! Groups Links
> 
> 
> 
> 

Reply via email to