52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cwarn23

In php/html/javascript there are two different ways you may redirect a user to another page however there are a few things to consider before choosing with method to use. As you should know by now php has the ability to send html and javascript to the web browser and php …

Member Avatar for coreyavis
4
2K
Member Avatar for LastMitch

Hi I'm having issue of understand how to **echo** a variable when the `class` is `extended`. I have **2** files. This is my **index.php** file: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>OOP Example</title> <?php include("class.php"); ?> </head> <body> <?php $mitch = new person("Mitch Last"); echo "Mitch's full …

Web Development php
Member Avatar for LastMitch
4
307
Member Avatar for happygeek

Everyone loves PHP these days it seems, and that includes the bad guys. So it should come as no surprise to learn that yet another remote access Trojan written using PHP has appeared. However, the fact that this particular bit of PHP backdoor code comes complete with a second, hidden, …

Web Development cybersecurity php virus-malware
Member Avatar for Heinz Stapff
4
962
Member Avatar for pritaeas

In addition to [my post in this thread](http://www.daniweb.com/web-development/php/threads/429740/php-best-practice#post1841569) I've decided to post an extended example, which also implements functions for inserts and updates. I hope the code is straightforward enough. If not, reply and let me know. The table structure I've used for my test is the following: CREATE TABLE …

Web Development data-structure php
Member Avatar for extjac
4
453
Member Avatar for cwarn23

Hi, in this news you will see how in the past few years there has been some controversy over a bug or more commonly known as a feature which appears it may be removed as of php 5.4.0. According to the features list of php 5.4.0 beta there is the …

Web Development php
Member Avatar for diafol
4
767
Member Avatar for peter_budo

The aim of this thread is to gather useful information in regards of Java web development. If you know some tips and tricks, tutorials or any interesting links that has not been already mentioned in previous posts please share with us (please always check to avoid double posting). Please DO …

Member Avatar for peter_budo
4
3K
Member Avatar for cwarn23

Hi and I am planning to make a bunch of tutorials. I would like to hear what sort of php/ajax tutorials people would like to see. I have heard in the past that some noobs would like a tutorial on making a blog. What else should I write tutorials about …

Web Development php
Member Avatar for cwarn23
4
648
Member Avatar for chinu

please let me know something abt how to go for making of on line examination project using jsp and beans as soon as possible

Web Development java-jsp
Member Avatar for peter_budo
4
215
Member Avatar for Eng._2

I have been developing this technical E-commerce store for a roofing sheets factory in Africa. The company has been quite helpful with most of the information that I asked for, ranging from the provision of products, to the introductory content. I am working on making the shop standout and be …

Web Development ecommerce
Member Avatar for simplixi
3
229
Member Avatar for PsychicTide

Hello all! I have been away from this forum for far too long and would like to help with my experience/knowledge. This place helped me get through college and early professional work as a web developer. Is there a section to post random code snippets for tasks that may help …

Web Development html-css javascript mysql
Member Avatar for PsychicTide
3
75
Member Avatar for bijutoha

I'm using Elementor Pro to build my website, including a custom header design. However, when the same header is applied to a page built with the Kadence theme (specifically the blog page), the design breaks down. ![header_issue.gif](https://static.daniweb.com/attachments/4/da38ba905d36bb38af9087b7e3299b95.gif) What settings or configurations within Elementor Pro might be causing the mismatch?

Web Development wordpress
Member Avatar for Dani
3
65
Member Avatar for FarrisFahad

For people who used both and build websites with both, which one is better? Why?

Web Development php python
Member Avatar for Dani
3
66
Member Avatar for Cameron_12

Hey guys, so I've been trying to create a website that allows users to update and delete records through the database I've set up in SQLyog. In my update confirmation file I've added location theme description to be updated and changed for all users. but for some reason its unable …

Web Development mysql php
Member Avatar for AndreRet
3
176
Member Avatar for Daniel_183

Is it possible to perform URL-based image transformations? How can I achieve this in my application?

Web Development image javascript
Member Avatar for ashishhhroe
3
147
Member Avatar for dimitrilc

## Introduction ## While creating Selenium tests, you might have found that inspecting elements manually using the web browser’s inspector could be tedious. Even after you have found the element, you still have to go through the pain of looking up the correct **xpath** syntax for this specific element. To …

3
282
Member Avatar for dimitrilc

## Introduction ## The Hyper Text Transfer Protocol (`HTTP`) is one of the most common communication protocol on the internet. There are three major versions of HTTP that you should be aware of: **1.1**, **2.0**, **3.0**. Versions 1.1 and 2.0 are widely used today, so this tutorial mainly focuses on …

Member Avatar for pritaeas
3
209
Member Avatar for Dani

Has anyone started working with PHP 8 yet? Any big backwards compatibility issues? I finally got around to upgrading to php 7! Lol better late than never.

Web Development php
Member Avatar for Joyce Sullivan
3
316
Member Avatar for Dani

I'm trying to use CSS as so: <link rel="stylesheet" media="screen and (max-width: 991.98px)" href="/files/mobile_css/daniweb.css" type="text/css"> <link rel="stylesheet" media="screen and (min-width: 992px)" href="/files/css/daniweb.css" type="text/css"> I want to load one CSS file for our mobile layout and a different one for our desktop layout. The problem is the web browser always downloads …

Web Development html-css ui-ux web-browser
Member Avatar for Dani
3
2K
Member Avatar for ushajase

hi, i have installed XAMPP, but i would like to run my localhost from another computer..

Web Development html-css php sql
Member Avatar for Imam_5
3
43K
Member Avatar for ngonix

Hello good people, I am having an issue with including subreports, lists and table datasets in the main report using jasper reports since i want to include two separate sql queries in my report. I am using the same connection to my database for both the main report and the …

Web Development dataset pdf php
Member Avatar for Partner_1
3
1K
Member Avatar for guyinpv

Hi, I'll try to make this quick. I'm used to programming PHP in context of building websites, to add random bits of dynamic functionality, but every once in a while I need to build something like a complete application. My problem is this, as a single developer, there comes a …

Web Development developer-tools php
Member Avatar for diafol
3
267
Member Avatar for AleMonteiro

Hello everybody. I'm starting to build an event calendar for employees in my company, and the first thing I needed was an working calendar to build from, so I wrote a simple one. Hope it can be usefull for someone. Cheers.

Web Development javascript
Member Avatar for Mike_40
3
2K
Member Avatar for Violet_82

Hi guys I wonder if you can help me with this as it's driving me absolutely crazy. So, I have a div, in the first screenshot which looks pretty much like a scale and can be rotated right up to 45 degrees and left up to -45 degrees ![arm_0.jpg](/attachments/large/2/7fbaf6a4b6f6140020d69bcf00526f0c.jpg "align-center") …

Web Development html-css javascript
Member Avatar for Geoff_3
3
311
Member Avatar for veedeoo

This is a continuation of our basic tutorial on MVC Framework. In this section, we will be creating the template files for both the TBS and the Smarty template engines. **The recap** In [part one](http://www.daniweb.com/web-development/php/tutorials/476695/part-one-php-mvc-framework-understanding-the-basics), we have created application controllers, models, and the one and only lone View class. Once …

Member Avatar for Geetha_1
3
8K
Member Avatar for pritaeas

https://www.mnot.net/blog/2015/12/18/451 Wondering what everybody thinks about this.

Web Development
Member Avatar for diafol
3
227
Member Avatar for rubberman

PHP is an object-oriented language, based (loosly) upon C++. It has classes, methods, member variables, and all that other good stuff. It runs on your web server, not in the client, but the HTML, JavaScript, and other stuff such as CSS blocks that it emits with its output commands are …

Web Development html-css php sql
Member Avatar for TexWiller
3
2K
Member Avatar for Violet_82

Hello guys, I wonder if I could get some help with a project I'm planning to start. As you all probably know, I'm learning MVC and I've followed dozen of online tutorials, dipped in and out of many books but I got to the conclusion that I have to dive …

Web Development asp.net machine-learning
Member Avatar for Violet_82
3
814
Member Avatar for happygeek

Content Management Systems (CMS) may not be the most interesting topic on the tech table, but oh boy does WordPress liven things up in this sector. Not, it has to be said, always in a good way. I've lost count of the number of WordPress vulnerability stories that I've read …

Web Development cms cybersecurity wordpress
Member Avatar for happygeek
3
427
Member Avatar for happygeek

"Our investigation currently indicates that the attackers accessed Adobe customer IDs and encrypted passwords on our systems. We also believe the attackers removed from our systems certain information relating to 2.9 million Adobe customers, including customer names, encrypted credit or debit card numbers, expiration dates, and other information relating to …

Web Development adobe coldfusion cybersecurity
Member Avatar for diafol
3
491
Member Avatar for lorenzoDAlipio

I need to know how many people are interested in learning how to write a desktop application using PHP? If I get enough interest on this topic, then I will write a simple tutorial on how its done. We (veedeoo and me) were experimenting on Desktop apps utilizing the [Daniweb …

Web Development api daniweb-api php
Member Avatar for diafol
3
257
Member Avatar for veedeoo

The purpose of this class is to be able to create an html form with ease. This is inspired by the form helper in CodeIgniter. This can easily adapt to bootstrap or any css and jquery where id is required. To use this class, we need to include the class …

Member Avatar for veedeoo
3
764
Member Avatar for diafol

**// EDIT 2014-04-07 //** New version (1.0.3) posted at the [bottom](http://www.daniweb.com/web-development/php/code/476623/ajaxed-linked-dropdowns-select-fields-for-volatile-data#post2082327) Demo Page: http://demos.diafol.org/ajax-linked-dropdowns.php *********************************************** Hello All. Been playing around with more linked dropdowns (select form fields), following the code snippet posted for static-ish data [here](http://www.daniweb.com/web-development/php/code/475238/linked-dropdowns-select-fields-for-static-ish-data). The static-ish version is of limited use (or of no use!) if data in …

Member Avatar for diafol
3
1K
Member Avatar for veedeoo

**Part One**: Learning the Basic Patterns **Disclaimer**: please pardon my spellogrammatico errors. I am not really a rough draft person. I type and write codes the split seconds as they crossed my mind, otherwise I will get extremely lazy and then will eventually hibernate like a tardigrade. I hope I …

Member Avatar for veedeoo
3
2K
Member Avatar for Violet_82

Hello guys, A few days ago I was looking on the net for a good jquery tabbed navigation – I needed it for a project – and I have to say that what I found wasn’t really what I was hoping for. An awful lot of people seem to be …

Member Avatar for Violet_82
3
182
Member Avatar for pritaeas

The following snippet shows how you can use binding in your queries when using MySQLi. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY …

Web Development mysql php
Member Avatar for pritaeas
3
1K
Member Avatar for pritaeas

The following snippet shows how you can use binding in your queries when using PDO. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY …

Web Development php
3
1K
Member Avatar for vegaseat

A simple way to create rainbow colored text on your web page. Just cut and paste the code into Notepad, save as Rainbow.htm and run it on your browser.

Web Development javascript web-browser
Member Avatar for Troy III
3
601
Member Avatar for diafol

# As of 4/4/2013 # This class has now been updated and posted here: http://www.daniweb.com/web-development/php/code/451674/all-in-one-daniweb-api-class# # ORIGINAL POST # This code can be used to retrieve a forum list with various options with regard to display. This class could be extended for articles, posts, etc etc. The retrieval methods include …

Web Development api daniweb-api json php
Member Avatar for diafol
3
455
Member Avatar for pixelsoul

I'm having a lot of trouble trying to figure out what is wrong with my code. It isn't returning the correct data. function time_elapsed_string($ptime) { $etime = times() - $ptimez; if ($etime < 1) { returned '0 seconds'; } $a = array[0]( 12 * 30 * 24 * 60 * …

Web Development php
Member Avatar for pixelsoul
3
363
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 php
Member Avatar for LastMitch
3
532
Member Avatar for LastMitch

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 php
Member Avatar for LastMitch
3
114
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
865
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
Member Avatar for DarkMonarch
3
396
Member Avatar for LastMitch

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 apple 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
778
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
664
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 php xml
Member Avatar for joeidee
3
901
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 open-source php
Member Avatar for pbcomput
3
207
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 …

Member Avatar for peter_budo
3
88
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 php
Member Avatar for MDGM
3
3K

The End.