Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dsonesuk

  1. try adding full path to php file in action, just in case its relative path issue.
  2. With tables you CAN'T! you can't make column in one row a new full width column within another row. That is why they are useless for responsive design.
  3. Try step by step 1. give submit a name attribute with value, and check if openApp.php can read value, using $_GET or $_POST which ever you use at the time.
  4. That i wouldn't know, because the only person here who knows what their current html layout is, so i can suggest a solution is you! Most of time you will use media queries which allow you to adjust widths of elements depending on browser viewport width.
  5. That is what there supposed to do, you have create a layout so they don't look a jumbled mess.
  6. The clue is in what actually happened! ?param=myparam (as in index = value) $getmyparam=$_GET['param']; (apply index value to $getmyparam) returns 'myparam' (the value) myparam should be 10006. Its treating myparam as a string, not parameter variable, you have to separate the variable from the string {location.href='mypage1.php?param='+myparam;return false; window.open(location.href); return false;} 'mypage1.php?param=' is string part, while +myparam will now join the value of myparam to rest of string
  7. While in brwser press F12 on keyboard, loook for console tab, click console tab, reload page, errors if any will now show.
  8. You don't? That statement suggests you are setting storage value to storage value.
  9. Each navbar item will have unique id ref, the related images will have class name with same value. Then all you do is onclick of specific navbar item get id ref value and show only all images with class names of the same value.
  10. On load of document you should check if sessionStorage is set, if set, set class to currently held value, else set to a default value. What you are doing is setting to 'dark-mode' whatever state its in on page load.
  11. dsonesuk

    Search Bar

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Is a old unused doctype any html5 tags css3 css styling won't work as they should, you also have multiple html,body, head, title opening/closing tags to name few, that! are not allowed. I can't provide a solution for such invalid broken html code. Copy source code and paste in direct input tab at https://validator.w3.org/ and correct the errors. https://www.w3schools.com/html/default.asp Show the correct doctype and required attributes to allow nav, header, footer tags showed as invalid tags in valdator using transitional doctype.
  12. Querystring such as FT_Search2.php?param=myparam Or in a php session.
  13. dsonesuk

    Search Bar

    I tested my code again! and it worked fine. It set the size of button to a size that will not shrink to a size smaller than the text. The input allows for size of the button to fit in available width. The logo goes to top and nav bar extends to size of content enveloping logo at top and input, search button, menu button and cart.
  14. dsonesuk

    Search Bar

    Was there any change? If there was no change press ctrl F5, or clear history.
  15. Gosh! When i remove display: flex; it still works! Amazing!
  16. Try adding header('Content-type: text/html; charset=utf-8'); To top of page.
  17. Use var_dump() before if condition for both.
  18. In chrome press F12, in tab 'Elements select the element right click -> Edit as HTML What does it show now.
  19. dsonesuk

    Search Bar

    Place this just before /* Resize general elements to Media */ in general.css file header .search { width: 38%; } header .search input { width: calc(95% - 75px); } header .search button {width: 75px;} Place this after /* Resize general elements to Media */ @media only screen and (min-width:380px) and (max-width:768px) { body header .search {width: 55%;} .side_nav + header { height:auto; } header .logo { float: none; margin-left: auto; margin-right: auto; overflow: hidden; clear:both; width:100%; } header .logo a { float: none; margin:0 auto; } main {padding-top: 60px;} }
  20. That is not valid sql you haven't selected any columns to search through and if you want to list data from both tables you must give both table names comma separated.
  21. Each user will have a unique number right! For example In user table User tom userid #1 User mick userid #2 User harry userid #3 Image table Userid #1 image_a.jpg Userid #1 image_b.jpg Userid #2 image_c.jpg Userid #3 image_d.jpg Userid #3 image_e.jpg Userid #3 image_f.jpg User tom id 1 has 2 images in image table User id mick 2 has 1 image in image table User harry id 3 has 3 images in image table By using userid from session in SQL statement in WHERE usertablename.userid=$user_id AND imagetablename.userid =$user_id You can bring up data for instance "tom" along with images saved under his id number image_a.jpg and image_b.jpg That is what we call a relational database, the id are keys to other related information stored on different tables. The user table stores 1 row of data related to specific user id, the image table could be as i have done in my example, a table that stores many rows of images to specific user, this is known as a one to many relationship. NOTE: You would not use auto-increment for userid for image table because you HAVE to enter the id number on inserting/updating to image table.
  22. It doesn't matter what you name them as long as both match each other as identifier value reference for a specific user. You then use select query to select column names from both tables where one user id ref value would equal the other users id ref value. Try it! add userid to image table with values equaling those in users table, and try to bring up data from both where id ref match.
  23. Like i said you need userid to be saved to image table, so they have to be logged in to get userid from session. Then you retrieve user table info and image table info together WHERE userid from user table equals userid from image table. That is what will link them both together.
  24. dsonesuk

    Search Bar

    Normally the logo would be stacked at top and hamburger menu usually only appears on smaller devices (in place of desktop hover over dropdown menu) to give extra room for remaining features. Has this hb menu always been viewable what ever device size?
  • Create New...