dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: iBeZi

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,204

    You need to use 2 equal signs when comparing...

    You need to use 2 equal signs when comparing values



    <HEAD>
    <script type="text/javascript">
    if (window.location.href == 'design.php?id=HelmetStickers'){
    document.write('<img...
  2. Replies
    1
    Views
    1,572

    Looks like you'd need $value[0][0]["name"]

    Looks like you'd need $value[0][0]["name"]
  3. I'd recommend looking into something like Google...

    I'd recommend looking into something like Google Charts.
  4. Thread: Stop spam posts

    by iBeZi
    Replies
    9
    Views
    2,558

    Could you maybe implement something that limits...

    Could you maybe implement something that limits how many new threads you can make? So you have to wait 10 minutes or so between making threads, should put off spammers.
  5. I'm not 100% sure what your asking for... But...

    I'm not 100% sure what your asking for... But I'll have a shot at answering.

    First of all to get that bit of code working you'd have to do something like this


    ...
  6. Not sure if this is the best way of doing it, but...

    Not sure if this is the best way of doing it, but it's the quickest way I can think of for now


    SELECT
    *
    FROM
    pto.employees
    WHERE
    concat(MONTH(hire_date),'-',DAY(hire_date))...
  7. I did not know that, I'd kind of hope most people...

    I did not know that, I'd kind of hope most people would be moving away from ie8 and below now so hopefully it shouldn't be that big of an issue... still, handy to know, thanks
  8. Is indexOf being set anywhere, i.e. I'd expect...

    Is indexOf being set anywhere, i.e. I'd expect there to be something like this somewhere.



    var indexOf = [].indexOf;


    This seems like a really strange way of doing things though, I'm pretty...
  9. Thread: Page Reload

    by iBeZi
    Replies
    3
    Views
    1,135

    When doing what? The page won't just reload...

    When doing what? The page won't just reload itself...
  10. Replies
    2
    Views
    2,597

    Poll: Use the function name without brackets in the...

    Use the function name without brackets in the event listener.



    document.getElementById("lefter_left_arrow").addEventListener("click",ChangeScript);
    function ChangeScript() {
    var c4439 = "aa"...
  11. Thread: Regex help

    by iBeZi
    Replies
    5
    Views
    1,408

    Something like this? /sid=6$/

    Something like this?



    /sid=6$/
  12. Yeah that would fix it, you're probably actually...

    Yeah that would fix it, you're probably actually looking for the break statement rather than continue though which will stop the loop completely instead of skipping to the next iteration
  13. Your while loop is iterating until y = 3, the...

    Your while loop is iterating until y = 3, the "continue" is then telling the while loop to ignore everything below and carry on to the next iteration, so y never gets passed 3 and is always less than...
  14. jQuery And to do that encoding you can use...

    And to do that encoding you can use encodeURIComponent



    function get_action (form_element) {
    if ($("#project").val()) {
    var str = $("#project").val();
    ...
  15. Replies
    5
    Views
    2,362

    1. Does the file exist? 2. Are there any errors...

    1. Does the file exist?
    2. Are there any errors in the file you're including?
    3. Have you checked your error logs?
  16. Replies
    6
    Views
    2,289

    It hasn't and I'll be surprised if they bother...

    It hasn't and I'll be surprised if they bother fixing it for the next version of PHP, they're more likely to just deprecate the function and recommend people use the DateTime class since that already...
  17. Replies
    2
    Views
    1,027

    You need to tell it which database you want to...

    You need to tell it which database you want to select.



    mysqli_select_db($conn,$dbname) or die("Could not find database");
  18. Replies
    6
    Views
    2,289

    It's probably a good idea to start moving away...

    It's probably a good idea to start moving away from using the strtotime() function and start using DateTime, which is more powerful and isn't affected by the 2038 bug.
  19. Replies
    3
    Views
    1,049

    ~ is a bitwise operator, it performs a NOT...

    ~ is a bitwise operator, it performs a NOT operation on the bits found in the binary representation of a number and returns the decimal result. This will probably do a better job of explaining it...
  20. Replies
    2
    Views
    860

    There's quite a few, this one looks pretty good ...

    There's quite a few, this one looks pretty good

    https://regex101.com/
  21. Replies
    2
    Views
    1,070

    I'm going to assume that "e" is an event object...

    I'm going to assume that "e" is an event object passed into a function by an event listener...

    e.target isn't a string, it's a reference to whichever element triggered the event, e.target.tagName...
  22. Replies
    8
    Views
    2,797

    This should work echo " \n"; ...

    This should work



    echo "<table>\n<tr>";
    $counter = 0;
    foreach($mainArray as $subArray) {

    echo "<td>ID: ".$subArray['photo_id']." name: ".$subArray['photo_name']."</td>";
    ...
  23. Replies
    3
    Views
    860

    Like this? var cat = { "legs": 3,...

    Like this?



    var cat = {
    "legs": 3,
    "name": "Harmony",
    "color": "Tortoiseshell"
    };
  24. Replies
    7
    Views
    3,245

    Just use a for loop... for(var i = 0, l =...

    Just use a for loop...



    for(var i = 0, l = locations.length; i < l; i++) {
    console.log(locations[i].latitude);
    }
  25. Replies
    7
    Views
    3,245

    You need to use JSON.parse var locations=...

    You need to use JSON.parse



    var locations= JSON.parse('<?php echo $output; ?>');
Results 1 to 25 of 259
Page 1 of 11 1 2 3 4
HTML5 Development Center



Recent Articles