Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
1
Downvoting Members
3
0 Endorsements
Ranked #2K
~12.7K People Reached

26 Posted Topics

Member Avatar for haribo83

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]

Member Avatar for nishchal_619
0
4K
Member Avatar for Chosen13

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...

Member Avatar for Chosen13
0
102
Member Avatar for Chosen13

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.

Member Avatar for VernonDozier
0
286
Member Avatar for cyberprincess
Member Avatar for tami64
0
218
Member Avatar for dandixon
Member Avatar for Chosen13

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.

Member Avatar for metalix
0
139
Member Avatar for Chosen13

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 …

Member Avatar for digital-ether
0
82
Member Avatar for Chosen13

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" …

Member Avatar for eddimondson
0
286
Member Avatar for YasaminKh

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.

Member Avatar for YasaminKh
0
116
Member Avatar for Chosen13

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 …

Member Avatar for nbaztec
0
138
Member Avatar for Chosen13

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 …

Member Avatar for thelamb
0
253
Member Avatar for Chosen13

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 …

Member Avatar for sDJh
0
155
Member Avatar for Chosen13

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 …

Member Avatar for Dartz654
0
65
Member Avatar for Chosen13

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. …

Member Avatar for Chosen13
0
116
Member Avatar for json101

Try the while loop. [code=php] while($str = file_get_contents("sheet5.txt")) { echo nl2br($str); } [/code]

Member Avatar for json101
0
1K
Member Avatar for Chosen13

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 …

Member Avatar for Member #334542
0
124
Member Avatar for griffith

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 …

Member Avatar for Chosen13
0
81
Member Avatar for azegurb

Does it show the image, just not gradient? If it shows the image but not the gradient it's the browsers problem.

Member Avatar for Veneficae
0
131
Member Avatar for Th3nutz

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.

Member Avatar for Chosen13
0
115
Member Avatar for Chosen13

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 …

Member Avatar for Chosen13
0
92
Member Avatar for Chosen13

Like if you have to run a query for one million people, how would you display the percentage of the query finished?

Member Avatar for Phaelax
0
66
Member Avatar for phpDave
Member Avatar for vandenzergen
0
122
Member Avatar for Chosen13

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 …

Member Avatar for CJesusSaves
0
4K
Member Avatar for Midnite002

Open the first file and replace the second files contents... you really need to use a database...

Member Avatar for Ezzaral
0
91
Member Avatar for Chosen13

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!

Member Avatar for vaultdweller123
0
102
Member Avatar for Chosen13

[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) { …

Member Avatar for Will Gresham
-3
90

The End.