Re: Parse Errors...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I just sent you an email that was rejected.
Recipient address: u3926286@anu.edu.au
  Reason: Server rejected MAIL FROM address.
  Diagnostic code: smtp;550 5.0.0 Access Denied for prodigy.net.mx

So here is the message:

For sending numbers with format I prefer the number_format() function.

Instead of these two lines:
    $formatted = sprintf("%01.2f", $money);
    echo $formatted;
I'd use only one line:
    echo number_format( $money, 2 );
The output would be:
    "123.10"

I'm sorry I can't help about the format "%01...". I'm not familiar with it.

Gabriel.


"Scott V Nipp" <sn4265@sbc.com> escribió en el mensaje
news:E9E12A91DAEB374493D8501FE29552FDC0DD28@txdlls2msgusr11.itservices.sbc.c
om...
> I keep receiving a parse error every time I try and view the page I
> am working on.  I am developing this very simple application in
DreamWeaver
> MX 2004.  Here are lines 3-16:
>
> <?php
> mysql_select_db($database_Prod, $Prod);
> $query_Host = "SELECT Name FROM systems";
> $Host = mysql_query($query_Host, $Prod) or die(mysql_error());
> $row_Host = mysql_fetch_assoc($Host);
> $totalRows_Host = mysql_num_rows($Host);
>
> mysql_select_db($database_ProdUsers, $ProdUsers);
> $query_UserMod = "SELECT shell, home_dir FROM modification";
> $UserMod = mysql_query($query_UserMod, $ProdUsers) or die(mysql_error());
> $row_UserMod = mysql_fetch_assoc($UserMod);
> $totalRows_UserMod = mysql_num_rows($UserMod);
>
> ?>
>
> I am simply attempting to pull data from two separate tables in two
> separate databases.  Every time I try to view my work, I am getting a
parse
> error on the 'mysql_select_db($database_ProdUsers, $ProdUsers);'
regardless
> of whether this is the first or second mysql_select_db.  I imagine that I
am
> simply doing something obviously wrong here.  Please help.  Thanks.
>
>
> Scott Nipp
> Phone:  (214) 858-1289
> E-mail:  sn4265@sbc.com
> Web:  http:\\ldsa.sbcld.sbc.com

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux