Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
28
Posts with Upvotes
23
Upvoting Members
10
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
1 Endorsement
Ranked #857
~9K People Reached
About Me

Retired military member. Became a front-end developer for energy industry databases after retirement. Now learning some web development and assisting on development of open-source linux software.

Interests
Fishing, boating, programming
PC Specs
Lenovo Thinkpad T550, Intel core i5, 16GB ram, 1TB SSD
Favorite Tags
Member Avatar for larry29936

I want to set a max width for all pages on a web site but have no idea where to set it in the CSS file. I tried setting it in both the body section and the html section without success. I'd appreciate some help on this. Thanks in advance.

Member Avatar for mtyide
1
328
Member Avatar for Jaziel_1

I have created a form using HTML, now I won't save the input data into my browser's local storage DB. I want to same multiple inputs, not just one. how do I do it I believe I need to use javascript but I'm not strong with it and am still …

Member Avatar for π™ΉπšŠπšœπš–πš’πš—πšŽοΌˆγƒ€γƒΌγƒͺン)
1
542
Member Avatar for larry29936

The following code works without errors on my local server but when I put it up on my hosted website, I get a "Failed - Network Error" message immediately. The way this works is that a button is pressed on a download page to select what file to download. Here's …

Member Avatar for Dani
0
420
Member Avatar for Iqra_18
Member Avatar for larry29936

I’d like to force my code to pause after completion and before displaying a completion message. I’ve tried sleep and wait commands but they affect the start of running the code. I’ve searched the web for how to do this for two days with no success. The reason for wanting …

Member Avatar for Dani
1
134
Member Avatar for larry29936

I’m using a timer script that I’d like to change the displayed text in the <p> ... </p> when the countdown ends but have no idea how to accomplish it. I’d appreciate any help I can get. Here’s the code I’m using: <p> The Update will be done in <span …

Member Avatar for larry29936
1
223
Member Avatar for Mr.M

Hi DW. I'm creating a chat system which will alow guests to send DMs to the operator and the operator can reply to it. I'm using MYSQL as my database, fingerprint2js for identifying the user since user has not yet logged in or registered but want to first communicate with …

Member Avatar for Biiim
0
126
Member Avatar for larry29936

I know this has a simple answer that I should know, but for the life of me, can't remember. I have the following update statement in my code: $stmt = $pdo->prepare("UPDATE `files` SET `filename` = ?, `md5` = ?, `filesize` = ?,`logtime` = now() WHERE `id` = ?"); $stmt->execute (array($isoname, …

Member Avatar for larry29936
0
48
Member Avatar for larry29936

I have two large files that I want to make available for users to download. When trying to download from my web host, the download never starts and I get a "504 Gateway Timeout". How would I revise my code to download from a file sharing site? I tried the …

Member Avatar for larry29936
0
78
Member Avatar for larry29936

I don't understand why this update script isn't working. It is supposed to get the names of files in the download folder and update the files table in the database. It is running through the code without exiting when it fails to update but still displays "Update Successful". The downloads …

Member Avatar for Dani
0
64
Member Avatar for Christopher_41

hi All i am trying to make a set of pages that are adaptable to different websites, the text is generally the same for each site, but i need to insert names and other text to the site on different pages, i would like to do that by having a …

Member Avatar for Christopher_41
0
127
Member Avatar for larry29936

I'm using the following code for users to download files from my website. It works fine for files under 50MB, but fails immediately for larger files. Can someone explain why this is happening and how to fix it? Some of the downloadable files are over 800MB, so I need this …

Member Avatar for Dani
0
47
Member Avatar for codingaspirant

**Issue 1:** I wanted to keep the alignment of `header` section with the Hero Image and `Headings`, `paragraphs`. But now the Logo and Navigation is centered and rest of the content is going out from left and right side. How can I move the logo to more on left side …

Member Avatar for larry29936
0
30
Member Avatar for arthurtainment

q: Write a program that prompts the user to enter two integers, one per prompt. The program should then display the result of dividing the first number by the second number, using integer division so that the answer is an integer quotient, and a remainder. Output: Enter an integer >17 …

Member Avatar for larry29936
0
27
Member Avatar for larry29936

I'd like to improve security of my website. Currently, the download filename is passed to the download script. The filenames are stored in a database table with an index number (primary key). I'd like to pass that index number to the download script instead of the filename and do a …

Member Avatar for Dani
0
116
Member Avatar for larry29936

I have a php function which allows users to download files from our archive site in England. The main site is in the U.S. and that function is working correctly. The UK function results in the files having incorrect md5sums. I've gone through it multiple times and can't find any …

Member Avatar for larry29936
0
94
Member Avatar for larry29936

When user tries to download .iso, tar.gz, or .deb from my website php is opening the file instead of downloading it. I'm having a problem with a download script. It runs fine on my local apache server, but when I put it on the my webhost's apache server, it goes …

Member Avatar for Dani
2
76
Member Avatar for larry29936

My website has a mirror of the download directory in the U.K.. On my download page I have 2 buttons, one for a U.S. download and one for a U.K. download. The current download page passes the filename to the download script. The download script (located in the download directory) …

Member Avatar for Dani
0
133
Member Avatar for larry29936

My main download page passes an id number for the file to be downloaded. In the mydloader.php (located in the download folder), I have a pdo sql query to set $l_filename to the filename in the database. I need to use $l_filename in <a href to download the file. My …

Member Avatar for larry29936
0
167
Member Avatar for larry29936

I have the following query which has died after running over an hour on my local mysql 8 server: UPDATE download LEFT JOIN lookup ON download.ip_address between lookup.start_ip AND lookup.end_ip SET ref = ( SELECT lookup.id FROM lookup WHERE download.ip_address between lookup.start_ip AND lookup.end_ip); All ip fields are IPV4 and …

Member Avatar for pritaeas
0
268
Member Avatar for larry29936

I'm trying to create a trigger that does two things, first take an ip that's in dot notation and run inet_aton on it and put the result in another field. Second, checks a lookup table to identify an ip range that the result of the first action falls into and …

Member Avatar for larry29936
1
249
Member Avatar for larry29936

I'm creating a report page and can't figure out how to convert the array (row) to just get the ip_address. I'm a newbie to php and can't figure out how to accomplish this. Here's the code that I have so far: <?php $filename = NULL; session_start(); // start of script …

Member Avatar for larry29936
0
455
Member Avatar for larry29936

I have some inline css that I'd like to add to an existing styles.css file but have no idea what the format needs to be. Here's what the inline css looks like: <style> .container { display: flex; max-width: 1350px; margin-right: auto; margin-left: auto; padding-top: .3rem; padding-bottom: 1.5rem; } .divL { …

Member Avatar for Dani
0
243
Member Avatar for larry29936

I'm trying to pass a filename to a function but don't know how to call the function from a click on a link. The top of my index.php is: <?php $filename = NULL; session_start(); // start of script every time. // setup a path for all of your canned php …

Member Avatar for Dani
0
363
Member Avatar for larry29936

I have a download page that needs to run a function when clicking on a link. The function is supposed to enter a row in a mysql database table and download the file. I don't know if I've coded the function incorrectly or I coded the onclick incorrectly. Here's the …

Member Avatar for Biiim
0
537
Member Avatar for larry29936

I have Apache2, php 7.2, and mysql installed. At the top of my index.php I have the following script: <?php session_start(); // start of script every time. // setup a path for all of your canned php scripts $php_scripts = '/home/larry/web/test/php/'; // a folder above the web accessible tree // …

Member Avatar for broj1
0
696
Member Avatar for larry29936

I have a download section in my index.php that I'd like to add a download counter to but have no idea how to accomplish this. The existing code works perfectly but I'd like to know how many times the file is downloaded. Would prefer not to use a database. <!-- …

Member Avatar for larry29936
1
599
Member Avatar for larry29936

My contact form starts with: <form id="form1" method="POST" action="mail.php"> I'd like to replace the last line in my contact form: <button type="submit" value="Send" style="margin-top:15px; margin-left: 500px; text-align: center;">Send Email</button> with one that contains <img src="images/button_send-email.png" alt="Email"> but have no idea what it should look like. I tried <a href="mail.php"><img src="images/button_read-the-file.png" …

Member Avatar for Dani
0
701
Member Avatar for larry29936

The validation section of my contact.php page is sending the user back to my index.php instead of staying on the contacts.php page so the user can correct the reported error. How can I fix this? My contact.php code follows: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $message = …

Member Avatar for Dani
0
675
Member Avatar for larry29936

I'm creating a webpage where the user will be able to download an .iso file. The version of the iso will change. For example: xxxx.1.iso will become xxxx.2.iso when the iso is updated. How do I code the download button so that I don't need to re-code the button when …

Member Avatar for Dani
1
2K