Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. dsonesuk

    Button counter save

    The count is stored in a single row with a id ref, and probably a count identifier if you have more than one counter on a database, local storage stores data specific to the user visiting a site, it will never able to register and update other users triggering a count event. Every time someone clicks the button or whatever, it goes to the database and increments the current value by 1, the current total result is then retrieved and shown on the website.
  3. JMRKER

    Button counter save

    Unclear on the request, so for clarification: Does the button count need to be stored on the server for counts from more than one user? Or, can the button count be saved (and/or reset) with local storage on the users single computer?
  4. Today
  5. dsonesuk

    How do you make W3CSS Columns the same height?

    290px is smallest device width (320) minus 30px for 15px padding left and right.
  6. justsomeguy

    can a select statement return more than one value

    No one has to use your form, if you have a page that accepts input from $_GET or $_POST anyone can send anything they want to that page. Make sure you validate your inputs.
  7. kazaq6

    How do you make W3CSS Columns the same height?

    The one with the error actually acts more like what I was looking for. What made you choose 290px?
  8. Gilbert

    can a select statement return more than one value

    Thanx justsomeguy - I think what you're basically saying is that I did it correctly - that I have the right idea. I'm not sure I follow you on the 'validation' part because I'm getting the information from a database and asking the user to click on one of the options in the combo box list. Where is the validation needed? I think I'm missing where a user could inject malicious code. Thanx....
  9. It seem like SEO is mostly voodoo. https://www.seroundtable.com/google-absolute-vs-relative-urls-26001.html
  10. justsomeguy

    registry backup

    Did you edit that registry key? You can open the backup file in a text editor to see the value and just edit the registry back to the original value, you don't need to import a single value. You're suggesting that the act of backing up, that is making a copy of data, is somehow destructive? Hitting Ctrl-C, which is all backing up is, is somehow a bad thing? Well, I disagree. When you back up data you do not make any changes at all, to anything. Because that is not what backing up data is. Backing up data is making a copy of existing data. If you want to argue that making a copy of data is somehow bad or destructive, then go ahead. OK. Well, I disagree. OK. I have nothing more to say on the subject. Good luck.
  11. dsonesuk

    How do you make W3CSS Columns the same height?

    Just noticed a mistake, the css is using a .flex class it should be like this, corrected css https://www.w3schools.com/code/tryit.asp?filename=FTEKPYO1FKQ3 however if you prefer the original you can use it but just remove .w3-row.custom-flex.flex > .w3-col {flex: 1 0 290px;} as it is obsolete there is no .flex class element so its reverting to default setting for parent class styling display: flex;
  12. hisoka

    registry backup

    So after writing to me that backing up one key , if I know what I am doing , is safe , I visited this website again : https://social.technet.microsoft.com/Forums/en-US/db35e055-fb5a-43a0-b478-a238a69b438a/quot1quot-mean-virus?forum=w7itprogeneral and then tried to change the KEY_CLASSES_ROOT\exefile\shell\open key after backing it up . As I thought that , may be , it can be the solution to the error exe cannot be found make sure you typed the name correctly and try again . I restarted my computer then tried to run the exe again as administrator but I still got the same error . anyway . Thus , I tried to import the exported key and to my surprise I got this error : not all data was successfully written to the registry . Some keys are open by the system or other process . it is the same error I got when I backed up the whole registry . yes it is . You see the result yourself in the above error . backing up a key can be as bad as backing up the whole registry even if you know what to do . This is not an absolute rule but some keys , when they are backed up and restored can engender the above error . Therefore , as a conclusion , I consider that , generally , backing up a part or the whole registry is a bad idea . As result , I will consider that my question is not answered . So I am not convinced by your last answer justsomeguy .
  13. dsonesuk

    How can i get right image src code from ftp server

    If you want a more SEO friendly site, its preferable to use absolute paths rather than relative.
  14. justsomeguy

    Downloading and installing a Laravel project from github

    I don't see a reason why adding that foreign key should cause a problem, maybe try running that alter table statement in phpMyAdmin to see if you get the same error. If that works though, you'll need to look through the setup scripts to figure out what else you might need to do after that if the setup is going to fail to finish correctly. It might eventually copy some files also and if those are missing then that might be the cause of your second error.
  15. justsomeguy

    can a select statement return more than one value

    If you want to include multiple values and then separate them, you can, but make sure you validate everything. You wouldn't want someone to submit a combination that isn't actually in the database. In other words, you still need another trip to the database for validation, so you're not saving anything by doing that.
  16. Learn about relative paths... https://www.w3schools.com/htmL/html_filepaths.asp Also another common problem is that when testing on a Windows pc the paths and file names are not case-sensitive -- but then you transfer the file to a Linux server which is case-sensitive.
  17. Jirasyon

    How can i get right image src code from ftp server

    Ok i tried without httpdocs an it worked. Thank you!
  18. kazaq6

    How do you make W3CSS Columns the same height?

    Thank you!
  19. Hi all, I am populating the <options> of a <select> statement from a database using php. I'm setting the value of the options to the 'workerID' and setting the innerHTML to the worker name, reading both of these values from the database table 'workers'. The 'input' button runs the php and I have the workerID as a value, but then I have to access the table again matching the workerID in a where clause to get the first & last name of the worker. It seems kind of redundant to do it this way - the question is, is there any way to pass along the worker name (which you just looked up) along with the worker ID, to the php function, or is this a normal way to do this. I thought of making the 'value' attribute a combination of ID and name, and then separating it in the php function to use, but I was wondering if there was an easier way that I am missing. I am just trying to cut down on traffic to the server. It would seem like there would be a better way to do this. Here is my code - thanks for your help!! <div id="chooseWorker"> <?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $chosenWorker = ($_POST["mySelect"]); include "phpConnection.php"; $sql = "SELECT firstName, lastName FROM workers WHERE workerID = '".$chosenWorker; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $_SESSION["adminFirstName"] = $row["firstName"]; $_SESSION["adminLastName"] = $row["lastName"]; } } } else { return "Worker not Found"; } } ?> <h3>Please choose a Worker</h3> <form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> <select name="mySelect" size="12"> <?php include "phpConnection.php"; $sql = "SELECT * FROM workers ORDER BY ranking"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $fullName=$row["firstName"] . " " . $row["lastName"]; ?> <option value="<?php echo $row['workerID'];?>"><?php echo $fullName;?></option> <?php } // end while } // end if ?> </select> <input type="submit" value="Submit"> </form> <div> <button>cancel</button> </div> </div>
  20. dsonesuk

    How can i get right image src code from ftp server

    Like I said just by entering ' mywebsitename.com' domain refers to a folder called 'mywebsitename.com/httpdocs/' in the background, you don't need to enter 'httpdocs/' at all!. Anyone entering mywebsitename.com will is directed to 'mywebsitename.com/httpdocs/' folder because that is where all your website folders and files are placed. So replace all references to 'mywebsitename.com/httpdocs' with 'mywebsitename.com'. Also you should not use a ftp reference at all, that is a File Transfer Protocol used for you guessed it! FILE TRANSFER! it should be Hyper Text Transfer Protocol as in 'http://mywebsitename.com/img/elc.jpg'
  21. dsonesuk

    How do you make W3CSS Columns the same height?

    Use display: flex with a custom class, as it seems w3css doesn't provide class to do the same https://www.w3schools.com/code/tryit.asp?filename=FTEFHOI27J7C
  22. davej

    create a web

    File upload to the web root folder?
  23. I'm having trouble using the w3-col feature to arrange these captioned pictures. I want to make the containers with less text match the height of the first container that has more type in it. At full screen everything displays correctly, but once the text on the first image takes an extra line, the rows below get all jumbled up. I don't want to use a table or cells because I want them to go down to 2 wide on small devices. Thanks in advance for any help. Heres the code; <!doctype html> <html> <head> <meta charset="utf-8"> <title>Red Stick Sports - Home</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> </head> <body> <div class="w3-container w3-red w3-margin-bottom"> <h1>Our Services</h1> </div> <div class="w3-row"> <div class="w3-col s6 m4 l4 w3-margin-bottom w3-border"> <div class="w3-container"> <img src="images/home/br-blues-black-2b-jersey.jpg" style="width:100%"> <p>One color prints come out great with our design included pricing. </p> </div> </div> <div class="w3-col s6 m4 l4 w3-margin-bottom w3-border"> <div class="w3-container"> <img src="images/home/lsu-tiger-eye.jpg" style="width:100%"> <p>We are a licensed printer for LSU. </p> </div> </div> <div class="w3-col s6 m4 l4 w3-margin-bottom w3-border"> <div class="w3-container"> <img src="images/home/dream-logos-full.jpg" style="width:100%"> <p>4 Color Process prints can simulate photographs.</p> </div> </div> <div class="w3-col s6 m4 l4 w3-margin-bottom w3-border"> <div class="w3-container"> <img src="images/home/br-blues-black-2b-jersey.jpg" style="width:100%"> <div class="w3-container"> <p>One color prints come out great with our design included pricing. <b></b></p> </div> </div> </div> <div class="w3-col s6 m4 l4 w3-margin-bottom w3-border"> <div class="w3-container"> <img src="images/home/lsu-tiger-eye.jpg" style="width:100%"> <div class="w3-container"> <p>We are a licensed printer for LSU. </p> </div> </div> </div> <div class="w3-col s6 m4 l4 w3-margin-bottom"> <div class="w3-container"> <img src="images/home/dream-logos-full.jpg" style="width:100%"> <div class="w3-container"> <p>4 Color Process prints can simulate photographs.</p> </div> </div> </div> </div> </body> </html>
  24. dsonesuk

    multiplication and data base

    You are using width attribute not css styling, and it can only use numbers with % px etc with operators '-', '+', '/' and '*' https://developer.mozilla.org/en-US/docs/Web/CSS/calc
  25. dsonesuk

    How can i get right image src code from ftp server

    Your default root folder is 'mywebsitename.com/httpdocs/' this is where all your website files are placed, entering 'mywebsitename.com' domain address in browser window address bar should take you directly to the root folder index file which will be your home page. Folders added to this root folder such as 'img' are accessed by adding that folder name to you domain website name i.e mywebsitename.com/img will take to that img folder, then by adding the file name 'elc.jpg' should access that image file i.e 'mywebsitename.com/img/etc.jpg'.
  26. Hi, I am new at html and this forum. Sorry if this question asked before I prepared a website on my pc. While working on PC my image src code was working and code was like this: [src="C:\Users\Burak\Desktop\elc.jpg"] I've transfered my website(with FileZilla) to server and published it. The problem is FileZilla gives me the image adress as [src="ftp://ftp.mywebsitename.com/httpdocs/img/elc.jpg"] but when i put this adress in html code it is not working. I can't see any image. How should i get the right adress and use it? Thank you!
  1. Load more activity
×