Insert BS here A place to discuss anything you want!

Anyone Good With Php/mysql?

Thread Tools
 
Search this Thread
 
Old 12-02-2003 | 12:43 AM
  #1  
drifter's Avatar
Thread Starter
Senior Member
 
Joined: Dec 2002
Posts: 1,788
From: Perth, Western Australia
Thumbs up

Im trying to use a function to save me writing the same lines of code over and over again. I'll just post up the code thats given me hassles though.

function GetResults($category){



$result = mysql_query("SELECT * FROM tblProduct WHERE category = '".$category."' ",$db);



}



$cat="printer";

GetResults($cat);


I get this error--

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/w3izard/public_html/products.php on line 18
Old 12-02-2003 | 12:52 AM
  #2  
drifter's Avatar
Thread Starter
Senior Member
 
Joined: Dec 2002
Posts: 1,788
From: Perth, Western Australia
Default

Wheres Phins when I need him?
Old 12-02-2003 | 01:16 AM
  #3  
Sinful7's Avatar
Senior Member
 
Joined: Aug 2002
Posts: 4,985
From: Denver, CO
Default

he's going potty.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
phinsup
Insert BS here
4
07-07-2003 10:18 AM
phinsup
Insert BS here
9
10-02-2002 11:32 PM
phinsup
Insert BS here
11
11-11-2001 09:52 PM
phinsup
Test Forum
0
11-11-2001 07:15 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 



All times are GMT -5. The time now is 03:57 PM.