Reply to Connection Script... a better way?

Your name:

Reply:


Posted by Ron on 03/01/07 04:19

Hi all,

I connect to my database in a way that I think is pretty unsecure.
What I have works well so I haven't messed with it but maybe I could
get a suggestion or two? I keep finding the script examples that
taught me to make the connection in the first place

I use:
<?
$dbh=mysql_connect ("localhost", "database", "password")
or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("database_table");
echo "<p>Database selected...\n";

and on to echoing out my list through a loop.

Is there a way to call the the database and password info from an
external file. Is there a different version of an include?

Any help or leads would be appreciated

thx..ron

[Back to original 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

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