> It looks like your code will only output something if there is an
> error. So if you connect to the database OK and select the database
> OK, then nothing should be coming back to the browser with the code
> you have here.
>
> Plus, there's an easier way to do what you're doing and check for
> errors here.
>
> <?php
>
> $dbcnx = @mysql_connect('host','username','password') or die('Unable
> to connect ' . mysql_error());
>
> mysql_select_db('ijdb') or die('Unable to select the database ' .
> mysql_error());
>
> // etc. etc.
>
> ?>
>
> HTH
> -Nick

What's with this @mysql_connect stuff?  I use just mysql_connect.  Is
there a functional difference?



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