Jump to content

Goafer

Members
  • Posts

    45
  • Joined

  • Last visited

    Never

Everything posted by Goafer

  1. As I recall, this effect is attainable in Firefox without CSS as you can use pseudo-class li:hover but in IE a:hover is the only option. So to get it working in IE you need a .js file to trick the browser into thinking li:hover is acceptable. Hopefully that gives you a better idea of what to search for.
  2. Hi, It's been a while since I have done any web design, and i'm currently knocking up a fairly basic site for a friend with minimal php etc. Since it's been a while, i'm trying hard to be quite clean with the coding and am taking care to use entity names where appropriate i.e. & instead of &. I'm really just wondering why ' doesn't work in IE, and as such, is it better to use ' or '. What is the difference in terms of compatibility etc? any knowledge greatly appreciated. Many Thanks, Chip(Goafer)
  3. can you not just have the ladder website access the main database instead of it's own?
  4. can't remember if it actaully matter of not, but better syntax would be: Instead of $qry[username]; use $qry['username']; <-- notice the quotes? may help if that doesn't work then i'd suggest that your database isn't being accessed correctly, check your connectiion information
  5. Goafer

    tr: hover

    1 more thing, isn't it browser specific? IE doesn't render pseudo class' properly as far as I recall? which means that tr:hover won't work in IE (unless it's 7.0 or above?????)
  6. the only thing I would suggest is adding: html, body { margin: 0px; padding: 0px; } just to make sure that it doesn't leave a gap
  7. not really sure what the problem you want addressing is, however there is an error in your php. you've tried to initiate your sessions when you've already sent html output. Sessions should be set before any output, so session_start() should be the first thing on the page
  8. could be wrong but i think it's position: static rather than postion:fixed ?? not sure though
  9. this might sound too simple but can you not just write table, tr, td { border: solid; } I think that if you don't specify the px value it won't overlap?
  10. not sure I follow you, don't you want the footer to be under the body content?
  11. Just another idea, if you contain your page in a <div id="container"> or similar and set the css: #container { height: auto; }
  12. Essentially the answer is yes. It should be possible to do the entire design for your website in CSS, as long as you structure the HTML correctly. Make good use of <div> and <span> and remember to include things like <a> in your style properties.
  13. i'd suggest something along the following lines: <a href="javascript: ToggleDisplay('divName')"> where the toggledisplay is a javascript function: <script language="javascript"> function ToggleDisplay(object) { if (document.getElementById(object).style.display == "none") { document.getElementById(object).style.display = "block"; } else { document.getElementById(object).style.display = "none"; } } </script> Sorry I can't remember the exact javascript syntax so that might not be exactly right but that is it in essence
  14. As it's a link do you not need to have the url as "href=" rather than "value=" ?
  15. i'd suggest a if(isset($_POST['submit'])) around the validation code
  16. AJAX is definitely worth looking into, seems a bit hard at first but once you've worked out the dynamics of it, it is very useful.
  17. Thanks very much Premiso. This looks like exactly what I need. I've taken a look at some pages on .htaccess and have loaded mod_rewrite on my Apache server and had a play with some simple rewrites. I think I will wait till I've finished the rest of the CMS and got it working properly before getting into the .htaccess stuff as I don't want to confuse myself too much. Thanks for such as speedy reply though.
  18. Hi there, i've recently been writing a pretty simple CMS. It works quite well and all the admin stuff works ie add/delete/edit pages. The bit that i'm struggling with the most is the front-end of the system. The menu system currently pulls all the "pageid's" and "titles" from the 'pages' table in the database and then makes a link for each one in a simple un-ordered list. The link for each one is a $_GET statement which points to "index.php?pageid=??". This works fine and the system runs okay however what i'm wondering: Can I easily disguise the content of the address bar so that it simply reads the name of the page. That is, if the user clicks the menu link for the 'about us' page, rather than having the address bar read "index.php?pageid=2" or "index.php?page=aboutus" I want it to read "exampledomain.com/aboutus" or "/aboutus.php". The theory being that the user then has a link that is more memorable and they can navigate back to the desired page rather than having to remember the more complex index.php?pageid=?? I hope that this is clear enough? Any suggestions?
  19. OK so there seems to be a lot of people on the internet asking this question and it never seems to have a definite answer so here goes: I have a page which calls on 2 class', both of which are initiated: <?php require_once('../includes/db_connect.php'); require_once('../includes/pageFunctions.php'); $connect = new dbconnect(); $func = new pageFunctions(); ?> This allows functions from either class to be executed from the page. What I want is: for one of the functions in the pageFunctions class, to use a function from within the db_connect class. So far the only way i've found of doing it is to re-initiate the db_connect class within the function thus: class pageFunctions { function randomFunction() { $connect = new dbconnect(); This then allows me to use functions from dbconnect() in randomFunction() for example: $connect->query('code'); The question: Is it possible for this to work without re-initiating dbconnect() within randomFunction()? Seeing as they have both been initiated on the active page, why can they not use each other without re-initiating each time? Can they be made global? If so how? I hope this is clear enough? Any help appreciated...
×
×
  • 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.