824 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Ant_426

Hi. Please could someone help me understand what's happening here. I have a MySQL database which has a table with some data in the following format: 2022-03-15 06:55:39:<br/>LineOfSight:<br/>java.lang.Exception:<br/> UNAVAILABLE TELEMETRY BR$0 The field collation is utf8 and the data is stored as text. This data is provided via a 3rd …

Web Development mysql php
Member Avatar for Dani
1
381
Member Avatar for dimitrilc

## Introduction ## Selenium is one of the most popular web browser automation tools out there. There is no restriction on what you can use Selenium for. You can use it to build a GPU scalping bot (*please don’t*) or build e2e tests for your website. In this tutorial, we …

Web Development spring-framework
1
213
Member Avatar for Lucas_Raza

## Introduction: ## An IDE (*Integrated Development Environments*) is used to make a developers life easier. You are most likely already familiar with the IDE, **VSCode**; but are you familiar **VSCode Extensions**? Extensions take your IDE past the out-of-the-box experience; I wish I had known about this particular extension [**Simple …

Web Development javascript
1
137
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
2
217
Member Avatar for Dani

For some reason, PHP class constants don't play nicely with inheritance. For example, suppose you have the following code: class Foo { const VAR = 'foo'; public function __construct() { echo self::VAR; } } class Bar extends Foo { const VAR = 'bar'; } // This will actually print out …

Web Development php
Member Avatar for Dani
1
336
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 …

Web Development http-protocol
Member Avatar for pritaeas
3
190
Member Avatar for davy_yg

Hello, I get this error message: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' When running this code: ` Rp. <div id="total"></div> ``` <script> $("#total").html({<?php number_format($("#subtot").val(), 0, '', '.'); ?>}); </script> ``` ` Any idea why?

Web Development javascript
Member Avatar for Dani
1
186
Member Avatar for lukwagomedia

Hello everyone! I am wondering how I can access the ending of my url address. For exampel: www.castingvault.eu/willy And I wand the name "willy" only and then process and use it in my php code. Usually you write the url like this: www.castingvault.eu/members.php?mem=willy and the following is how to access …

Web Development php
Member Avatar for Dani
0
290
Member Avatar for eshach2221

Severity Code Description Project File Line Suppression State Error CS1061 'SignupScreen' does not contain a definition for 'BtnSubmit_Click' and no accessible extension method 'BtnSubmit_Click' accepting a first argument of type 'SignupScreen' could be found (are you missing a using directive or an assembly reference?) WpfSignupscreen D:\Visual Studio Work\WpfSignupscreen\WpfSignupscreen\SignupScreen.xaml 23 Active

Web Development asp asp.net sql
Member Avatar for eshach2221
0
126
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 codeigniter html-css php
2
252
Member Avatar for Dani

A PHP array is essentially a stack of elements that can be used to denote a list, represent a collection of variables, etc. You can easily use loops to iterate over each element of an array. As PHP is a loosely typed language, all of the elements of an array …

Web Development php
1
130
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.

Web Development html-css
Member Avatar for mtyide
1
413
Member Avatar for Dani

By default, PHP's clone keyword just creates a shallow copy of an object, and doesn't work as desired if the object contains properties that are also objects, because it doesn't create real copies of those objects but rather just pointers to the initial version of them. This function creates a …

Web Development php
0
287
Member Avatar for abu taher

I want to make a pdf file in php. I write code like this: <?php require_once __DIR__ . '/vendor/autoload.php'; include('conn.php'); $res = mysqli_query($conn, "select * from smash"); if (mysqli_num_rows($res) > 0) { $html = '<table>'; $html = '<tr><td>ID</td><td>Name</td><td>FatherName</td><td>Address</td><td>Phone</td><td>Class</td><td>Qualification</td><td>Branch</td><td>rollno</td></tr>'; while ($row = mysqli_fetch_assoc($res)) { $html .= '<tr><td>' . $row['id'] . '</td><td>' …

Web Development mysql php
Member Avatar for mtyide
1
608
Member Avatar for michellepermsm

I am working for a client that uses a tag for the different manufacturers of their products. Each product will only have one manufacturer tag. On their collections page, they have a sidebar that shows all the Manufacturer names with a {{ tag | link_to_add_tag: tag }} URL. Now the …

Web Development javascript
Member Avatar for rproffitt
0
333
Member Avatar for Ant_426

Hi. Hoping someone can explain this to me please. $quantity = $_POST['quantity']; echo "<pre> -- quantity -- "; print_r($quantity); echo "</pre>"; This returns: -- quantity --Array ( [0] => [1] => [2] => [3] => 2 [4] => [5] => [6] => ) $selectitem = $_POST['selectitem']; echo "<pre> -- selectitem …

Web Development php
Member Avatar for Amonza
0
165
Member Avatar for john.craig889

Hi! I need a web application for my business. Should I hire an agency or a freelancer? What's the better value? Thank you.

Web Development asp asp.net sql
Member Avatar for Dani
0
151
Member Avatar for Ant_426

Hi. I have a local installation of SQLite3 and PHP which runs a small in house PHP application so sql injection is not an issue. I am able to execute the following: if(isset($_GET['deletequote'])) { $qno = $_GET['deletequote']; echo $qno;?><br><?php // for testing $db = new SQLite3('./fi_data.db') or die('Cannot delete quote. …

Web Development php
Member Avatar for Ant_426
0
494
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 …

Web Development javascript mysql
Member Avatar for π™ΉπšŠπšœπš–πš’πš—πšŽοΌˆγƒ€γƒΌγƒͺン)
1
675
Member Avatar for dwlamb

I am parsing xml data generated by backup software for SMS and phone logs. Most of the data appears like this: ``` <sms protocol="0" address="##########" date="1495903715000" body="Ok. See you then.;-)" subject="none" ... /> ``` For most bodies of a text message, the data follows the same pattern above: Keyword `body="<string>"`. …

Web Development php xml
Member Avatar for pritaeas
1
208
Member Avatar for lewashby

I've recently gotten my first ID job as a PHP programmer but one of the tasks that bites my is JS/jQuery, I don't know JS/jQuery but now i'm having to use it. I'm taking a course on udemy.com but I'm having issues, sometimes the code executes and sometimes noting happens …

Web Development javascript jquery php
Member Avatar for Dani
0
267
Member Avatar for badmullah_1

hi I need your help if you know JS to fetch 3 values //value of JID2 input //value of slider //value of the NOTES but since JS is new to me i would need your help please. it is a form with a few controls that user can check , …

Web Development html-css javascript
0
111
Member Avatar for lisag6

Hi - We have this line ~Contact.FirstName~ in our subject line for an email. We need to add an 's at the end to make it plural. So it would read Joe's instead of just Joe.

Web Development html-css
Member Avatar for gce517
1
219
Member Avatar for Q8iEnG

Hi guys :) Is there a chance to disable these two things from my site? (View Source) and (Ctrl + C ) please, give me few minutes from your time and help, i'll be much more appreciated :) thanks in advance :)

Web Development javascript
Member Avatar for π™ΉπšŠπšœπš–πš’πš—πšŽοΌˆγƒ€γƒΌγƒͺン)
1
14K
Member Avatar for Divyansh_5

I am new to PHP and I need some help in the below code. The below code is working fine but I need to add a "Functionality to be added in the below code, so that if any New File is uploaded it should auto increment in a series. For …

Web Development file-system image php
Member Avatar for gce517
0
145
Member Avatar for ezeiruchibuike

Hello there, I created a "users" table on MySQL and created a few columns namely "accountbalance", "ledgerbalance" and "dailybalance" (all three: BIGINTs). I created a test user and added some random figures. I am trying to retrieve the value of this columns (unique to the user) and them pasted separately …

Web Development html-css javascript mysql php
Member Avatar for Dani
0
416
Member Avatar for Aisha_sg

hey I'm beginner learning php have hard time to Insert data to product in database with image because the category I did make it work but now I need to update data the same style that I add it with the Insert Code: <?php include('./pro_crud/config.php'); $sql_cat = "SELECT * FROM …

Web Development mysql php
0
240
Member Avatar for FarrisFahad

I have a couple of scripts from the same template but different version. I am using php and mysql. I need to know how to update the mysql database and the script from version 1 to version 2 with a single click.

Web Development mysql php
Member Avatar for Dan Fredeinburg
0
101
Member Avatar for Dani

I just racked my brain for the past hour trying to fix a bug, and learned something new in the process. I always thought that the jQuery function `.data('key')` was a wrapper for `.attr('data-key')`. It turns out that's not the case! Take the example: `<div data-key="foo">`: I can use `data('key', …

Web Development javascript jquery
Member Avatar for Dani
7
277
Member Avatar for martin5211

FPDF is a class that provides a useful way to deal with PDF documents using dynamic content. Sometimes, according to a special circumstance, also would be valuable to send directly the PDF as attachment e.g. send an invoice automatically after processing a payment. In this example we use a html …

Web Development pdf php
Member Avatar for Dani
0
22K

The End.