Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
61% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
~15.9K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.

34 Posted Topics

Member Avatar for awesomelemonade
Member Avatar for Sh4dowz
Member Avatar for james.lu.75491856

## iPhone Engineer vs Android Engineer ## Three iPhone engineers and three Android engineers are about to board a train to a computer conference. The Android engineers notice that the iPhone engineers bought only one ticket between them. The Android engineers ask the iPhone engineers how they plan on getting …

Member Avatar for james.lu.75491856
0
476
Member Avatar for Sanchixx

Hi, I am making a game I added a mouselistener in my game class but when i add a mouse listener in my class to make a custom button it doesn't work, so i had to make a variables mousePressed and variables for the mouse location mX and mY but …

Member Avatar for Member #46692
0
240
Member Avatar for David2012

This happened to me before you must save all other programs where your page is being stored, like my documents, a browser ect...

Member Avatar for jlauer2003
1
548
Member Avatar for Sanchixx

Hello, how do i add an hour to time with DATE_ADD in DATE_FORMAT? Here is my code : <?php session_start(); include('includes/main_funcs.php'); $db = db(); $reponse = $db->query('SELECT name, message, DATE_FORMAT(time, '%H:%i') AS forTime FROM chat ORDER BY ID DESC LIMIT 0, 10'); while ($donnees = $reponse->fetch()) { echo'['.$donnees['forTime'].'] <strong>'.htmlspecialchars($donnees['name']).'</strong> : …

Member Avatar for Sanchixx
0
179
Member Avatar for Sanchixx

Hello guys, I have some questions : * how can i play a sound when the contentChat.php is new. * How can i make a loading message? > <script type="text/javascript"> > setInterval(function() { > $('#contentChat').load('contentChat.php'); > }, 1000); > </script> Thank you for your help! Sanchixx

Member Avatar for Member #949455
0
99
Member Avatar for Sanchixx

I have a text file that i would like to display a part of so i use this code: <?php $page = file_get_contents('news.txt'); echo $page; ?> But in news.txt if i have this code `<?php echo"hello world!"; ?>` It will not display... when i look at the source code of …

Member Avatar for Sanchixx
0
585
Member Avatar for Sanchixx

I have a chat script but when you submit it without writing a message it submits the only the name of a person. How can i stop this? here is the code : <? session_start(); if(isset($_GET['logout'])){ $ip=$_SERVER['REMOTE_ADDR']; //Simple exit message $fp = fopen("log.html", 'a'); fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." …

Member Avatar for almostbob
0
310
Member Avatar for Sanchixx

Hello, I have a comment system that i wrote in PHP when i have used linebreak: `$area = wordwrap($area, 62,"<br>",1);` to auto break after 67 charectars so my comments don't go over a css box but when i write in uppercase; since the letters are larger it overflows. How can …

Member Avatar for Member #120589
0
356
Member Avatar for Sanchixx

Is there a problem with this code? <div id="center"> <ul id="list-nav"> <li><a href="/" >Home</a></li> <li><a href="/articles">Articles</a></li> <li><a href="#">News</a></li> <li><a href="#">Projects</a></li> <li><a href="#">Contact</a></li> </ul> </div>

Member Avatar for Member #120589
-1
75
Member Avatar for Sanchixx

I would like to split a txt file that i use as a log in a comment system after each 10 comments how can i do that? Here is my code, Sorry for the bad indentation: <?php $act = $_POST['act']; if ($act == "post") { $name = $_POST['name']; $area = …

Member Avatar for Member #46692
0
140
Member Avatar for Sanchixx

Hello, I made a first version of a comment system which can be viewed here: http://t-s.bugs3.com/index.php . Could I have some suggestions too inprove it and to know if theres anyway to hack it? If people like it i will make a site where you can download it. By the …

Member Avatar for Sanchixx
1
138
Member Avatar for Sanchixx

How can i reload `$file` with ajax or javascript each 5 seconds? <?php if ('' == file_get_contents($file)) { echo '<div id="shadow">Nobody has commented yet. Be the first? </div>'; } else { include($file); } ?>

Member Avatar for urtrivedi
0
150
Member Avatar for Sanchixx

I am makeing a comment system, i have a string where i remove html code: `$area = stripslashes(htmlspecialchars($area));` But i replace text sometimes by code, but it doesn't work because of the code above: $txtSmileys = array (':-)', ':-('); $imgSmileys = array ('<img src="smiley.jpg" />', '<img src="smiley-sad.jpg" />'); $text = …

Member Avatar for Sanchixx
0
187
Member Avatar for garima.nanda.50
Member Avatar for Sanchixx
Member Avatar for Sanchixx
0
76
Member Avatar for Sanchixx

How can i replace :), :-),O.o or B) in my a file, that is used to display chat content, by an image. Here is my code: <? session_start(); if(isset($_GET['logout'])){ $ip=$_SERVER['REMOTE_ADDR']; //Simple exit message $fp = fopen("log.html", 'a'); fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." has left the chat session.</i><br></div>"); fwrite($fp, "<!-- …

Member Avatar for Sanchixx
0
436
Member Avatar for Sanchixx
Member Avatar for kreitje
0
71
Member Avatar for sillyboy
Member Avatar for Sanchixx
Member Avatar for Sanchixx

does anyone know how to add one to an integer with bash? I tried ++$i (name of the integer)

Member Avatar for L7Sqr
0
141
Member Avatar for Sanchixx

<html> <body> <?php $i=1; echo"$i"; if(up) ++$i; ?> </body> How can i add one to $i when a button is clicked?

Member Avatar for Biiim
0
198
Member Avatar for Sanchixx

I would like to put a scollbar in my page so that people would not see all the comments in my commentbox and would have to scroll down. I **do not** want to add an iframe or a textarea to do this. How can i do this? Sanchixx

Member Avatar for ko ko
0
139
Member Avatar for Sanchixx

how can i make this div unresizable in a smaller screen size: #space3 { display:inline margin:auto; font-family:Arial; text-align : left; font-size:16px; width:490px; background-color:#f2f2f2; border-bottom:0px; padding-bottom:0px; padding-top:0px; padding-left:20px; border-style:solid; border-width: 1px; border-top:1px; border-right:0px; right:345px; position:absolute; } #space3 a { -moz-border-radius: 5px 5px 0px 0px; -webkit-border-radius: 0px 0px 5px 5px; font-family:Arial; text-align …

Member Avatar for Sanchixx
0
521
Member Avatar for Sanchixx

How can i stop someone from posting when this form is empty? Here is my form: <form name="message" action="" > <center><input name="usermsg" type="text" id="usermsg" size="63" /> <input name="submitmsg" type="submit" id="submitmsg" value="Send" /></center> </form> Sanchixx

Member Avatar for pritaeas
0
127
Member Avatar for sneekula
Member Avatar for Sanchixx
0
484
Member Avatar for Sanchixx

Whenever i make a site my css works fine in all major browsers exept IE. Is it the same for you?

Member Avatar for Troy III
0
190
Member Avatar for Sanchixx
Member Avatar for Sanchixx

Hello, I have a comment box that uses php her is the code: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.html", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try again …

Member Avatar for Member #120589
0
310
Member Avatar for Sanchixx

How can i upload an image in my php comment box here it is: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.php", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try …

Member Avatar for Member #120589
0
196
Member Avatar for Sanchixx

Hello, How can i replace a button by an image? Here is my code: <INPUT TYPE="butt <INPUT TYPE="button" NAME="insert" VALUE="Gras" onClick="this.form.area.value=this.form.area.value.concat('<b>Ajouter votre texte en gras ici</b>');">insert" Thank you, Sanchixx

Member Avatar for memomk
0
145
Member Avatar for divsok

Here is a code to refresh a page each second: <html> <head> <script type="text/JavaScript"> <!-- function timedRefresh(timeoutPeriod) { setTimeout("location.reload(true);",timeoutPeriod); } // --> </script> </head> <body onload="JavaScript:timedRefresh(1000);"> </body> </html> Sanchixx

Member Avatar for Sanchixx
0
158
Member Avatar for Sanchixx

Hello, I am making a php comment box (without sql with a file where i post the comments) i'd like that the the time that the comment was posted be written along with the name of the person, but it gives me the current time, here is my php code. …

Member Avatar for Sanchixx
0
361

The End.