Jump to content

b0lero

Members
  • Posts

    15
  • Joined

  • Last visited

b0lero's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Job Done thanks <a href='index.php?page=stats'><span>Home</span></a> <? if ($_GET['page'] == "stats") { include("stats.php"); } ?>
  2. <a href="chapter1.htm" target="content">Index</a> on my index.php and then <base target="content"> on the other page. but that is with frames. Make sense to do it only with one frame and then just target them ?
  3. All i want its to be simply cos the web site its local , so nobody will try do broke the security. All i want its to move from page to page from my navigation and to show the contant into a frame may be with AJAX and JavaScript will be too much. Thank You Very Much
  4. what about ... <a href="stats.php" <?php if ($currentPage=="Home") echo "class=\"on\""; ?>
  5. Hey guys I'am new to this and i have idea how to do my counter strike web site got some design at the moment and im gonna try to explain to you what i want to do so . i use <?php $homepage = file_get_contents('stats.php'); echo $homepage; ?> to include another web pages only into black space . At the moment when u are in HOME PAGE in the black space its shown stats.php ... but how to make it when i click to NEWS to show me news.php whithout changing the page ? Sorry for my stupid explanation
  6. OK almost understand what file_put_contents work , $file = __DIR__."/test.txt"; file_put_contents($file, "Hello, World!"); echo file_get_contents($file); i also find in diferent format <?php // Open the text file $f = fopen("test.txt", "w"); // Write text line fwrite($f, "PHP is fun!"); // Close the text file fclose($f); // Open file for reading, and read the line $f = fopen("test.txt", "r"); echo fgets($f); fclose($f); ?> witch is same function , but still the problem its same i can't connect it to my code witch alredy have or i need to do something totali differend
  7. I chek that already onlty the navigation is on bulgarian language the rest is english
  8. I just start learning php coding still expect book on my language so will be easy for me to understand
  9. Hey gay i did something but i don't know how to finish it There is the code <?php if(isset($_POST['formSubmit'])) { $aPeriod = $_POST['formPeriod']; if(!isset($aPeriod)) { echo("<p>You didn't select period!</p>\n"); } else { $nPeriod = count($aPeriod); echo("<p>The curent period is: $nPeriod : "); for($i=0; $i < $nPeriod; $i++) { echo($aPeriod[$i] . " "); } echo("</p>"); } } ?> <form action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post"> <label for='formPeriod[]'>Select the period:</label><br> <select name="formPeriod[]"> <option value="Vegetative">Vegetative</option> <option value="Flowering">Flowering</option> </select><br> <input type="submit" name="formSubmit" value="Submit" > </form> all i want to do is to save this submit into txt file so i don't have to submit the period in every visit into the web site any ideas ?
  10. Wow thanks so mutch mate thats fantastic , so text document keeps all the data and i don't have to visit the web site from the same ip adress to see update day info briliant ! P.S I got problem with my Like This button , when i press it browser send message ''You have reached your quota of positive votes for the day'' witch is not true :\
  11. The users are only one it's for private using and the day should star when the user press the button start and then 24h period also i prefer to connect it to myqsl not cockies cos if i visit the page from different ip the counter will be again 0
  12. Nope its not that one ill try to explain simple sorry about my english let say i press the botton start today and from today every single day will be counted into my web page , so after 20 day's counter will show TODAY IS DAY 20
  13. Hey gays im newbie in this and in php at all , what i need to do is day counter for each day... like today 1 ... tomorrow 2 ect.... how can i do it simple and not stresfull for the server as well thx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.