Our Web Development forum encompasses all of the serverside and clientside technologies related to building and developing a website from the ground up.

53,171 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pritaeas

The following snippet will show, how you can pass a data array to a function, and generate a table with N columns. `$data` contains some dummy data, which can come from any data source. Then you call `createHtmlTable` passing the data, the number of columns you want, and a function, …

Web Development html-css php
Member Avatar for Member #949455
3
543
Member Avatar for Member #949455

Hi I'm trying to learn how to create a random page using `rand() function` but also using the `$num` to `switch` each page. Is there a way to click a button? I only used the `Refresh Button` on Firefox. Plus it's not really display the data but only page name …

Web Development javascript php
Member Avatar for Member #949455
3
126
Member Avatar for pritaeas

Below is a documented code example showing how to use the [MySQL functions](http://php.net/manual/en/book.mysql.php) to connect and query your database (and check for errors). Please note that using the MySQL extension is **NOT RECOMMENDED**. This extension is no longer maintained and will be deprecated soon. If you want your scripts to …

Web Development mysql php
3
925
Member Avatar for broj1

Hi folks. I have a strange thing happening here. I have a loop where counter gets incrememnted by 0.1 starting from 0 and up to 1. In each iterration I use the counter in an expression with modulo operator. I get incorrect result when the counter has values of 0.8 …

Web Development php python
Member Avatar for DarkMonarch
3
419
Member Avatar for Member #949455

Hi I am trying to understand how to write a **If and Else** statement correctly regarding **sale tax or tax exemptions** on certain items for example fruits. For example: Here is a demo check out: * QTY--items - Price - Total * 6 ***apple*** - $0.89 (each) = $5.34 * …

Web Development php
Member Avatar for Biiim
3
1K
Member Avatar for broj1

I have prepared an example of login page which displays a form with inputs for username and password and compares submited values with records in database. If match is found the user is redirected to another page, if not error message is displayed. This example is heavy commented. Hope it …

Web Development mysql php
Member Avatar for broj1
3
819
Member Avatar for jeffcogswell

This past Summer, Microsoft announced the beta of a new product called WebMatrix. Two weeks ago, the third beta came out. But before I talk about it, I have to ask: Is this a new product? Or am I having déjà vu?[ATTACH]18093[/ATTACH]WebMatrix (one word) is, in fact, a brand new …

Member Avatar for masterjiraya
3
687
Member Avatar for somedude3488

Hello, I have been working on a php/xml/ajax chat program which requires no database for the last few days and was wondering if anyone could test it out for me. It has a few bugs that I would love to have someone help me fix (I am running out of …

Web Development ajax php xml
Member Avatar for joeidee
3
964
Member Avatar for kevindougans

For anyone still using the old "mysql_fetch_assoc" here is something I've just discovered today after about 9 years of PHP'ing and thought I should sahre because I've not seen many open source projects use it (maybe for another reason I'm not yet aware of)... (note: both provide the exact same …

Web Development mysql php
Member Avatar for pbcomput
3
239
Member Avatar for peter_budo

I would like to know if people would be interested in participating building similar starting thread like we have in Java section [URL="http://www.daniweb.com/forums/thread99132.html"]Starting "Java" [Java tutorials / resources / faq][/URL], but targeting Java web development. This thread would hold resources (where to get the things, configurations, basic usage and any …

Web Development java:jsp web-server
Member Avatar for peter_budo
3
97
Member Avatar for MDGM

Hey, Im just wondering how i can get something like this to work: [CODE] $tablename = $_POST['tablename']; mysql_query(CREATE TABLE `databasename`.`$tablename` (`name` VARCHAR( 200 ) NOT NULL)) [/CODE] At the moment its coming up with an error because I am using a variable for the table name instead of inputting it …

Web Development mysql php
Member Avatar for MDGM
3
3K
Member Avatar for kamal12362

Hi , I'm Kamal Hinduja based in Geneva, Switzerland. Can anyone explain How to set up file uploads in PHP securely? Thanks, Regards Kamal Hinduja Geneva, Switzerland

Web Development php
Member Avatar for himanshu777
2
186
Member Avatar for Sofia_19

I was building a small e-commerce side project last month and kept running into the same problem: every visitor saw prices in USD, including people who would happily pay in EUR or INR. I didn't want to force a locale picker on people before they'd even seen the page, so …

Web Development java javascript:node.js python
2
23
Member Avatar for Dani
Member Avatar for Mr.M

Hi DW, I'm having an issue with my code, I'm trying to animate the rolling of the ball, I want it to have faces where it will roll to the back and simulate 3D by also revealing the backside now it just display separated but I want it to look …

Web Development html-css javascript
Member Avatar for Mr.M
2
145
Member Avatar for jackdesuza

Website is redirects on other spam website? How can i comeout. Is my website hacked by someone?

Web Development cybersecurity web-server
Member Avatar for Annie warner
2
318
Member Avatar for Woodhales

As web development continues to evolve, AI-driven tools like automated coding assistants, machine learning-powered design systems, and intelligent testing frameworks are reshaping how we build websites and apps. At Red Star Technologies, we're witnessing firsthand how these innovations are making development faster, smarter, and more efficient. But with these advancements …

Member Avatar for jamiebethell3
2
218
Member Avatar for james_smite68

What are the best practices for keeping a website fast and responsive in 2026?

Member Avatar for innomedia.seo
2
147
Member Avatar for Jeramiah
Member Avatar for rproffitt
2
42
Member Avatar for appsglobal

Ever had a layout that looks perfect in Chrome, but the moment you open it in Safari… everything falls apart? Yeah. Same here It’s not your code (well… not always). Safari just handles Flexbox a little differently. Here’s what usually causes the issue Safari is stricter Chrome is forgiving. Safari …

Web Development web-browser
Member Avatar for Yoruba45
2
108
Member Avatar for FarrisFahad

Have you purchased a script from there? Is AI changing the game? Have you sold any scripts so far? For me I think it's an awesome website but AI is making it harder for developers to sell code because now people use AI to build websites and they don't need …

Member Avatar for fabwebstudio
2
249
Member Avatar for NormR1

I am working on a new version of the same project. [Posted Here](https://www.daniweb.com/programming/web-development/threads/544106/removing-unused-code) An html page that will read and display places and routes from a kml file using Google Maps API. The earlier version used Leaflet's API. The Leaflet version had over a dozen files: html, js and css. …

Web Development html-css javascript
Member Avatar for pritaeas
2
128
Member Avatar for Apk_938

I'm facing a confusing issue with one of my websites. When I test in Google Pagespeed Insights, the performance score is 99/100 and there are no visible LCP (Largest Contentful Paint) issues reported. However, in Google Search Console, I keep getting warnings about LCP problems on some URLs. I’ve double-checked …

Web Development html-css javascript web-design
Member Avatar for Adam_94
2
96
Member Avatar for strangeday

Looking for a little guidance, for a seemingly not such a complicated project for a website. Maybe y'all could assist me with the optics of this? I want a page on my site to have some input bottons, that will access an astrological database, for some end-user basic information, which …

Web Development database-design php
Member Avatar for Biiim
2
151
Member Avatar for Dani

Our RSS feeds tend to get a decent amount of traffic. I would love to cache them, but that would break [PubSubHubbub](https://en.wikipedia.org/wiki/WebSub). In other words, PubSub would provide real-time notifications to subscribers of the RSS feed, but the RSS feed would not be updated in real-time when new content was …

Web Development caching xml
Member Avatar for Dani
2
139
Member Avatar for Dani

Do either Safari or Firefox have near-term plans to implement container scroll-state queries? Google AI says that Safari supports it, but caniuse.com clearly says it does not. I'm waiting on this one with bated breath. For those of you who are not sure what I'm referring to, [it's this](https://caniuse.com/wf-container-scroll-state-queries).

Web Development html-css
Member Avatar for Dani
2
75
Member Avatar for FarrisFahad

I want to post Pins using Pinterest API. I have tried to generate code using ChatGPT but it returns an error. Here is my code so far ... <?php $clientId = "xxx"; // Replace with your App ID $clientSecret = "xxx"; // Replace with your App Secret $redirectUri = "xxx"; …

Web Development api json php
Member Avatar for geekinformatic
2
172
Member Avatar for Chris Hüneke

Never published this before, so this is a DaniWeb.com Exclusive :) If your WP-Site has a lot of K-Links, you should consider using this script. It definetly works. For now... ## **Negative SEO** through spamming Backlinks can be a huge problem for the visibility of a webpage. ## You can …

Web Development apache php:wordpress seo
Member Avatar for Dani
2
1K
Member Avatar for KamalDeepPareek

How can lazy loading improve web portal performance by reducing initial load times and optimizing resource usage? What are the best techniques to implement lazy loading in images, components, and data fetching using JavaScript frameworks like React, Vue, and Angular? How does lazy loading impact SEO and user experience?

Web Development javascript seo web-design
Member Avatar for gediminas.bukauskas.7
2
731
Member Avatar for riahc3

Hello Havent been here in a while but might as well give it a shot. I have several Apache Tomcat instances running on a Windows Server on different ports. They are all HTTP. The idea would be to (on the same server) install a IIS and use it a content …

Member Avatar for blud
2
171
Member Avatar for Reverend Jim

First I want to say that my only interest in the technical details of web development are from an end user perspective. I usually go to [this site](https://www.theweathernetwork.com/ca) to get my weather forecasts. Their current display format is to present the forecasts horizontally but it will likely be changing soon …

Web Development html-css user-interface
Member Avatar for quackyfist
2
310
Member Avatar for alexxx1

So i'd like to have a **text** saying [Location] which will be shown and changed based on the viewer's location/ip. I tried to follow this video here https://www.youtube.com/watch?v=1KiGKd2XXL4 but i didn't manage to make it to work. I registered on 2 websites to get an API key which i placed …

Web Development api javascript json
Member Avatar for toneewa
2
189
Member Avatar for FarrisFahad

I am having a problem understanding the following ... I am an okay web developer. I am not great. But I want to make money from my skills. Having said that, when I go to websites like Freelancer to search for a project to work on everyone is asking for …

Member Avatar for jkon
2
204
Member Avatar for pyeri

Greetings Folks! I had signed up on Daniweb many years ago but never bothered to seriously post until now. Only when the "social networks" of the world like Reddit and Quora and Twitter started disappointing me beyond the usual excruciating limits did I decide to explore some other programming forums …

Member Avatar for Dani
2
168
Member Avatar for Dani

DaniWeb is built on top of the Codeigniter 3.1.x PHP framework. Although I probably should have built it as a CI model, here is the database library that we are using. You can see it mainly serves as a wrapper for CodeIgniter's built-in database class. You can see we use …

Member Avatar for pyeri
2
361
Member Avatar for Read a Book

Hello everyone i want to disable the automatic swipe effect on my product page on this site https://kupisi.mk the lib is called lightgallery i am not able to find the line of code to turn it off for 2 days i need fresh pair of eyes !! :S i made …

Web Development html-css javascript
Member Avatar for Dani
2
520
Member Avatar for Dani

What was wrong with good ole using SMTP? Has anyone here successfully used an XOAuth library for PHP? Specifically, I'm looking to connect to my Office 365 mailbox.

Web Development php
Member Avatar for Dani
2
194
Member Avatar for Paulmescal

Today, blockchain has become an essential part of multiple industries, including real estate, media, manufacturing, tourism, healthcare, and Cyber security. There is no such fixed price for blockchain app development, but on average, the cost to hire a blockchain developer will be around **$5000** to **$30,000**, depending on the project …

Web Development
Member Avatar for aliceblack78
2
217
Member Avatar for abu taher

In HTMl from I have a Input field type month. When I select a month and click on search button then total days of selected month show in HTMl table with backend data. This table contain salary. I want the salary is calculate with Total days. I write a script. …

Web Development html-css javascript php
Member Avatar for Jane_11
2
273
Member Avatar for jkon

I wanted to post something in Daniweb for a while but I didn't had anything new. Recently I decided to write a new implementation for websocket connections client side using Shared Web Workers. Shared Web Workers are supported today by most browsers for desktop but few for mobile devices , …

Web Development javascript web-browser
Member Avatar for jkon
2
552
Member Avatar for borobhaisab

Hiya, I need to know something. First I thought Sitemap Xml files will list all .html and .hml and .shtm and .shtml files. All pages of the website. But now I see, Sitemap xml files also list other xml files. Check this one out for what I mean: https://www.rocktherankings.com/sitemap_index.xml So …

Web Development seo xml
Member Avatar for Dani
2
942
Member Avatar for Vandiun

I'm new to Codeigniter and hope to learn best practices as I go. I currently have a table generated by DB. HTML Table: <tr> <td> <a class="galName" href="#myModal" data-toggle="modal" > <?php echo $gal['name']; ?> </a> </td> <td> <?php echo $gal['clientName']; ?> </td> </tr> <?php endforeach; ?> The Modal: <div class="modal …

Member Avatar for Dani
2
691
Member Avatar for Walter_17

I am new to programming and testing. I would like to know if there are any useful articles or resources where I can see how to test a web service. I need to use HttpClient to implement my own universal REST API client - TestHttpClient <T>, which will complete GET, …

Web Development api http-protocol
Member Avatar for Dani
2
321
Member Avatar for dimitrilc

## Introduction ## **AMQP** (*Advanced Message Queuing Protocol*) is a popular protocol used for communication between messaging middleware and clients. At the time of this writing, the latest version of the AMQP is 1.0, but we will focus on version **0-9-1** instead. 0-9-1 is the *default* version shipped with the …

Web Development virtualization
2
372
Member Avatar for borobhaisab

Hello, You use raw_urlencode() on the file path. Does that mean you have to exclude the domain name part ? <?php echo '<a href="http://example.com/'. rawurlencode('Sales and Marketing'). '/search?'. 'query='.urlencode('Monthly Report'). '">Click Me</a>'; ?> Imagine the above is my link listed on one of my pages. Now, why is it necessary …

Web Development php python
Member Avatar for Dani
2
409
Member Avatar for Chloe_6

**Reposting again due to coding problem, I have attached the files** I am having trouble getting my button to submit the words in the text box over to the table on another page. What can I do to fix this? Thanks

Web Development php
Member Avatar for Dani
2
346
Member Avatar for Dani

Sometimes we have a need to take a simple PHP array and represent it as an encoded string. One use case that we have for this at DaniWeb is when a new user signs up, and we ask them to click on a link that was sent to them via …

Web Development json php
Member Avatar for Dani
2
258
Member Avatar for Dani

Sometimes we want to know if the webpage was fetched over an SSL connection (e.g. the URL begins with https:// instead of http://). This way, if an end-user is accessing an insecure version of our site, we can redirect them to the secure version. The following PHP function called `no_ssl()` …

Web Development php security web-design
2
283
Member Avatar for Dani

A little while ago, I wrote a [tutorial](https://www.daniweb.com/programming/web-development/tutorials/537376/sanitize-php-user-input-strings) about how important it is to sanitize PHP user input strings. Not only is it important to sanitize user input being fed into a database query, but it's also important to sanitize user input being displayed to the end-user to generate valid …

Web Development php:codeigniter
2
322
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 …

Web Development apache file-stream php
Member Avatar for Dani
2
108

The End.