Hi,
On my website i am building a page to enable u to add ur url to a database,
I am having a prob with it.
I have made it so, what should happen is if someone trys to submite a url and it is allready in the db it will not allow it,
but that doesn't work.
<?php
} else {
$urllist = file("url.inc.php");
$done = false;
$auth = false;
$found = false;
$i = 0;
while ((!$found) && ($i<count($urllist))) {
$i++;
list($u,$e) = explode(':',$urllist[$i]);
$found = ($u==$url);
}
if ($found) {
echo "<b>Error: The URL has allready been submitted<br><br></b>";
echo "<a class=towhite href=\"javascript: history.back();\">Back</a>";
}
This doesn't seem to work 🙁 how can i make it work?