Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    Question Search engine...but what kind exactly?

    Being new to this world I still struggle with the language. Can someone tell me what it is I'm looking for? Please!
    It's a type of search engine very similar to the one used by hotmail (or any email provider) when you select your name (eg: michelle@hotmail.com) and it shows you that it has already been used and that you must choose something else. Where would I find something like this?
    Any help is greatly appreciated.
    CHEEEERS!!!!

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    Default

    wow this is a great forum!

  3. #3
    Member
    Join Date
    Sep 2006
    Posts
    48

    Default

    This is greta forum when askign for help with cPanel related issues

    What you want is somehitng what will check user input against a database if the row count is equal to 1 say its taken otherwise insert.. eg:


    <?php
    mysql_connect();
    mysql_select_db();
    if(isset($_POST['u'], $_POST['p'])) {
    $u = mysql_real_escape_string($_POST['u']);
    $q = mysql_query("SELECT username FROM users WHERE username = '$u'");
    if(mysql_num_rows($q) >= 1) {
    echo "Username taken";
    }
    else {
    // Process form data....
    }

    }
    ?>

    Just a example of where you would go with it in no way do i mean use this as it will not work without the SQL backend ect..

Similar Threads & Tags
Similar threads

  1. Search Engine Submit?
    By felosi in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-08-2006, 02:15 PM
  2. search engine
    By zehri in forum New User Questions
    Replies: 0
    Last Post: 08-25-2006, 11:58 AM
  3. Search engine
    By rbjb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2003, 06:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube