dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: NoEffinWay

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Honestly, I didn't look deeply into this but just...

    Honestly, I didn't look deeply into this but just at first glance, change this:


    var arr = <?php echo json_encode($result_array)?>


    to this:
  2. Never mind, i got it, forgot to GROUP BY. Fixed...

    Never mind, i got it, forgot to GROUP BY. Fixed query is:


    SELECT
    mc.cat_id,
    mc.cat_name,
    COUNT(mi.item_id) AS total_items
    FROM menu_category AS mc
    LEFT JOIN menu_menus AS mm
    ON...
  3. [RESOLVED] Query returning only one row

    There are four rows in the table menu_category but the query I created only returns one row. Anyone have any tips on what I am doing wrong?



    SELECT
    mc.cat_id,
    mc.cat_name,...
  4. Replies
    1
    Views
    652

    Is there a better way to do this?

    I dont see myself using this elsewhere in the application so I don't want to make it a stand alone function. I feel like there is probably a preg_replace that would do what I want more efficiently....
  5. Replies
    3
    Views
    638

    Css files are relative to the current directory. ...

    Css files are relative to the current directory. You could do something like this:


    <?php
    $httpHost = $_SERVER['HTTP_HOST'];
    $urlString = "http://{$httpHost}/";
    ?><link type="text/css"...
  6. Is that LITERALLY what it says? That's invalid...

    Is that LITERALLY what it says? That's invalid PHP and wont do anything. Try replacing that, with this (I just removed the <?php ?> tags):


    <header id="mainheader">
    <h1...
  7. Replies
    3
    Views
    1,002

    jQuery Check your console. Chrome, IE,FF (probably...

    Check your console.
    Chrome, IE,FF (probably other too but didnt check): Press F12->Click Console->Refresh Page
    If there are no errors there, go to the Network tab and see if there are any 404...
  8. On the login page, have a check to see if they...

    On the login page, have a check to see if they are already logged in, for example, I use a session variable, we will call it key. I have a authentication call that runs a few check on 'key' and...
  9. What does your file structure look like? The...

    What does your file structure look like? The first solution should work, assuming the structure is correct.
  10. Thread: Help Me

    by NoEffinWay
    Replies
    1
    Views
    515

    This feels like homework. ...

    This feels like homework.



    if(isset($_POST['submit'])){
    $sortType = $_POST['result'];
    $words = explode(",",$_POST['myname']);
    if($sortType == "asc"){
    sort($words);
    ...
  11. Replies
    1
    Views
    997

    I tested it on my server, seems to work fine. ...

    I tested it on my server, seems to work fine.


    On an unrelated note, you portfolio.html page has 'undefined' under all the images.
  12. Really, no, if provided at the beginning of the...

    Really, no, if provided at the beginning of the project, that wouldn't be hard. However, if he is far into it, he may have coded it in such a way that what you are asking would require a lot of...
  13. jQuery Well, first off, the following code removed a...

    Well, first off, the following code removed a binded .node and then adds another that is not bound to anything.

    dropped.remove();
    droppedOn.append("<div class=\"node\">" + dropped.html()...
  14. Replies
    2
    Views
    3,914

    jQuery There is a parameter in fadeOUt that lets you do...

    There is a parameter in fadeOUt that lets you do something after the animation is complete.

    $( '#weather_infos' ).fadeOut(1000,function(){window.location.href = url;});
  15. Perhaps this will help, I don't know much on the...

    Perhaps this will help, I don't know much on the subject but this looks informative: http://www.mediacollege.com/internet/server/apache/mod-rewrite/subdomains.html
  16. I would need to see the javascript files to help...

    I would need to see the javascript files to help with that. If you want, send me a PM and I'll work with you on it. Or you can paste the JS here, either way.
  17. All the things in the "name" attribute are passed...

    All the things in the "name" attribute are passed in the $_POST array.
    Now, looking at your code, yours may be done via AJAX, because as-is, your <textarea> will not be sent and that send button is...
  18. Thread: php array

    by NoEffinWay
    Replies
    5
    Views
    1,032

    Your question is a little confusing but I think...

    Your question is a little confusing but I think what you want is:


    <?php
    $arr = Array
    (
    "pendingReview" => Array
    (
    "by" => "Rubab Admani",
    "date" => "2014 - 01 - 08...
  19. Thread: news page

    by NoEffinWay
    Replies
    1
    Views
    415

    First off, for performance, stop using wild...

    First off, for performance, stop using wild cards. Instead use some thing like:

    SELECT id, title, content, date FROM news
    You'll probably want to store your return in a session so you don't have...
  20. Replies
    0
    Views
    397

    Toying with Encryption

    (Don't bother replying with "don't try to make your own encryption", this is an experiment for myself that I may use on experimental sites)

    I am playing around with making my own encryption, based...
  21. Replies
    3
    Views
    843

    Yes, it is possible...but I would use more then...

    Yes, it is possible...but I would use more then just Javascript. Look into some server site scripting. I can help you with more detail if you would like, just PM me.
  22. Replies
    3
    Views
    2,631

    Yeah, I realized now that the time is wrong. I...

    Yeah, I realized now that the time is wrong. I shouldn't be awake this early. Anyway, glad you figured it out, good luck!
  23. Replies
    3
    Views
    2,631

    An important thing to remember: strtotime make a...

    An important thing to remember: strtotime make a time stamp for the entire YEAR. so you are adding two full dates. Here, I suck at explaining things but here is a script with the full break down,...
  24. Try replacing this line: ...

    Try replacing this line:


    document.write(err.description);

    with this;


    console.log(err);
  25. Replies
    6
    Views
    4,989

    What is the error? What does it say?

    What is the error? What does it say?
Results 1 to 25 of 284
Page 1 of 12 1 2 3 4
HTML5 Development Center



Recent Articles