Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-12-20, 08:16 AM
Junior Member
 
Join Date: Dec 2007
Posts: 2
kahey is on a distinguished road
Default "Bananas and Walnuts" - Simple Transactions

Hi!

I'm learning mysql/php thru tutorials and by sample code however I'm experiencing some difficulty getting my untrained head around something which is probably quite basic: Transactions.

Can someone offer me a simple example of mysql tables and php script (with explanations) showing in simple terms the following transactions (even #4):

1. Candy Apples buys a Banana from John Smith for an amount of money
2. Candy Apples sells the Banana to Ima Sucker for a higher amount of money
3. Candy Apples changes her mind and trades a Walnut and a lesser amount of money for the Banana from Ima Sucker
4. Candy Apples consumes the Banana and the Banana no longer exists
5. The transactions are recorded in a log.

(I guess the Banana had a tracking device installed in it..lol!)

Thanks in advance,

Kahey
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2007-12-21, 12:08 PM
Junior Member
 
Join Date: Dec 2007
Location: Chandlers Ford, Hampshire, UK
Posts: 4
sites4all is on a distinguished road
Default

Is this a school/college Christmas homework project?
Reply With Quote
  #3 (permalink)  
Old 2007-12-22, 03:46 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

Looks that way to me. I never do other people's work, only answer specific questions.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #4 (permalink)  
Old 2007-12-27, 05:30 AM
Junior Member
 
Join Date: Dec 2007
Posts: 2
kahey is on a distinguished road
Default 'Homework' ...if only that was all it was...lol!

Sorry guys! It seems my sense of humor is perhaps a little out of place here. However, I must add that assumption is the mother of all fudge-ups.

As far as homework projects are concerned the only ones I'm involved in these days are the school projects I assist my kids with...hence the initial anecdotal presentation I'm actually 42 and recently became a single dad raising 4 kids alone so I'm trying to retrain myself to suit my circumstances ie: to be able to work from home while raising my kids.

I'm trying to write a simple script to manage a stall we operate at a market on Sundays. I could download a script of course but as I'm retraining myself I find it more beneficial to write my own. I've been thru the tutorials at W3Schools.com and a couple of others and I'm grunting my way thru the php manual too.

I asked for help with an open source product (PHP/MySQL) in this forum titled 'PHP Programming Help' which seems to encourage open source therefore knowledge sharing. I asked for simple examples and explanations NOT specific code because I have no desire to use someone else's work although this appears to be common, acceptable and even encouraged practice. (Do I need to provide quotes from posters within this forum to support this?).

No offense, guys, but please demonstrate that I haven't stumbled upon yet another public forum in which those who have the knowledge preach knowledge sharing yet allow their little egos to only selectively share the commonly sought for knowledge?

"Ego and knowledge cannot sit in counsel together for ego is borne of ignorance whilst knowledge is borne of sharing" ...Kahey Seiben 1994

Last edited by kahey; 2007-12-27 at 12:17 PM.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:31 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.