Re: Re: MySQL Connection

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

 



MySQL error: Table 'domain.tbl_BBY' doesn't exist
but when i try to do SHOW TABLE, it does shows all the
tables including tbl_BBY, please help



--- Sheila Fenelon <sfenelon@xxxxxxxxxxxxx> wrote:
> What does this tell you?
> 
> 
> $query  = "Select txt_ID FROM tbl_BBY ";
> $result = mysql_query($query);
> if (mysql_errno()) {
>      echo "<p>MySQL error: ". mysql_error() .
> "</p>";
>      echo "<p>SQL: $query</p>";
>      die;
> }
> 
> 
> Here's another way to check for errors.
> 
> 
> $query  = "Select txt_ID FROM tbl_BBY ";
> $result = mysql_query($query);
> if (!$result) {
>      echo "<p>MySQL error: ". mysql_error() .
> "</p>";
>      echo "<p>SQL: $query</p>";
>      die;
> }
> 
> 
> --
> Sheila
> http://www.shefen.com/
> 
> 
> 
> Anuradika Jaganadhan wrote:
> > it shows all the tables in the db, but i m aunable
> to
> > connect using 
> > mysql_fetch_array(): 
> > mysql_fetch_assoc(): 
> > mysql_num_rows(): 
> > please help
> > 
> >>>>4.1. I am using
> >>>>
> >>>>require("Conn_to_Mysql.php");
> >>>>$query  = "Select * from tbl_BBY ";
> >>>>$result = mysql_query($query);
> >>>>while($row = mysql_fetch_array($result,
> >>>>MYSQL_ASSOC))
> >>>>{
> >>>>
> >>>>}
> >>>>
> >>>>Its running in my office pc, and my home pc, but
> >>>>when i upload to the
> >>>>webserver, its giving error as such, anyone able
> >>
> >>to
> >>
> >>>>help me to solve
> >>>>this issue.
> >>>>
> >>>>Warning:  mysql_fetch_array(): supplied argument
> >>
> >>is
> >>
> >>>>not a valid MySQL
> >>>>result resource
> >>>>
> >>>>Thanks in advance.
> >>>>
> >>>>
> >>>
> 
> 

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html


PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux