Jump to content

Togo

Members
  • Posts

    7
  • Joined

  • Last visited

Togo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I cracked the nut, now everything works perfectly! I had a typo in the css which caused the different classes not to take effect. Again, thanks for the help everyone!
  2. I do understand basic HTML, thanks. I realise it should probaly looks like this: But thats the least of my problems, and it shoulden't really be a distraction from the PHP problem. Thank's Drongo, a lot! I have now verified that the PHP code works exactly as it should! Now on to the next part of the troubleshooting
  3. Yes, and that is exactly what i want the script to do. I want the link beeing clicked on underlined when the condition is met (beeing on the page the link refers too), and if not then don't underline it. My html table may be a mess, but it looks fine to me. I did try building it the way i assume you wan't to, but it didn't give me a different result. But this: Dosen't do a thing, and thats what im now trying to figure out why not.
  4. It wasen't actually your example i just posted, it was my results from the previous attempt. And speaking of said example i tried to set and Still no result though I also just now tried: It gives me an unexpected T_STRING in your code on line 6. And now I just started to read the page you linked me. Edit: Annd it might not even be the PHP code wrong anymore. I just tested what would happen if i simply made a row like this: Nothing happened, so it seems my search lies somewhere else now.
  5. Thanks Christian, ill try that as well! I actually had error reporting enabled before. But it appears i have been too lazy to enable it again, so right now i am using phpcodechecker.com instead lol. But it does look like i had a little progress. Im getting no errors now, but nothing is happening either. Code now looks like this: Looks like i was missing 2 ";" after the echo's.
  6. Thanks, i really appreciate the help. I'm starting to see clear now, it's actually a funny nut to crack! I think im really close, and with your help i altered the code like this. If dosen't give me the wanted result, it gives me a blank page. The PHP code in the header should store the exact url in the variable. And the statement says: If the url is exactly like this then use 'boldnav' class, else use 'boldnav' class. In other words, if the statement was true the line would be like this: and if false, it would be: But me getting a blank page is evidence i wrote something wrong, i would assume i may have put the first part of the code in a wrong place, but it dosen't look like it makes a difference whereever i put it.
  7. Hi, First of all, thanks for creating this site, lots of wonderful information here Im totally new to PHP, and im trying to implement a little php script in a new website im building. Basicly i have a table: When i click on a certain page, say Page 1, i wan't Page 1 to be underline and the rest of the links not. Im really lost as how i would code this in PHP, but i figure it would go something like this: This obviously dosen't work, i need a "little" help here.
×
×
  • 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.