General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 19th, 2002, 10:18 AM
alex alex is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 2 alex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink script problems

I have read the article of Mitchell Harper Building A Persistent Shopping Cart With PHP and MySQL, but the products.php script does not run, can anyone have a look on the code and tell me what is wrong?
Cheers

*edit* Please read forum rules before posting... Your title does not properly describe the topic *edit*

Reply With Quote
  #2  
Old May 19th, 2002, 06:09 PM
CopeLand CopeLand is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Toronto
Posts: 40 CopeLand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I just downloaded the support material and tested it...it works fine on my PC! Are you getting any errors, etc when you run the code? YOu'll have to give us a bit more detail. You ca't just say it doesnt work. Have you setup the MySQL login details, etc? and built the database?
__________________
i am cope. i drink coke. i am in hope.i am cope. i drink coke. i am in hope.i am cope. i drink coke. i am in hope.

Reply With Quote
  #3  
Old May 19th, 2002, 07:12 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
does not run??? you need to tell us exactly what happened, and what errors you have got

Thanks

Reply With Quote
  #4  
Old February 10th, 2003, 10:33 AM
Dr. Lundy Dr. Lundy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Hoek van Holland, The Netherlands
Posts: 4 Dr. Lundy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry

Hmm, it doen't work for me. I tested the scripts but I'll get the same stupid error message over and over again.

What I'm doing wrong....

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\phpdev\www\cart\products.php on line 43
Attached Files
File Type: txt products.txt (2.2 KB, 266 views)

Reply With Quote
  #5  
Old September 1st, 2003, 10:10 PM
devartam3 devartam3 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 devartam3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to devartam3
Lightbulb Chart fix for some

You may have to call-out your variables in your Functions as global ( inside the top of each functions) like:

function RemoveItem($itemId)
{
global $dbserver, $dbuser, $dbpass, $dbname, $cxn;
$cxn = @ConnectToDb($dbserver, $dbuser, $dbpass, $dbname);
mysql_query("delete from cart where cookieId = '" . GetCartId() . "' and itemId = $itemId");
}

I had the same problem, and this fixed everything for me.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Mitchell Harper


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT