Jump to content

Tarte

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by Tarte

  1. If what real_illusions said isn't working, you should try to code it in CSS(Div), it may work better =O.
  2. All right thanks alot, It's probably a porblem with my server, i'll try it on my localhost.
  3. mysql_connect(" ", " ", " ");mysql_select_db(" ");$retour = mysql_query('SELECT COUNT(*) AS nbre_entrees FROM news WHERE ip=\'' . $_SERVER['REMOTE_ADDR'] . '\'');$donnees = mysql_fetch_array($retour);if ($donnees['nbre_entrees'] == 0) { mysql_query('INSERT INTO news VALUES(\'' . $_SERVER['REMOTE_ADDR'] . '\', ' . time() . ')');}else { mysql_query('UPDATE news SET timestamp=' . time() . ' WHERE ip=\'' . $_SERVER['REMOTE_ADDR'] . '\'');}$timestamp_5min = time() - (60 * 5); // 60 * 5 = nombre de secondes écoulées en 5 minutesmysql_query('DELETE FROM news WHERE timestamp < ' . $timestamp_5min);$retour = mysql_query('SELECT COUNT(*) AS nbre_entrees FROM news');$donnees = mysql_fetch_array($retour);echo '<p>Il y a actuellement ' . $donnees['nbre_entrees'] . ' visiteurs connectés sur mon site !</p>';?> I would tell you guys what Error i get, but it seems like there is error on pretty much every lines *lol* so..Thanks for helping me :)PS : I named it ''news'' for some dumb reason, but it has nothing to do with news, it's supposed to show statistic -.-
  4. Anyway, i believe there is already a couples of highly skilled PHP coder in here that are ready to help any questions.
  5. Tarte

    Teamup!

    Can you explain a bit what kind of project it is? It could maybe help you to find peaple. (I could possibly be interested)
  6. I know it has nothing to do with the thread's subject but can anyone explain me the difference between Notepad 2 and notepad++? Thanks alot .
  7. Tarte

    TOP TIPS

    Or maybe there could be a kind of system where experienced peaple could Add Useful tutorials in each languages forum, and those tutorials would be watched by Mods before getting accepted.I'm sure of a thing, Tutorials on specific subject would be sooooooo Helpful.
  8. Tarte

    Spammers

    I've started to be active on this forum 7 months ago but started to Post couple of weeks ago. and no, i do not talk about 'justsomeguy' because he has alot of post but because I believe he is one of the most active member on this forum, and because he seems to spend couple hours each day to surf on the forum(Which is I think more than any Members or Mods out there)That's the only reason why I named him more than anyone.
  9. Tarte

    help with IE

    I also believe that the missing </div> in Header.php could be the problem.
  10. Tarte

    Spammers

    I think that if you guys Take 1 or 2 peaple that has been devoted to the forum for a long time, that would do the job. Peaple like ''Justsomeguy'' would do a really good job.Just my opinion^^
  11. Tarte

    Spammers

    Or maybe you could get some more mods so that there would always be a mod online?Just a suggestion
  12. You should try and make the code, and then ask for modification and help in hereYou can learn Sessions on w3schools or simply www.php.net/Sessions
  13. I did a research and I believe you can only do it in JavaScript.
  14. Instead of using Else if about 100 times, i suggest you to use While .you can go learn them in the PHP tutorials, it's really easy and simple.
  15. Tarte

    PHP vs. ASP.NET

    I believe PHP is easier and more clear. That's only my opinion.
  16. Tarte

    Forms?

    Thanks for the Link .
  17. Tarte

    Forms?

    Didn't work RahXephon, i tried to put a class to the <p> still didn't work .Any idea?I think we need to do it in the xhtml with a style.I did this and it worked perfectly : <form method="post" action="Login.php"><p>Your name :<input type="text"name="Name"style="width:100px;height:19px;border:1px black solid;padding-left:2px;"tabindex="2"> > Your password :<input type="password" name="password"style="width:100px;height:19px;border:1px black solid;padding-left:2px;"tabindex="2">
  18. Tarte

    Forms?

    I was wondering if there was a way to change the form's inside colors and even to change their size etc..If yes, what's the CSS code for it(I guess it's CSS..)Thanks for helping me .
  19. Tarte

    Xbox 360 for 100$

    Too bad i'm from Canada..
  20. Tarte

    OT: Humans

    it seems pretty easy for me to answer this question. We've been made on the earth just like any animals. The only reason that we live is because we have Cells, just like animals. We simply have a brain and we can think, that's the only reason why we don't call ourself ''Animals'' even though we are.
  21. Tarte

    Chaning our name

    All right, thanks.
×
×
  • Create New...