Forum Moderators: coopster
I am developing a website that my client can upload specific data to a client and that cient can log in and view that specific data.
Also this website has a messenger feature that allows the client to contact the owner if their is a problem or for general chit chat.
I was wondering what is the best way to go about doing this?
This will incorporate my client adding and deleting accounts, uploading massive amounts of data (client specific)
I need to know if their is a quick and easy way to do this as i have a week to create the client side website and them create all the administrative features.
I am using PHP (obviously) and MySQL.
Many Thanks
Since you are using mysql, you can store owner's data into a table along with receipts code (name/number/or some thing). Each time a member logs in your script will check through the table to see if there is any thing for the user else he has no message. You can use a separate column to store date. You can use the date to reference each owner's post as old post or new post.
Hope this helps.
I know that after you enter a username and password that you can pass the username on through the site and mysql will use that to collect all the data needed for the website for that specific user.
Appologies if i am going around the hoouses on this one.
Many Thanks
Lets say, you have a table for all your user. That is some thing like this.
Table name "userdata" which stores your user's login Id and password and may be users name, age, sex, second email, forgot password question and so on.
Now create another table "userMessage". Have "userID/userEmail", "messageText", "messageStatus" as the fields in your table.
Always make the owner, chose a particular/or many client. As the owner saves the message. Open userMessage table, find out userID/userEmail of each clients who have been selected by the owner and append the values into userMessage table AND SET messageStatus as 1.
When a user logs in, your scripts should search through the userMessage table to check if there is any messages for this user, if yes, is it messageStatus 0 or 1 ?. If it is 0 then its a old message. If it is 1 then it a new message. Update that message which has statusMessage as 1 to 0 and display the new message to the user.
Hope this helps.
The reason for this is that all the content on the website is picked from the database using the username as the main vaiable.
Many Thanks
What i am trying to do is create a site that has specific information for different users, i used (once) the $_GET command and it passed the information successfully but i was wondering if their is an easier and quicker way to do this, as the $_GET isn't working for me right now and i cannot figure out why, mainly because it is the same that i used before and i know it workd, but will not work on this project.
Many Thanks
Here a good site to learn php in more detail [w3schools.com...]