On Nov 20, 2010, at 1:10 AM, chetan ahuja chetanahuj...@gmail.com wrote:
My project requires creating office documents on PHP. Any recommendations on
what to use?
When you say office documents do you mean you have to create them using
Microsoft office? Or just need to replicate current
My project requires creating office documents on PHP. Any recommendations on
what to use?
[snip]
Hey, Look I made a new database just for this money testing stuff.
This is the table:
CREATE TABLE `money` (
`money` varchar(255) NOT NULL default ''
) TYPE=MyISAM;
Now, I use this code
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE
Jay Blanchard wrote:
[snip]
Hey, Look I made a new database just for this money testing stuff.
This is the table:
CREATE TABLE `money` (
`money` varchar(255) NOT NULL default ''
) TYPE=MyISAM;
Now, I use this code
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10)
Lots of extra characters in that one... try this:
$q=mysql_query(update myTable set myMoney=(myMoney-10) where
myCharacter='characterName');
if(!$q){echo mysql_error();}
so wasteful :-)
$q=mysql_query(update u set m=(m-10) where
c='$c');if(!$q)die(mysql_error());
Still
Jay Blanchard wrote:
snip
been nice (because we usually get chided for our terseness).
/snip
I noticed that Jason appears to be back...the kid gloves will be off now. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
It *is* a great book (I cut my teeth with it as well):
PHP and MySQL Development (Welling and Thomson)
http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846
Read it, learn it, live it.
Matt Darby
Jay Blanchard
Matt Darby wrote:
It *is* a great book (I cut my teeth with it as well):
PHP and MySQL Development (Welling and Thomson)
http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846
Read it, learn it, live it.
Matt
snip
Honestly, the best book I read when I was starting out, and one I've
been using ever since, is the manual. I actually spent $ on a very good
php book but I think I've only cracked the cover on it once or twice in
two years.
Way to go manual guys! :D
/snip
I totally agree, I have only used
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project.
It is going to be like a RPG Game written in PHP. There is going to be a
store where you could buy weapons etc... The thing I want to ask you
guys is this. Lets say There is
Taxi for one..
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 17:39
To: php-general@lists.php.net
Subject: [PHP] My Project
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project
[snip]
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project.
It is going to be like a RPG Game written in PHP. There is going to be a
store where you could buy weapons etc... The thing I want to ask you
guys is this. Lets say
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!!
My money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A cookie?
Do you want the buy link to work
Shaw, Chris - Accenture wrote:
Taxi for one..
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 17:39
To: php-general@lists.php.net
Subject: [PHP] My Project
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!!
My money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A cookie?
Do you want
George B wrote:
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!! My
money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A
On Tue, 2005-07-19 at 17:46 +0100, Shaw, Chris - Accenture wrote:
Taxi for one..
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 17:39
To: php-general@lists.php.net
Subject: [PHP] My Project
Hey guys! This is gona be one of my last questions
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
My money is being stored in a database. And I want everythign to be in
PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after you've
checked to see
On Tue, 2005-07-19 at 17:57 +0100, Mikey wrote:
George B wrote:
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!! My
money automaticaly subtracts from 100 to 90. How do I do that?
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE `myCharacter` = `characterName`
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
My money is being stored in a database. And I want everythign to be in
PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after
On 7/19/05, Mikey [EMAIL PROTECTED] wrote:
$money = $money - 10;
Make sure you protect it against multiple browser sessions.
--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
My money is being stored in a database. And I want everythign to be in
PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =
Matt Darby wrote:
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = UPDATE `myDatabase`.`myTable` SET
On Tue, 2005-07-19 at 21:46, Jochem Maas wrote:
Matt Darby wrote:
George B wrote:
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query
28 matches
Mail list logo