LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 432 users online 221732 members 1705 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
SpRiNgS
Favs: Movies-Don't be a menace, mallrats, i'm ...
Mood: Disappointed
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
5 online / 23 MPM
Fresh Topics
  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic

Searching my DB
pleas help very urgent
Replies: 3Last Post Aug. 31, 2007 7:38am by allsmiles
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( Eric 2009 )


Wealthy Hobo
Reply
this is my code

$cat = $_POST['cat'];
$type = $_POST['type'];

$query = mysql_query("SELECT '$cat' FROM 'band'
WHERE ' . $cat . '= ' . $type . '");
$query_row=mysql_fetch_array($query);
echo($query_row['$type']);

echo $result;

i have a drop down menu that indeicates which table the user wants to search, $cat, and their specification in a text,$type. I just doesnt work i have gotten about 20 differnt results, sometimes it wont return anything, others i will get a resource id#3, and sometiems a syntax error, whenever i change it, if someone would help me please!


2:47 pm on Aug. 30, 2007 | Joined: July 2006 | Days Active: 367
Join to learn more about Eric 2009 United States | Posts: 332 | Points: 4,080
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic