Jump to content

neverbegosu1984

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

neverbegosu1984's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Bump. So if I'm refering to a database table field, there's no way to include / allow all data entries from that table inti a query? Such as $dlquey= "SELECT * FROM table WHERE field='*'";
  2. Is there a peramiter or way one can write something like this? and if so whats the proper way. if ($test1 != "Select One") { $test1=$_Post['']; // i know syntax is wrong but this isnt my problem } else { $test="*"; // This is where i am having problems. If the user doesnt select a option on my dropdown it pretty much removes all the data from query results because they have input. } $dlquery = "SELECT * FROM Whatever WHERE test1='$test1' AND test2='$test2'"; ?> that way when someone doesnt select a peramiter for test one it just includes any entry in the datafield in the quarry. I would appreciate the help. BTW ive only been doing this for about 3 weeks and this is first real snag ive had that just browsing you guys and w3 hasnt gotten me my answers.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.