Jump to content

davidb52

Members
  • Content Count

    55
  • Joined

  • Last visited

Community Reputation

2 Neutral

About davidb52

  • Rank
    Newbie
  • Birthday 11/03/1995

Previous Fields

  • Languages
    HTML, CSS, PHP, MYSQL

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Netherlands
  1. Hello,I want a link that has a little (let's say) slogan underneath it.so not:http://google.combut:http://google.com but in this situation I can't get it work... <ul> <li><a href="#">Technology</a> <!-- I want a little slogan under this --> <ul> <li><a href="#2">PHP</a></li> <li><a href="#1">HTML</a></li> </ul> </li> <li> <a href="#">Lifestyle</a> <!-- I want a little slogan under this --> <ul> <li><a href="#">Sneakers</a></li> <
  2. MM, link doesn't work.But I'm using html5. http://dev.w3.org/html5/html-author/doesn't tell anything about what to use... http://www.w3schools.com/html5/tag_meta.aspin the example that you can try, they use />. While later they use "HTML5: <meta charset="UTF-8">" So what is the best way?The validator doesn't say anything about it...
  3. Hello,I'm wondering if this is allowed, and for so far I can't find the answer.For elements likemetaimgHow do you close it? Because you only need "1" element (<img src="">) not 2 like (<a href=""></a>)So:<meta charset="utf-8"><img src="images/layout/logo.png" width="266" height="100" alt="Logo"> or<meta charset="utf-8" /><img src="images/layout/logo.png" width="266" height="100" alt="Logo" /> notice the / Thanks,David
  4. I'm working on a similar menu too. This is may useful for you: HTML: <ul id="menu"><li id="home"><a href="#">Home</a></li><li id="about"><a href="#">About Us</a><ul><li id="about2"><a href="#">The teams</a><ul><li><a href="#">History</a></li><li><a href="#">Vision</a></li><li><a href="#">History</a></li><li><a href="#">Vision</a></li></ul></li><li><a href="#">History</a></li><li>&
  5. ( I asked this question on a other forum too, but I want to hear you opinions because the traffic at w3schools is different than that site )Hello,I'm trying to make a fast website. The css / javascript etc is already minifyd. But now I want to make my database faster.I know it's all about indexes and structures but even when that is already done well.What schould I use by then?Mysql, mysqli, pdo or postgresql?I was using mysql but then people said mysqli was faster. Than people said choose mysqli for speed and pdo for functionallity now they are saying choose pdo it's also faster. So what is r
  6. Nah I'm only want to increase the speed not the functionallity.So PDO exists more for the functionallity and Pear MDB2 too. So mysqli for speed? What do you guys think?
  7. Which means I still have to change everyting....And if I have to change everything why not go for the best by than? So do you think PDO is good for mysql?
  8. Thanks for the reply,the only problem: I don't know nothing about mysqli and pdo etc.Can you give me a good tutorials site?
  9. Thanks both, 1. What's that?2. Oke, thanks for the tip3. I did that too a while back ago, but I think and is easier. But is your way faster?4. Yes it's a little bit more readable by than but it's also ironic because I want to use less variables.
  10. Hello,I'm trying to optimize my PHP code for more speed.I normally used variables twice but I found out that that is something that slow downs your speed.Although now when I'm avoiding that I think my code is less readable so I wanted to ask you guys:What do you prefer? Readable code or faster code? I'm talking about this short of things: // before:$count = mysql_result($query, 0);if($count==1){ $place = $_POST['place'];if($place>=0 and $place<=$maxsize and is_numeric($place)){ // after:if(mysql_result($query, 0)==1){ if($_POST['place']>=0 and $_POST['place']<=$maxsize and is_nume
  11. davidb52

    cron job

    I love this tutorials about cron jobs http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/
  12. davidb52

    slow database

    Indeed to less informationIn phpmyadmin you could use optimize. I'm not sure if you could do something like this in oracle.
  13. davidb52

    in_array ( )

    I don't see the problem why it can't <?php$a = array('1.10', 12.4, 1.13);if (in_array('12.4', $a, true)) { echo "'12.4' found with strict check\n";}if (in_array(1.13, $a, true)) { echo "1.13 found with strict check\n";}?>The above example will output:1.13 found with strict check Update:Oops a string, not an array... Yeah you should use strpos for that.But btw why not make an array?
×
×
  • Create New...