Jump to content

DimitriDV

Members
  • Posts

    48
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DimitriDV's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Use cache with an expiration date of 2225 If you want to update your css file, use a new filename like css_file_v2.css
  2. Fatal error: func_get_args(): Can't be used as a function parameter in MathClass.php on line 6
  3. Hi there, I am starting to learn OO PHP programming. After running math.php, it gives an output 'Use only numbers'. Why? I don't understand this. math.php <?php require('MathClass.php'); $c = new MathClass(); echo $c->add(5,10,15,20); ?> MathClass.php <?php class MathClass{ function add(){ $args = func_num_args(); $sum = 0; $i = 0; for ($i ; $i < $args ; $i++){ is_int(func_get_args($i)) ? $sum += func_get_args($i) : die('Use only numbers'); } return $sum; } } ?>
  4. Hi there, we have a lot of performance issues on our website and we are investigating the cause. I asked one of our php developers if a high amount of mysql queries (on the same page) could be the cause of our slow website. I asked this because we have more than 100 queries on each page. I suggested to use the JOIN statement to reduce the number of queries and this was his response: The basic rule of thumb when we use mysql is - Regardless of what back end you choose the mysql query engine is week. It only supports nested loop scan, no merge join, no hash join, nothing fancy. Further sub quires can’t even use indexes so they are near useless. The rule when using mysql is *don’t join*. So the case where mysql can be put to good use is where all your quires are over a single table, which is why it has done well for web apps I wold suspect. Can someone AGREE or DISAGREE with this statement? Thanks!
  5. not sure what I'm doing wrong http://gmarwaha.com/jquery/jcarousellite/index.php#install
  6. <button class="prev"><<</button> <button class="next">>></button> <div class="anyClass"> <ul> <li><img src="1.jpg" alt="1" /></li> <li><img src="2.jpg" alt="2" /></li> <li><img src="3.jpg" alt="3" /></li> <li><img src=4.jpg" alt="4" /></li> <li><img src="5.jpg" alt="5" /></li> <li><img src="6.jpg" alt="6" /></li> </ul> <script type="text/javascript"> $(function() { $(".anyClass").jCarouselLite({ btnNext: ".next", btnPrev: ".prev" }); }); </div> script does not work, images are vertical underneath each other, no horizontal scrollbar i'm getting crazy
  7. I tried firefox: invalid property id [break on this error] * btnNext: ".next",\n
  8. no errors, just a previous button then a break then image1 <br> image2 <br> image3 <br> image4 <br> image5 and then the next button
  9. nice script but doesn't work here's my code: <button class="prev"><<</button> <button class="next">>></button> <div class="carousel"> <a href="#" class="prev">&nbsp</a> <div class="jCarouselLite"> <ul> <li><img src="images/stories/1.jpg" /></li> <li><img src="images/stories/2.jpg" /></li> <li><img src="images/stories/3.jpg" /></li> <li><img src="images/stories/4.jpg" /></li> <li><img src="images/stories/5.jpg" /></li> <li><img src="images/stories/6.jpg" /></li> </ul> <script type="text/javascript"> $(".carousel").jCarouselLite({ * btnNext: ".next", * btnPrev: ".prev" * }); </script> </div> <button class="next">>></button> <div class="clear"></div> </div> can someone help me? I also added the js in head section: <script type="text/javascript" src="http://www.certipost.be/retail/js/jquery.js"></script> <script type="text/javascript" src="http://www.certipost.be/retail/js/jcarousellite_1.0.1.js"></script> <script type="text/javascript" src="http://www.certipost.be/retail/js/jcarousellite_1.0.1.min.js"></script> <script type="text/javascript" src="http://www.certipost.be/retail/js/jcarousellite_1.0.1.pack.js"></script>
×
×
  • 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.