need a little more info...
are you using the file as a "text-file-based database" ?
if so, are you basically adding just 1 record, or multiple records... one on each line?
if it is as a table, why r u not using sql instead of a text file?
if it is just 1 record in that file, just...
that is correct.
if you are wanting to call it as a function, you would definitely have to specify the GLOBALs or specify the parameters to use & make sure they are returned properly.
(sorry, didn't see he was wanting to use it as a function.)
I do the same thing.
The only way to do that, is to make sure you have index.php
in the directory and make sure that file is calling your auth.h file as an inclusion.
That doesn't really protect the whole directory, but they'd have to know the physical names of the files in the directory to...
how 'bout trying this instead:
$sql="SELECT * FROM contacts";
$res=mysql_query($sql,$con) or die("SQL: $sql");
While ($row=mysql_fetch_array($res)) {
$pr_name_first=$row['pr_name_first'];
//
print "<input type=\"text\"";
print "...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.