Jump to content


  • Content Count

  • Joined

  • Last visited

Posts posted by Luc

  1. Thanks dsonesuk!

    Since you mentioned that the browser option is to ask what to do and that it then gets downloaded, on second thought (sorry!!) I think its best to let users download it instead. However, now a user is directed to a php page and has to click a link before the file downloads. Would it be possible that the file "download itself" at the moment the page opens in the browser, without the user clicking the link?

    Thanks for your help sofar!


  2. Hey dsonesuk,

    Thanks for your reply. I tried to apply this.

    in php file where i want to show the pdf in the browser i do the following (session is started at top of the page):




    // It will be called downloaded.pdf
    header("Content-Disposition: inline; filename='downloaded.pdf'");

    // The PDF source is in original.pdf


    But I guess i have to write something too where I tell him to print my pdf in my body, but what?

    Sofar I get this: http://prnt.sc/f06szs 

    I must be doing something wrong....

  3. Hey guys,

    EDIT: I have been looking on the web to find a way to automatically download a pdf when a page opens, without user having to click a link.
    However, no solution found (at least which i can get to work...)

    Help is much appreciated!!

    Thanks guys!


  4. Hey guys,

    I have a problem. I want to write a record in my db when it does not already exists. For this, i have been looking on the web and found multiple solutions on Stackoverflow. The one I use is proved working, by the stack user however I get my die response :(.

    I use the following query (mysql/php):

    $query= "IF NOT EXISTS (SELECT * FROM tasksmade WHERE teamnumber='$teamnumber' AND tasknumber='$tasknumber' AND date='$date')
        INSERT INTO tasksmade (teamnumber, tasknumber, taskfinished, date) 
        VALUES ('$teamnumber', '$tasknumber', '$taskfinished', '$date')";    
    $result= mysql_query($query,$mysql) or die("The query result has failed on the db!");

    Hope someone can help!



  5. Thanks! This works fine, however a small white space remains under the footer.  I defined this in the file itself, not in css file since thats very difficult (lots of css from w3 schools)]

    body, html {height: 100%;}

    #wrapper {min-height: calc(100% - 200px);
     footer {

    you might have an idea for this small white space under footer?

    http://prnt.sc/et5qpk --> see here how it currently looks (this is pc screen, on mobile screen its the same however whitespace is bit smaller but I guess thats because of the difference in screen size?)

    Thanks again!



  6. Hey guys,

    I use the W3 css template Kitchen Sink (https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_templates_black&stacked=h) for my mobile website.

    Many of my pages have a lot of content in the body so there the footer is at the bottom of the page, however on a few pages there is few content so my footer is somewhere in the middle of my screen. How can I make sure that the footer is always at the bottom, also with few content? I looked around and found some possible solutions however since the complexity of the css file I dont know where to change.

    Your help is greatly appreciated!





  • Create New...