Search found 6 matches
- Thu Jul 15, 2010 1:48 pm
- Forum: PHP - Code
- Topic: Multiple page query results.
- Replies: 1
- Views: 348
Multiple page query results.
Hey everyone, quick question. I have a query that returns results into a multi-dim array, I dont want all of those to show up on one page. I understand how to use limits and can get it to work with limits in the query; the problem I have with that solution is if a record is added or deleted between ...
- Wed Apr 21, 2010 2:37 am
- Forum: PHP - Code
- Topic: Cannot send session cookie - headers alread
- Replies: 7
- Views: 1482
Re: Cannot send session cookie - headers alread
In PHP 5 you can no longer start your HTML before your session. so even if session_start(); is your first line of code for PHP if you have html before it you will get that error. Even the doctype cannot come before the session (someone please correct me if i am wrong on that, but I am fairly certain...
- Tue Apr 20, 2010 11:08 pm
- Forum: PHP - Code
- Topic: email form array that pulls info from database record
- Replies: 3
- Views: 77
Re: email form array that pulls info from database record
If your table has a foreign key such as a user id that would make it easy to compare the user id with some of the other information from your array. If you do not have any information that is unique or foreign keys you may have to take the auto_increment out and increment the number yourself to make...
- Tue Apr 20, 2010 3:09 am
- Forum: PHP - Code
- Topic: Objects inside of objects help.
- Replies: 2
- Views: 55
Re: Objects inside of objects help.
HAHA Thanks. I could have sworn that I tried to use the constructor to try to do that, but after I typed in that code it worked perfectly. Guess I just needed someone elses magic touch. Thanks again 
- Tue Apr 20, 2010 3:01 am
- Forum: PHP - Code
- Topic: email form array that pulls info from database record
- Replies: 3
- Views: 77
Re: email form array that pulls info from database record
I am sorry if I understood your question. Please tell me if I am missing anything. But I think you can just change the order of operations to your site to:
1. Gather information
2. Write to database
3. Retrieve Meeting ID
4. Send email
1. Gather information
2. Write to database
3. Retrieve Meeting ID
4. Send email
- Tue Apr 20, 2010 2:55 am
- Forum: PHP - Code
- Topic: Objects inside of objects help.
- Replies: 2
- Views: 55
Objects inside of objects help.
Hey everyone. I have been using php for a while and taught myself how to used it. My original language was C/C++ so sometimes I try to pull things in from that that just do not work. Anyway here is the problem I am not able to figure out. I have an object that handles all of my database logic for me...