Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: calv1n
  • Content: Threads
  • Order by date
  1. calv1n

    checking if username exists (when editing u/n)

    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...
  2. calv1n

    javascript confirm help

    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!") } } //-->...
  3. calv1n

    pagination

    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...
  4. calv1n

    display files in directory

    How do I display the files of a directory, but just the files, not any subdirectories? Thanks. -CALV1N
  5. calv1n

    checking if name exists

    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) {...
  6. calv1n

    censoring

    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),"&lt;censored&gt;",$str3); } Right now the word list are stored on a text file delimited with line breaks. I'm changing it to mysql. The...
  7. calv1n

    Cookie question

    How do I print the time to the cookie expires? -CALV1N
  8. calv1n

    if statement help

    I have a problem with this code I'm using: //if (!empty($_COOKIE['$cookiename'])) { if ($isprivate != "1") { $message = nl2br($message); echo "$message"; } else { echo "<i>This message has been...

Part and Inventory Search

Back
Top