Jump to content

Luc

Members
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Luc

  • Rank
    Newbie
  1. Thanks, I managed to get it to work!!
  2. 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!
  3. 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): <header> ?php $pdf=$_SESSION['pdf']; $location="pdf/$pdf.pdf"; header("Content-type:application/pdf"); // It will be called downloaded.pdf header("Content-Disposition: inline; filename='downloaded.pdf'"); // The PDF source is in original.pdf readfile("$location"); ?> </header> 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....
  4. 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!
  5. INSERT into db when record does not excist

    Thanks guys, just implemented it and it works like a charm
  6. INSERT into db when record does not excist

    Ah, that might be the reason why I get the error.... How would you do this?
  7. 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! Thanks!
  8. Thanks!!! It works perfect
  9. 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)] <style> body, html {height: 100%;} #wrapper {min-height: calc(100% - 200px); footer { height:200px; } </style> 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!
  10. 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!
×