Jump to content

brown2005

Members
  • Posts

    942
  • Joined

  • Last visited

Everything posted by brown2005

  1. ok so the cookie is working. now say i have <a href="">Click here to reduce the height of this bar</a> what would I do now?
  2. <?php setcookie("myCookie", "PHP Tutorial", time()+3600); ?> <html> <body> <?php echo "The cookie value is ".$_COOKIE['myCookie']; ?> </body> </html> why does this not work? i have never ever done anything on cookies, so just got that from a tutorial.
  3. i have created a bottom bar which at the moment i have set to 200px high. what i want to do is say have a link in it. and when i click it, set a cookie and make it only 100px high. but have got no clues about cookies at all.
  4. cheers for all the people that actually posted to help. Looks like I will go with Ubuntu and see how I get on. Thank you!
  5. because I wanted to revieve it. and obviously I have not.
  6. anybody else that can help on which of these to choose: Linux RedHat Enterprise 5 Linux Ubuntu 8.10 Linux CentOS 5
  7. please look at www.allinthissite.co.uk and you will see i have a static top bar and a grey main area, but in this grey area, should be some text... this is the text. but it is not showing up. what can i do to solve this please?
  8. i dont know if you meant it this way, but there is a large space to the left of the site. around 300px roughly...
  9. <A HREF="javascript:alert('Your resolution is '+screen.width+'x'+screen.height);"> Click for your screen resolution I have got this code off the tinternet to display the width and height of the browsers window, but wat i want is say $screenheight = screen.height $screenwidth = screen.width so i can use these to put in my database. how do i go about inserting the javascript into php.
  10. I hope that was not on this forum! no, i mean i wasnt told to turn them on.. i was told Probably the fact the one has register globals off (recommended) and one has them on (frowned upon). but i turned them on. which i now know was a no no.
  11. if i understand correctly. index.php?page=whateverpage here and this is the page i want to load.
  12. if(!isset($page))$page="home"; switch($page) { case "home":$file="files/home.php"; break; case "test":$file="files/test.php"; break; } i have this code for changing pages, and i asked in a previous post about why it would work in one site and not in another, and i was told to switch on register globals, which i have seen a few times, as should be off, but how would i get around the above code, if i have them off
  13. #top-bar { position: fixed; background-color: #2A2A2A; overflow: hidden; width: 100%; height: 30px; } i have that code for my top-bar which will be fixed at the top of the page permantly.. do i need to add top: 0; left: 0; as i have seen this in some places.
  14. Hi, I just browsing my control panel of my hosted website today, and noticed that php5 was on there (didnt even know the company had this as Ive not really done much designing lately) so do i stick with php4 as i have already or change to php5? and if so why? or why not? thanks
  15. so instead of say #thisitem { float: left: padding: 10px: etc... } have #thisitem { padding: 10px; etc... } .float-left { float: left; } and have <div id='thisitem' class='float-left'>this is some text</div>
  16. yes thats exactly what i mean mate. i was just wondering if that was a good way of doing it, or would it be better including it in each item css.
  17. currently i have in my css code, for each div, float: left or float: right, etc... would it be better to take this out, and in the html just use a class of either .float-left or .float-right ?
  18. well say i have.. mynetwork and in that network i have four sites. www.site1.com www.site2.com www.site3.com www.site4.com and each site has a bar at the top to easily link between the sites.
  19. I am looking to have a network bar, over several websites, what is the best way to do this, so I can have just one file and include that?
  20. I was looking at registration forms, and came across ones used with ajax and jquery to check the fields on the forms, etc... which is better to use? and why?
  21. sorry what i meant was wouldnt it be quicker looking, say if i was on website www.myfootballwebsite.com then i would only be coding to look at the football tables anyway wouldnt that be faster than using one table for all sports and looking up just the football records in that table... but i will go the way of using like you above, which is what i was thinking of doing, if using the one table, is fast enough.
  22. say for instance i have sports_players 1345353 entries football_players 334255 entries rugby_players 145345 entries tennis_players 345243 entires and so on.... obviously i know the separate entries in each red bits would be quicker to read but if i wanted a website which can read the same as sports players, is this possible or would putting them all in the same table be the best way?
  23. hi, i am using a static topbar on a number of websites.. www.website1.com www.website2.com www.website3.com and say the static topbar is say staticbar.php do i include that file on each website. or can u include it from just one place?
×
×
  • 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.