You are here: Re: No database selected « All PHP « IT news, forums, messages
Re: No database selected

Posted by Peter on 05/23/05 14:28

> echo "ssLogin = " . $ssLogin . " ";
> $LoginRS = mysql_query($LoginRS__query, $ssLogin) or die(mysql_error());
> echo "LoginRS = " . $LoginRS;
>
> This gives:
> ssLogin = Resource id #3 No Database Selected
>
> On both machines I have have a require file which is:
>
> <?php
> # FileName="Connection_php_mysql.htm"
> # Type="MYSQL"
> # HTTP="true"
> $hostname_ssLogin = "localhost";
> $database_ssLogin = "the_database_name";
> $username_ssLogin = "the_username";
> $password_ssLogin = "the_password";
> $ssLogin = mysql_pconnect($hostname_ssLogin, $username_ssLogin,
> $password_ssLogin) or die(mysql_error());
> ?>
>

Unless you have not posted some of the code you do not select the database
anywhere anyway. You define the variable but you never use it.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация