Posted by Stevene on 03/01/07 10:19
> I connect to my database in a way that I think is pretty unsecure.
> <?
> $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";
>
I'm new to php development, in particular, and I am curious, why is
this method insecure? Are there ways around the preprocessor so that
the script can be read?
[Back to original message]
|