PDA

View Full Version : php, prayers, and layouts.


Odd Fact
April 10th, 2006, 20:37
I am still working on a prayer script. I had some code donated and I am tryong to make it look better.

This is sort of the style I am looking for.
http://agprayer.com/

Request and prayer on the same page.

What I have are now are teo seperate files.
http://guidedbylove.com/prayer/addprayerrequest.php

and

http://guidedbylove.com/prayer/prayerrequestlist.php

The current version shows a name and should show subject. I should be able to pull this info from the database of submitted prayers.

Should I use tables for both? Can I combine the code into one file.

You can see the files at http://guidedbylove.com/prayer/

jos
April 11th, 2006, 09:54
Yes you can combine the code into one file. And if you are referring to mysql tables then you can use 1 table.

It will take a lot of time to explain how to write the code so I assume you have some PHP knowledge?

Odd Fact
April 11th, 2006, 19:08
No I am not to good with php. I have some existing code that I is setup to be two pages. So I should be able to combine the form and output on one page.

The database is already setup and working.

Dan
April 11th, 2006, 19:16
If you want to send me the source I can combine the files for you.

Normally it's easy to do, but you need to know where to remove certain duplicate lines (ie, you don't want to connect to the database twice).

Another option is frames, but reordering the PHP shouldn't take more than five minutes.

Odd Fact
April 14th, 2006, 18:31
Dan I will send the files over.

I have tinkered with the two files. In the process of changning the form it is now inputting the prayer subject into the phone number field.
http://guidedbylove.com/test/addprayerrequest.php

Here is what the public list looks like now. Any suggestions.
http://guidedbylove.com/test/prayerrequestlist.php

Odd Fact
April 15th, 2006, 07:28
Thanks to Dan for helping combine the files. Also the susbject field is now inserted properly I think. Now to the layout.

Should the form and list be tables?

This is what I have now.
http://guidedbylove.com/test/prayer.php