Insert BS here A place to discuss anything you want!

Anyone Good With Php/mysql?

Thread Tools
 
Search this Thread
 
Old 12-01-2003, 11:43 PM
  #1  
Senior Member
Thread Starter
 
drifter's Avatar
 
Join Date: Dec 2002
Location: Perth, Western Australia
Posts: 1,788
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
drifter is offline  
Old 12-01-2003, 11:52 PM
  #2  
Senior Member
Thread Starter
 
drifter's Avatar
 
Join Date: Dec 2002
Location: Perth, Western Australia
Posts: 1,788
Default

Wheres Phins when I need him?
drifter is offline  
Old 12-02-2003, 12:16 AM
  #3  
Senior Member
 
Sinful7's Avatar
 
Join Date: Aug 2002
Location: Denver, CO
Posts: 4,985
Default

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

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


Quick Reply: Anyone Good With Php/mysql?



All times are GMT -5. The time now is 05:13 AM.