Jump to content

saiko

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Everything posted by saiko

  1. valtido you say "lol" to much. there is no need for it, its annoying.
  2. [quote author=ProjectFear link=topic=124595.msg516611#msg516611 date=1170114681] well see how you open up your echo with ". if you were to use those again in the echo then php thinks your closing the line. So to stop that you can put a \ in front of the ". Or you could do it like this: [code]echo "<tr bgcolor='{$row_color}'><td>";[/code] but it all comes down to what you want to do. :) [/quote] that is spot on PF :)... i tend to always use " " instead of using ' ' ..
  3. you could try replacing <?php $_SESSION['message'] ?> with <?php echo $_SESSION['message']; ?> do the same for the rest of them
  4. add <? ob_start(); then at the end ob_end_flush(); ?>
  5. put ob_start(); at the start of ur page then ob_end_flush(); at the end :)
  6. well i see wat ur sayin as... xxx access's restricted.php .. then u have a login form on restricted.php if the session is not set .. but if it is set then it displays the content ? or xxx access's restricted.php .. then it redirects to a login page if the session is not set .. but if it is set then it displays the content ?
  7. if used the right way they can be very useful. im currently learning them and there aight!
  8. *bump* ok another question. to update the database and add gold would i make a cron job or make a php script to do it.? if its a cron job can i please have some guidence
  9. yer i want it so when the user accesses the page it stores the variable to the hidden form etc. then it updates the variable so then when the counter goes again it doesnt start from the original value. or could i run the timer so it doenst have to do this. this is for a game i am making. my aim is for the timer to countdown to 0:00 then when it hits that it updates the databse and adds values like gold etc. then it resets to 5:00 and counts back down. i had that bit but when they accessed the page it went back to the original minute and second variable values. so could i run this in another file or sumthin *confused* note i have seen another site do this. if u access it or refresh it, its timer will keep going or be like the rite time. so lets say u refresh and it takes to seconds then the timer will be eg. 14:14 then 14:12.
  10. thankyou im currently putting it into my script. but one thing is how would i make it so it does the updating of the counter variable without having to submit the form ?
  11. thanx its like you cleaned my spark plugs and my brain can start again :P should of thought of this earlier. thanx. ill go see if i can do it edit: ive managed to do the updating db but how would i go about making the javascript variable update to the new seconds variable when refreshed? would i update the db to the time or a txt file or update some javascript variables? how could i get the javascript variable into php? if you cant understand me and u have msn add me: saiko@final-designs.com
  12. i would also like to know how to update a database after that specific time. so if the countdown is from 5 minutes to 0 minutes then when it hits zero it updates the database and the timer resets.
  13. riteo. i have made a javascript countdown timer that resets after 5 minutes. now there is a variable seconds for seconds and minutes for minutes which are originally and globally set. the thing is that when u refresh the time goes back to the original time i want it to goto the countdown timers last time. is there a way to do this in php ? or in javascript?
  14. && equals and || equals or $start = 12; $end = 18; if(($today >= $start) && ($today <= $end)) { echo "The range is between " . $i . "<br>"; } hope it helps :D
  15. your sorta on the rite track. this is also part of my skining system. it gets the file site_head.php now i dont want the admin having to put <?php echo $variable;?> on everthing so i was thinking i could use some other way. things i want are things such as the "images path" is stored in the variable "$images_path" so if it was set to "skins/1/images" then i want to add that to the start of all there images links eg. they have "images_01.jpg" i want it to be changed to "skins/1/images/images/images_01.jpg" so wat im trying to say is there a way i can find and replace the code in the file. or is there a way i can use another method of echoing the variables other then using the <?php echo $variable; ?> like with ipb how they do <% TITLE %> ---- NOTE: i dont have a clue how to do this ------ hope you can understand :D
  16. EDIT: topic title supose to say " use variables in html WITHOUT php brackets" how can i use variables in html without having to do the php brackets: <?php $variable; ?> ??
  17. saiko

    wierd

    yeh the server is runnin on my comp cuz i do all my testing on it!! so shuld i upload to my actual server and test it???? ok thanx to everyone that tried to help its workin when im using the full path! ****SOLVED*****
  18. saiko

    wierd

    i made a sorta break through! i have this when including a file for the skining system. on the index page i had include("$scripturl/sources/skin_foot.php"); i changed it to include("sources/skin_foot.php"); and now them files work all good and pickup the variables. $scripurl = [a href=\"http://127.0.0.1/ms2;\" target=\"_blank\"]http://127.0.0.1/ms2;[/a] can someone plz tell me wat is wrong with using the variable that is set to the url in front of /sources/skin_foot.php ?? i need to use variables in front of the files or else it wont work!! :S shuld i use the full path eg. home/user/www/folder/sources/skin_foot.php ??
  19. it aint setting for me because if it is set it will a page with a login form else it will display another page with there details on it and links to usercp etc.!! now it is set on the home because i have echoed and done some parseing etc. and i can access usercp etc. BUT other pages which i include in the skining system wont pickup the variables as set!! plz help!!
  20. saiko

    wierd

    *bump* also go here this guy is having the same problem!! [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=88157\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=88157[/a]
  21. i am having the same problem in my skining system but no one has yet to help :(
×
×
  • 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.