Results 1 to 12 of 12

Thread: How to check for empty string and empty search type?

Threaded View

  1. #10

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: How to check for empty string and empty search type?

    penagate i do not think the above code will help me since i got over 200 php and html mixed lines of code and displaying diffrent tables for each type of search output and just puting that inside while loop will not make my program to work!! I get tones of errrors :-((.

    I was looking for solution just like break used in switch whenever error occoured or either s or m was empty but apperently i do not get such solution!!!

    I got html and php mixed code before while loop and inside while loop and after while loop to display proper table for each type of search type output .Also no connection infor in u code such as this :


    PHP Code:
    // change below is your assigned mySQL username
    $user "root";

    // change to the pw below is your assigned mySQL password
    $pw "";

    // change to the database you have permission to connect to
    $db "test";



    //mysql_connect("localhost", "root", ""); 
    $mysql_access mysql_connect("localhost"$user$pw);
    mysql_select_db($db$mysql_access);

    if (! 
    mysql_select_db($db$mysql_access)) {
        echo(
    mysql_error());
        die;
    }

    .....
    .....
    ..... 
    Last edited by tony007; May 24th, 2006 at 12:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width