> This goes for anybody, not just Taylor. This
> is just fyi for those reading so if they
> install it, and wonder "Why am I
> getting these errors". They can come
> here and I should have a fix for it. It's
> free, it's just advice for the code.
> Sometimes a variable needs a @ placed before
> it lol. It's comical, sometimes.
If we define a variable that is a connection to the database:
$db_something = @mysql_connect("yourhost", "database",
"password");
if (!$db_something) {
echo( "(p)Unable to connect to the database.(/p)" );
exit();
}
(brackets used in place of html angle brackets in code above)
... the "@" tells the function to fail silently and displays your
custom error message rather then the MySQL default error message.
> Also, for those that are curious, Php Nuke
> is a terrific content management system that
> you can get for free:
> Php Nuke is at:
> http://www.phpnuke.org Also,if interested,
> another great tool the PHP community loves
> is PhpMyAdmin. This is for those of you who
> have php/mysql support and would love a free
> script that can help you back up your data,
> modify tables, add tables, and so on.
> Amazing Tool.
> PhpMyAdmin:
>
> http://www.phpwizard.net/projects/phpMyAdmin/
> Give them a shot you might like them.
> Joel
There is a complete package you can download from sourceforge.net
that you can double-click on and it will automatically install the Apache
Server Software, PHP, MySQL, and PHPAdmin to test scripting on your local
machine.
Best Regards,
Steve MacLellan
homebusiness-websites.com