Jump to content

BartWilke

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About BartWilke

  • Rank
    Newbie
  1. Hi all, I got a error when trying to upload to database. Perhaps someone can help me ? Error: ERROR: Could not able to execute INSERT INTO `Puzzle` (`NamePuzzle`, `image`) VALUES ('', ''). HTML Code: <form action="..upload.php" method="post" enctype="multipart/form-data"> Image: <input type="file" name="image" id="take-picture"><br> Name Puzzle: <input type="text" name="NamePuzzle"><br> <br> <input type="submit" value="Upload Puzzle" name="submit"> </form> PHP Code: <?php incl
  2. my next step is to make those 2 canvases overlap with the use of layers.. as I look into this solution, maybe there are some users here who can tell me what the best way is to do this
  3. Thanks for your help! ill have a look into that as for now i managed to make it work just to move all square 1 px to the left and one down.. <script> var can = document.getElementById('blokjes'); var ctx = can.getContext('2d'); var pattern = document.createElement('canvas'); pattern.width = 12; pattern.height = 12; var pctx = pattern.getContext('2d'); pctx.fillStyle = "rgb(0, 0, 0)"; pctx.fillRect(0,0,5,5); pctx.fillRect(6,6,5,5); pctx.fillRect(0,6,5,5); pctx.fillRect(6,0,5,5); var pattern = ctx.createPattern(pattern, "repeat"); ctx.beginPath(); ctx.moveTo(0, 0); ctx.li
  4. Hi all, I'm trying to get a grid of black squares but need to make a border that is transparant so i can see the squares instead of just one big black square.. here is my code: <script> var can = document.getElementById('blokjes'); var ctx = can.getContext('2d'); var pattern = document.createElement('canvas'); pattern.width = 20; pattern.height = 20; var pctx = pattern.getContext('2d'); pctx.fillStyle = "rgb(0, 0, 0)"; pctx.fillRect(0,0,10,10); pctx.fillRect(10,10,10,10); pctx.fillRect(0,10,10,10); pctx.fillRect(10,0,10,10); var pattern = ctx.createPattern(pattern, "r
  5. wrong topic, sorry
×
×
  • Create New...