I'm having some troubles when editing an admin on my script.
For example when the username stays the same, I get the 'username exists' message.
is_admin();
require '../lib/config.php';
connectcp();
$result = mysql_query("SELECT...
U have this in the HEAD section of my web page:
<!--
function confirmation() {
var answer = confirm("Are you sure you want to delete this folder?")
if (answer){
alert("Bye bye!")
window.location = "http://www.google.com/";
}
else{
alert("Thanks for sticking around!")
}
}
//-->...
I'm trying pagination. It works fine, except the 'unhyperlinked' page numbers are 'unhyperlinked' one off.
To see what I mean click here.
I can't seem to fix it. Here is my code:
$result = mysql_query("SELECT * FROM test");
$total_entries = mysql_num_rows($result);
echo...
Okay, I got it to work:
if ($handle = opendir($loc)) {
while (false !== ($file = readdir($handle))) {
if (is_dir($loc.$file)) continue;
if ($file != "." && $file != "..") {
$thelist .= "$file"...
I added this to check if username exists when adding administrator on my site:
$result = mysql_query("SELECT username from admin where username='$username'");
list($usernametocheck) = mysql_fetch_row($result);
if (!$usernametocheck) {...
I'm using this code to censor my message on my site:
$fp = fopen("banned.txt","r");
while($word = fgets($fp,10000)) {
$str3 = ereg_replace(trim($word),"<censored>",$str3);
}
Right now the word list are stored on a text file delimited with line breaks. I'm changing it to mysql. The...
And I don't know if this is much help, but viewing the cookies in Firefox I see this:
Name: admin
Value: CALV1N
Host: Localhost
Path: /calvin/cp/
Thanks.
-CALV1N
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.