|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Trouble calling just one table...
I thought I was finished with my teachers' newsletter maker, but I was wrong. First I had a problem with security, then I used simple password authentication to access the "make newsletter forms", this solved that problem ( for now ). Then it seemed to word fine. Now I am getting a repeating post when before I used sessions, I had no such problem.
Here is the code that calls for 1 newsletter to be posted from a table row: PHP Code:
Above is the code for a page that posts the names of the newsletters entered. I have sessions registered on all the "make forms" pages and the member's only pages, they look like this: PHP Code:
All the tables are different ( mysql ), one for each user, and one for the passwords and user names and id's. The page that allows parents to view the list of newsletters does not have the above session validation, only the members only pages. What is happening? Please help. << mod edit: please put the PHP tags around PHP code, it makes things easier to read. Thank you >>
__________________
bow wow! Last edited by ejbe99 : September 12th, 2002 at 03:07 PM. |
|
#2
|
|||
|
|||
|
check your database. id say you have multiple posts in there.
|
|
#3
|
|||
|
|||
|
My sessions seem to be causing problems
I got rid of sessions on the first form page cause it was causing some problems, but now I am having other problems. The sessions were working great, from page to page, back and forth...no problem....well I should have refered to "rows" instead of tables. I have one database and many tables to pull this off. The rows in one of the tables are all showing up as a result, in the newsletter.php . Instead of calling back just one row, it is calling back all the rows and putting them on one page, a very long letter.
Also, since I have a session in progress on the pages, I can't destroy a session when someone wants to clear the page...can I? If I do, and I tried, it makes it so I have to log in again. I am using Ben Rowe's basic database tutorial, changed it a bit to meet my needs. It should be easy to have a simple form to write a basic newsletter ( the form is part of the members only pages ) and then parents can go to a viewnewsletter page with a list of the id and name of all the newsletters teacher's have posted in the db, they choose one and presto, it pops up on a new page titled that newsletter.... I had it working great, then I added the sessions for login verification and now it is ****e. If anyone can help, I'll send all the code. I'd appreciate it. Rob. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Trouble calling just one table... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|