-
Posts
2,134 -
Joined
-
Last visited
-
Days Won
42
Everything posted by benanamen
-
There are many out there. Just set the input to read only so the user cannot edit the date by hand and you are all set.
-
I didn't say anything about a "date field". I said read only which would be a standard text input and then use the date picker to populate it.
-
You might want to just use a date-picker that will put the date format you want into a read only field. Dont allow the user to enter it wrong in the first place.
-
It does that because you have a 404 redirect somewhere.
-
Wow! I can't believe you got that into it. It will definitely fall under a paid job. Op, I am available for hire if you decide to get this done right.
-
That pretty much sums it up. Anything else is a waste of time.
-
Without EVERYTHING I need to run this, I cant properly help you. The files and the two downloads is not everything. You have a lot more problems than just the one you think you do. All I have is a screen FULL of errors. There is LOTs and LOTs of work that should be done.
-
Have you thought about using MySQL instead of FileMaker Pro?
-
If you zip up all the code/files I will look at it. (everything I need to run it)
-
I assume you don't want to just display it, but also have each post stay on the page. That will be sending you to database territory. You will need to learn up on form handling http://www.w3schools.com/php/php_forms.asp And MySQL http://www.w3schools.com/php/php_mysql_intro.asp
-
Have you gone through any tutorials?
-
Where are you getting the data for the dropdown select?
-
What have you tried? What was the result?
-
Learning how to show information from a table
benanamen replied to redgunner2's topic in PHP Coding Help
Ok, lets go with this: Again, if you go to the tutorial I posted you will have your answer. If you cannot at least do that much I don't think you are going to get much help from anyone here. We are here to help you with your code, not write it for you. -
Learning how to show information from a table
benanamen replied to redgunner2's topic in PHP Coding Help
Based on what you asked, I absolutely can. When I say "anything", I mean anything regarding the subject you are asking about, not implying you dont know other things. We are here to help. Your question clearly shows you have not studied the most basic of basics regarding your question. The fact that your throwing in $_SESSION without session_start further shows that unless you just have not provided the entire code for the page. Instead of jumping on me you could have just gone to the first tutorial I pointed you to and you would have had your answer and more. If you look over all my posts you will see I am very helpful and quite knowledgeable. -
Standard forum protocol is to post what you did to fix your problem so other people reading this thread or having the same problem may benefit from it. Not to mention several people have taken their time to try to help you for free.
-
Learning how to show information from a table
benanamen replied to redgunner2's topic in PHP Coding Help
I think what you really need to do is study some tutorials. Your question is extremely basic and shows you really haven't put any effort into learning anything. IMO you are not ready to start asking for help yet. At least go through the following tutorial and then see if you have any questions. http://www.w3schools.com/php/php_mysql_intro.asp There are also numerous tutorials at code academy that will teach you all the different areas you need to know, PHP, SQL, HTML, CSS, etc https://www.codecademy.com/learn -
For the most part, it looks like your tables are already set to go. Each of those headers and its data would be a table with an id column in each tied to the main id. I see there is repeating sub header names. Those would be additional tables. What you have would be on the complicated side for a beginner but we can help you. You must really understand Database Normalization with what you have going on. Its not a complicated subject and will really help you get this set up.
-
Your first problem is you need to take the table start and end tags out of the while loop. If you have the <hr> in the loop it is going to keep repeating. Your better off putting the DB variables in parenthesis instead of doing all that escaping. {$row["subject"]}
-
Do not post duplicate posts for the same thing
-
If you want to post a row of your data with headers I will help you sort it out, but you still need to understand Normalization.
-
Why are you even selecting the users status from the database? You already know they are online, just update the status to offline. It appears you are doing something with the status that will require some explanation. It simply should just be status = 1 or status =0 Is the status column an actual timestamp column? And you should be using an actual number for a user id, not the username.
-
You can have millions of records in a table. You should first learn Database Normalization and you will have a better idea how to do your tables. The amount of records you have wont even tickle a database.