PhotoshopForums.com Home
Navigate Contact FAQ Search Members
LOOOKI
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> General Photoshop and Design Discussion
 See a User Guidelines violation? Please contact us.
Author Message

MoonGurl

Joined: 20 Apr 2003
Posts: 29
Location: USA


PostPosted: Thu May 01, 2003 3:32 am    Post subject: LOOOKI Reply with quote

Ok
so some may not know but i just started learning php like four days mabey a week ago at most .... i suck with time lol
any how i just wrote my first competly independant script :>
DANCES AROUND
it is verrrrrrrrry simple script it adds a couple numbers togeter and sets their values to whole nums if you put in a decimal
but i am proud :>

http://www.moonclan.net/add.php
View user's profile Send private message Visit poster's website

JohnMcK

Joined: 30 Mar 2003
Posts: 38
Location: King of Prussia, PA


PostPosted: Thu May 01, 2003 7:36 pm    Post subject: Reply with quote

Nice job. For only a week or so you should be proud!

I noticed that you round the numbers to whole numbers before adding them. Is that what you intended? Normally, the addition would take place first and then the rounding.

_________________
-- John

Galahtech: An excellent Programmers forum - tell 'em John McKernan sent you.
View user's profile Send private message

MoonGurl

Joined: 20 Apr 2003
Posts: 29
Location: USA


PostPosted: Thu May 01, 2003 7:59 pm    Post subject: Reply with quote

you know the script calls for the input and casts it as an interger as a safety thing ... it can upset php parser if it expects an interger and gets a string ... at least so i understand from what i read
so rather than confuse it i wanted it to set them as integers first ... make sence?

righ now i amworking on a "newsletter" script set ... i want it to accept information
then file it into a database
then have an admin panel where you can get all the info to mail to .... :>
i've gotten the user interface and that stuff done and now i am working on the aprt of the scripting that send the user input to a table in data base...
...
that one line of script that says input_into is what is killing me i can't seem to get the syntax correct
:S
...
Thank you tho for the encouragement

gurl of sleepy moon quality
View user's profile Send private message Visit poster's website

TiDaL

Joined: 12 Apr 2003
Posts: 384



PostPosted: Thu May 01, 2003 8:55 pm    Post subject: Reply with quote

well you obviously have the right idea, great job and keep expanding... its always better to make ur own scripts
_________________
http://i337m1k3.deviantart.com for my ART Profile.
View user's profile Send private message AIM Address

JohnMcK

Joined: 30 Mar 2003
Posts: 38
Location: King of Prussia, PA


PostPosted: Thu May 01, 2003 9:14 pm    Post subject: Reply with quote

MoonGurl wrote:
you know the script calls for the input and casts it as an interger as a safety thing ... it can upset php parser if it expects an interger and gets a string ... at least so i understand from what i read
so rather than confuse it i wanted it to set them as integers first ... make sence?

Absolutely. The point being that you thought it through. Big Grin

_________________
-- John

Galahtech: An excellent Programmers forum - tell 'em John McKernan sent you.
View user's profile Send private message

MoonGurl

Joined: 20 Apr 2003
Posts: 29
Location: USA


PostPosted: Fri May 02, 2003 3:07 am    Post subject: Reply with quote

yall are great
Thanks ... :>
View user's profile Send private message Visit poster's website

beetle

Joined: 04 Mar 2003
Posts: 105



PostPosted: Sun May 04, 2003 11:58 pm    Post subject: Reply with quote

You should look into an abstraction class or two -- especially something to handle the DB i/o

www.php-tools.de (patDbc)

is a good one

_________________
I got nuthin.
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> General Photoshop and Design Discussion All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Contact - User Guidelines >

Copyright © 2003-2016. PhotoshopForums.com, iFroggy Network. All Rights Reserved.
Powered by phpBB © phpBB Group. phpBB SEO. Privacy Policy.
We are in no way affiliated with Adobe. Photoshop, Adobe and related marks are registered trademarks of Adobe.
PhotoshopForums.com