Author Topic: [SOLVED] form help.  (Read 2284 times)

0 Members and 1 Guest are viewing this topic.

Offline webmaster1

  • Devotee
  • Posts: 606
  • Gender: Male
    • View Profile
Re: form help.
« Reply #60 on: December 07, 2008, 02:29:16 AM »
I'm always pedantic when it comes to databases. Just create your new table from scratch using the first bit of SQL code I gave you rather than changing the name of the current table. The only thing that needs changing is the destined database and the desired table name.

I think your date column is set as date rather than datetime. It needs the time as well to order correctly.

Check mine here:

http://www.joycepromotions.com/output.php
« Last Edit: December 07, 2008, 02:33:57 AM by webmaster1 »
“Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein.”

John Fitzgerald Kennedy quotes (American  35th US President (1961-63), 1917-1963)

Offline dropfaith

  • Devotee
  • Posts: 1,114
  • Gender: Male
    • View Profile
    • dropfaith Productions
Re: form help.
« Reply #61 on: December 07, 2008, 02:30:35 AM »
it should sort by date newest to oldest with my code already

order by date desc would do that

Offline webmaster1

  • Devotee
  • Posts: 606
  • Gender: Male
    • View Profile
Re: form help.
« Reply #62 on: December 07, 2008, 02:41:35 AM »
If the time looks off in my output.php page its because we're four hours ahead in Ireland. Yours should show differently.
“Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein.”

John Fitzgerald Kennedy quotes (American  35th US President (1961-63), 1917-1963)

Offline BirdmansplaceTopic starter

  • Enthusiast
  • Posts: 152
  • Birdmansplace
    • View Profile
    • Birdmans place
Re: form help.
« Reply #63 on: December 07, 2008, 02:46:43 AM »
Alright guys.  Thanks alot.   saved me hours and hours of personal head beatings.  I will leave the test folder and this info here for others to see.  And i will export the .sql file.
 
check it out:
form:http://birdmansplace.myftp.org/test/form.php                            output:http://birdmansplace.myftp.org/test/output.php

Download: http://birdmansplace.myftp.org/test/form.zip
« Last Edit: December 07, 2008, 02:47:58 AM by Birdmansplace »
half bald already, must refrain from pulling the rest out!

Offline dropfaith

  • Devotee
  • Posts: 1,114
  • Gender: Male
    • View Profile
    • dropfaith Productions
Re: form help.
« Reply #64 on: December 07, 2008, 02:51:54 AM »
np ive been thru the days of head beatings on lawrenceguide.org like hundreds of them i didnt know php at all before that project and ended up with a user driven site with all dynamic content and ratings scripts over like 2 months or so

Offline webmaster1

  • Devotee
  • Posts: 606
  • Gender: Male
    • View Profile
Re: form help.
« Reply #65 on: December 07, 2008, 02:55:38 AM »
Good man!

Three final things:

1) Your link to output.php should not be at the end of your form. It should only show after submit where it says 'Thank you username'

After this line in form.php:

Code: [Select]
echo "Thank you $username !";
paste

Code: [Select]
echo "<a href='www.yoursite.com'>somelink</a>";
Do not use double quotations in the <a> tag.

2) At a later stage try editing the code I suggested earlier. As it stands users are allowed to enter non-numeric values into your amount text box.


3) When your happy with everything don't forget to close this thread (mark as solved at bottom of page).

Glad to help, later!  ;D
“Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein.”

John Fitzgerald Kennedy quotes (American  35th US President (1961-63), 1917-1963)

Offline webmaster1

  • Devotee
  • Posts: 606
  • Gender: Male
    • View Profile
Re: form help.
« Reply #66 on: December 07, 2008, 02:58:44 AM »
np ive been thru the days of head beatings on lawrenceguide.org like hundreds of them i didnt know php at all before that project and ended up with a user driven site with all dynamic content and ratings scripts over like 2 months or so

Mmm, I'm going to try Allisons Supreme Chocolate Chip Cookies recipe.  :-*

“Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein.”

John Fitzgerald Kennedy quotes (American  35th US President (1961-63), 1917-1963)

Offline dropfaith

  • Devotee
  • Posts: 1,114
  • Gender: Male
    • View Profile
    • dropfaith Productions
Re: form help.
« Reply #67 on: December 07, 2008, 03:01:46 AM »
haha they are pretty damn good i havent had time to add more content i need to get a bunch up to demonstat it in launched mode but its a pain tp type out recipes shows stories and all that movie reviews blah

i need more projects then this haha


Offline BirdmansplaceTopic starter

  • Enthusiast
  • Posts: 152
  • Birdmansplace
    • View Profile
    • Birdmans place
Re: form help.
« Reply #68 on: December 07, 2008, 03:09:37 AM »
Alright guys.  Thanks alot.   saved me hours and hours of personal head beatings.  I will leave the test folder and this info here for others to see.  And i will export the .sql file.
 
check it out:
form:http://birdmansplace.myftp.org/test/form.php                            output:http://birdmansplace.myftp.org/test/output.php

Download: http://birdmansplace.myftp.org/test/form.zip

Everything is current. Injoy
half bald already, must refrain from pulling the rest out!