I have created a few features ones fully done and the other one is still under procces. Now im trying to create a comment feature so when someone makes a status a user can comment toit at the momment a user carnt comment. Heres the status codes to help HTML CODE PHP CODE [/code:][/QUOTE]
What you ask is how to display the data result? Here is my additional code. If you want to display the data in the order, add a number or date time field.
Dont spam this post! webxtech Thanks And i was meaning how do i allow users to comment to a status update. Thanks for your help
You must create a login form so that user can update own status. Here is a simple example to login. file: login.php Then, you can include links to the other pages as I demonstrated it.
I already have all this, what im meaning is like a social network ((eg. facebook etc) for a prime example, Someone can create there own status with there login, username and passwords But at the momment i dont have a feature where they can comment to a status update that they have created. For Another Example i put a status update saying 'Site Coming Soon' Noone can currently comment to that (like other social sites)
How are your $SESSIONS getting started? I dont see you picking up variables anywhere in that form theres no <input type="submit" value="Submit" onclick="this.form.submit"> 1. so nothing is getting sent back to your page using POST method 2. it appears you're dumping your entire database using the wildcard * for SQL rather than looking for a matching user/pass that's pretty bad coding to have to dump an entire database out on a script. If I'm looking at that correctly. Unless this is only being used by one person as in an Administrator, I can't see why you'd dump out your database on them OR where you will find their specific user/pass match. It looks to me that your HTML form is bad /incomplete and your SQL queries I dont fully understand what you're tyring to do. How many people will use this system you're making? If its a standard login and member type of script ..you're looking at a do-over. 1. <form name="your_form" method="post" action="your_landing_page.php"> <text area name="mes" cols=20 rows=3> </textarea> <input type="submit" value="Submit" onclick="this.form.submit"> 2. At top of your page that the form sends to, pick up the vars: <?php $mes = $_POST['mes']; // SQL Query here ?> at least that much, then run your SQL query below it. What $_SESSIONS are you starting, are these occuring from a previous page? if so then add your session_start() at the top of page and indicate the sessions you want started $_SESSION['user_name']; Or tell us here on the forum where this script your making is at. Is it a login, is it a page that occurs after your users are already logged in and now they're just sending some textarea info?
it will start like session_start then you use a login for that connects to the database that searches for the user called $_SESSION['username']; And its a status system like facebook but more basic You have a form where they can post the data but they carnt comment to a post. I need a comment system asap this would help me learn more about php. and to view one comment at a time this is located at viewstatuspost.php?id=1 etc... or you can view all of the posts by going to viewstatus.php
I don't know about cache but the strange thing is I can not see the impressions in Google website for couple of days back and people do come from google which I have seen in Google Analytics, so something is going on with Google.
good is not and will never be perfect Hey, im trying to make a video site like YouTube but for webmasters. Now i have created the form to upload the video to the server but when i click onto a file, It only displays the files name? and not the actual thing that whats in the file.
I mean with the above posts that its only uploading the title of the page and not the actual content such as if i uploaded a video it only uploads on the title of the video from my computer and not the content.