|
Author |
Message |
MoonGurl
Joined: 20 Apr 2003
Posts: 29
Location: USA
|
Posted: Thu May 01, 2003 3:32 am Post subject: LOOOKI |
|
|
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 |
|
|
|
|
JohnMcK
Joined: 30 Mar 2003
Posts: 38
Location: King of Prussia, PA
|
Posted: Thu May 01, 2003 7:36 pm Post subject: |
|
|
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. |
|
|
|
|
MoonGurl
Joined: 20 Apr 2003
Posts: 29
Location: USA
|
Posted: Thu May 01, 2003 7:59 pm Post subject: |
|
|
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 |
|
|
|
|
TiDaL
Joined: 12 Apr 2003
Posts: 384
|
Posted: Thu May 01, 2003 8:55 pm Post subject: |
|
|
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. |
|
|
|
|
JohnMcK
Joined: 30 Mar 2003
Posts: 38
Location: King of Prussia, PA
|
Posted: Thu May 01, 2003 9:14 pm Post subject: |
|
|
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. _________________ -- John
Galahtech: An excellent Programmers forum - tell 'em John McKernan sent you. |
|
|
|
|
MoonGurl
Joined: 20 Apr 2003
Posts: 29
Location: USA
|
Posted: Fri May 02, 2003 3:07 am Post subject: |
|
|
yall are great
Thanks ... :> |
|
|
|
|
beetle
Joined: 04 Mar 2003
Posts: 105
|
Posted: Sun May 04, 2003 11:58 pm Post subject: |
|
|
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. |
|
|
|
|
|