- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
26 Posted Topics
Hello, Try using the nl2br(); function. It should help if I interpreted your question right. nl2br(); replaces newlines with <br /> tags. [code]nl2br($variable);[/code]
Hello, I have a website Stickmin ([url]http://www.stickmin.com/[/url] if you want to check it out, just finished the style yesterday and I think it looks good, opinions?) I want to know the best way to handle user logins, should I make a dedicated class, user sessions, cookies, etc? Thanks...
Hello, Me and my development team are not sure how to get a users username/uid from their login on the website into the C++ application. I use PHP Cookies and Sessions for that. Is there anyway that this could work? Thanks.
At the top of your header file/page put ob_start(); and at the bottom put ob_end _flush();
Hello, I have a PHP Login Form and it works fine, but users with Fiddler2 (Web Debugging Proxy) have the ability to hide their PHPSESSID Completely. What is a good system that I can use to prevent this, as anonymous users can cause trouble on the website.
1) Simplicity. Mysqli is object oriented. It's simple to use. You create an object and pass your database information to the constructor. And you're all set. [CODE] $mysqli = new Mysqli("localhost", "username", "password", "database"); $query = $mysqli->query("YOUR QUERY"); $row = $query->fetch_object(); echo $row->result; [/CODE] 2) Speed. Mysqli is newer and …
Help please, I want to make a system so that when a thread hasn't been viewed by you, or if there are new posts in a thread that you haven't read, it will show "Unread", but when you view the new posts, or view the thread, it will show "Read" …
For the first error, use input.c_str(), which makes it the correct parameter type. For the second error, add ; at line 13. Forgot that =P For the next two errors, uncommon fclose(); You can't keep a file running open.
Well, this project I'm working on is a Pokedex Program for my little sister for her birthday. Anyways, I have a file PokeList.txt, which I want to store every Pokemon next to their ID number. The text file is: [code] 1. Bulbasaur 2. Ivysaur 3. Venusaur 4. Charmander 5. Charmeleon …
Help please, I wrote a script in C++ for loading a map file, parsing it with XML, and outputting the objects in the file. The XML parser works great, but it won't open the file. I have it exiting if the file doesn't exist, and the file doesn't load, even …
I developed a forum ([url]http://www.stickmin.com/Forums/[/url]) and I need help letting users make their thread a poll with PHP. I want them to have a textarea where they can enter an option to vote for and they make a new line for each option. I also want it to save each …
My site is a kid-based gaming site. I don't want users to be able to enter bad words. I don't want a filter that censors them, but one that if a bad word is found, redirects them to a Filtered Word page. On my previous one, words like hello or …
Help me please, I have a problem on my user page. As you can see, the boxes are moving into strange places, the badges should float on the right. Example: [url]http://www.stickmin.com/User.php?ID=2[/url]. But on pages where the description isn't long, it works right: [url]http://www.stickmin.com/User.php?ID=1[/url]. Thanks, please tell me what is wrong. …
Try the while loop. [code=php] while($str = file_get_contents("sheet5.txt")) { echo nl2br($str); } [/code]
How would I go about doing that? Here's my script: [code] <?php $q = mysql_query("SELECT * FROM users WHERE online = '1'"); while($array = mysql_fetch_array($q)) { if($array['banned']) { echo "<del><b><a href='User.php?ID=$array[id]'>$array[username]</a></b></del>"; } elseif($array['username'] == "Chosen" || $array['username'] == "CoderRyne") { echo "<b><a href='User.php?ID=$array[id]'><font color='red'>$array[username]</font></a></b>"; } elseif($array['level'] == 9) { echo …
I did this. Ok, so what you do is make a table called website or something, and give it a unix timestamp. Then whenever time() < $websitetable['update_time'], run the query, than in the same if statement update the column update_time to equal strtotime("+5 minutes"). That way, it will update it …
Does it show the image, just not gradient? If it shows the image but not the gradient it's the browsers problem.
Try HTTP access. Like send an HTTP connection like [url]http://www.site.com/RecieveRequest.php?Variable=whatever&token=randomidforsecurity[/url]... If not that you can do a post value.
I need help making something for a forum of mine. I have view thread, new reply, new topic, forum index, view forum, and all that done. I just need this. What I want it to be is a section that lists the last 25 posts you've posted in, and each …
Like if you have to run a query for one million people, how would you display the percentage of the query finished?
Can you please explain your request more clearly.
My website is [url]http://www.stickmin.com/[/url] (Please Register!) I have it so when a user Logs In it updates their status to "Online" and if a user clicks Logout it updates their status to "Offline"... The problem I have is that some users just click the exit button on their browser and …
Open the first file and replace the second files contents... you really need to use a database...
Help, my forums worked great until I got over 1000 posts, but then they stopped ordering correctly. Whenever someone posts a new thread it puts it on the second page now. HELP!
[CODE]<?php if(isset($_POST['register'])) { $username = $_POST["username"]; $password = $_POST["password"]; $email = $_POST["email"]; $conf_pass = $_POST["confirm"]; $error = false; $connect = mysql_connect("localhost", "stickmi1_data", "electricCompany"); $database = mysql_select_db("account", $connect); $usernameCheck = mysql_query("SELECT username FROM users WHERE username = '$username'"); // Registration Form Validation Script if(!$username || !$password || !$email || !$conf_pass) { …
The End.
Chosen13