Member Avatar
ive been develop a project known as ordering system
i need to delete data from db by clicking the button

ive follow a tutorial from utube and to the exact same code he been used

error
"object reference not set to an instance of an object"

ive double check my … Topic by Izzah_2 in Software Development
Member Avatar
joey_4 Replied To a Post in Can we use bing instead of Google?
Topic by HAMMAD_5 in Community Center
i dont think so
nicemovies.co Reply by joey_4
Member Avatar
happygeek 2,172 Gave Reputation to ABBY_2 -4 in what is best link building strategy?
Topic by sumansingh in Search Engine Strategies
every strategy is good if your are doing it natural ways.

Remeber never try to over optimize your website Reply by ABBY_2
Member Avatar
ABBY_2 -4 Replied To a Post in what is best link building strategy?
Topic by sumansingh in Search Engine Strategies
every strategy is good if your are doing it natural ways.

Remeber never try to over optimize your website Reply by ABBY_2
Member Avatar
Topic by Romon in Search Engine Strategies
If you prefer organic result means start to do on-page and off-page techniques. Build quality backlinks to your website.
If you prefer paid result means you can do PPC. Reply by Clara_2
Member Avatar
Topic by Romon in Search Engine Strategies
create content
onpage
create qulatiy backlinks
social media Reply by ABBY_2
Member Avatar
Topic by Newspiderman888 in Search Engine Strategies
Create Quality Backlinks and content Reply by ABBY_2
Member Avatar
davy_yg 2 Created Saas / Less
Ever heard Saas or Less? (for frontend developer)

What is it for?

I read the article and still do not understand the purpose. Topic by davy_yg in Web Development
css
Member Avatar
Topic by rproffitt in Microsoft Windows
It's a cool thing to look out for. Thanks for the update :) Reply by ryantroop
Member Avatar
AndrisP 168 Replied To a Post in simple PHP OOP
Topic by davy_yg in Web Development
php
you can call destructor by set object to `NULL` e.g.

$stefan = new person();
$jimmy = new person();
$stefan->set_name('stefan');
$jimmy->set_name('jimmy');
echo "Stefan Full Name : ".$stefan->get_name();
echo "Jimmy Full Name : ".$jimmy->get_name();

$stefan = NULL;
$jimmy = NULL; Reply by AndrisP
Member Avatar
AndrisP 168 Replied To a Post in simple PHP OOP
Topic by davy_yg in Web Development
php
Also edit functions:


function set_name($new_name){
$this->name = $new_name;
}

and

function get_name(){
return $this->name;
} Reply by AndrisP
Member Avatar
AndrisP 168 Replied To a Post in simple PHP OOP
Topic by davy_yg in Web Development
php
... or call constructor with param:

$stefan = new person('Stefan'); Reply by AndrisP
Member Avatar
Topic by rproffitt in Microsoft Windows
Let's put on our lab coat. We're going in.

"Any process that has more than a ten thousand handles open at any given point in time is likely either poorly designed or has a handle leak, so a limit of 16 million is essentially infinite..."
- https://blogs.technet.microsoft.com/markrussinovich/2009/09/29/pushing-the-limits-of-windows-handles/

Later he reveals … Reply by rproffitt
Member Avatar
davy_yg 2 Replied To a Post in simple PHP OOP
Topic by davy_yg in Web Development
php
I still getting this error:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function person::__construct(), 0 passed in C:\xampp\htdocs\TEST\program_3_OOP_PHP.php on line 7 and exactly 1 expected in C:\xampp\htdocs\TEST\class_lib.php:10 Stack trace: #0 C:\xampp\htdocs\TEST\program_3_OOP_PHP.php(7): person->__construct() #1 {main} thrown in C:\xampp\htdocs\TEST\class_lib.php on line 10

class_lib.php

<?php

class person {

var $name;

function __construct($person_name){ … Reply by davy_yg
Member Avatar
AndrisP 168 Replied To a Post in simple PHP OOP
Topic by davy_yg in Web Development
php
Edit `__constructor` to `__construct` and `__destructor` to `__destruct`.
If you define function with required argument then you cant initialize it without argument e.g.
Constructor with required argument:

function __construct($person_name){
echo "Initialize class";
$this->set_name($person_name);
}

Same contructor but argument is optional (set default value):

function __construct($person_name=NULL){
echo "Initialize class";
if($person_name !== … Reply by AndrisP
Member Avatar
rproffitt 1,117 Replied To a Post in PHP Enginee
Topic by davy_yg in Web Development
php
Why not install a current XAMPP?

https://www.apachefriends.org/index.html notes PHP 7.2.4 which is today's current stable version at http://php.net/downloads.php

As to your first question, I feel you forgot some words. From your prior posts it's clear you know what PHP is. Reply by rproffitt
Member Avatar
Featured rproffitt 1,117 Replied To a Post in Making a Magic Mirror
Topic by kes166 in Linux and Unix
So video calls? https://www.google.com/search?q=video+conferencing+raspberry+pi seems to note projects that have been kicking around for 4 or more years. My bet is you'll have to tailor such to your exact needs but that's what you as a programmer or one of your team members gets to do.

Don't get me wrong … Reply by rproffitt
Member Avatar
davy_yg 2 Marked Solved Status for simple js program
program1.php

<html> <header> <script>

function myFunction(p1, p2) {
return p1 * p2;
}
document.getElementById("demo").innerHTML = myFunction(4, 3);
</script> </header> <body> <div id="demo"></div> </body> </html>

I don't understand why the above code does not show any value?

and why this one does?

program2.php

<html> <body> <div id="demo"></div> <script>
function myFunction(p1, p2) … Topic by davy_yg in Web Development
Member Avatar
davy_yg 2 Created PHP Enginee

What is PHP Enginee?

If Xampp is the web server, then is the php enginee apart of the web server?

http://www.php.net/downloads.php

Can you upgrade the php enginee - to support a higher version of php without uninstalling the xampp?

Thanks for advice. Topic by davy_yg in Web Development
php
Member Avatar
Topic by Newspiderman888 in Search Engine Strategies
Ways to improve website traffic and page ranking:
Unique content
Using heading tags and keywords
Backlinks
Article directory submission
Submit site or blog to web directories
Identifying broken links and fixing them. Reply by Rachana_3
Member Avatar
alan.davies Replied To a Post in simple PHP OOP
Topic by davy_yg in Web Development
php
$stefan->set_name('stefan');
$jimmy->set_name('jimmy'); Reply by alan.davies
Member Avatar
Featured kes166 37 Created Making a Magic Mirror
I'm looking for software that will allow someone at one end to talk into a camera and stream to a Raspberry Pi on the other end. It's going to be a prop for a live action role play game I'm running for later in the year and I'd like to … Topic by kes166 in Linux and Unix
Member Avatar
davy_yg 2 Created simple PHP OOP
Hello,

I try to create a simple OOP PHP that shows an error:


class_lib.php

<?php


class person {

var $name;

function __constructor($person_name){
echo "Initialize class";
}

function set_name($new_name){
$this->name($new_name);
}

function get_name($new_name){
return $this->name($new_name);
}

function __destructor(){
echo "end class";
}
}

?>


program3.php

<?php include("class_lib.php"); ?> <?php

$stefan = … Topic by davy_yg in Web Development
php
Member Avatar
Topic by HAMMAD_5 in Community Center
I don't much care for Qwant's policy of serving up news I did not request. Reply by Reverend Jim
Member Avatar
Topic by rproffitt in Microsoft Windows
@ryantroop. Since I can't get into the driver and app's source code I can only speculate where the issue is.

But since ripping out the old and installing the new did find a thousand fold difference it's clear that the developer was the issue. Microsoft? The fact the OS stood … Reply by rproffitt
Member Avatar
Topic by rproffitt in Microsoft Windows
Is this a MS issue or just developers being lazy and not putting their toys away? (or both)

How many of those handles may have been ghosts that are just doing nothing? How many were socket connections that were active instead of using select or IOCPs? Reply by ryantroop
Member Avatar
Reverend Jim 2,245 Replied To a Post in Can we use bing instead of Google?
Topic by HAMMAD_5 in Community Center
I don't much care for Qwant's policy of serving up news I did not request. Reply by Reverend Jim
Member Avatar
From Stadock's newsletter I read "Handles are killing your PC" and checked in on the apps and handles to discover the stock Killer Network app was way out there at over 906,000 (906 THOUSAND) handles. This was a pretty interesting find and had me off to the maker for latest … Topic by rproffitt in Microsoft Windows
Member Avatar
Gribouillis 1,391 Replied To a Post in Can we use bing instead of Google?
Topic by HAMMAD_5 in Community Center
You can try [Qwant](https://www.qwant.com/) [Qwant](https://www.qwant.com/?q=foobar&t=all), although it is said to be bing + privacy. Reply by Gribouillis
Member Avatar
ryantroop 115 Replied To a Post in simple js program
Topic by davy_yg in Web Development
Javascript (JS) is a top down JIT. Which means if the DOM element exists before the JS gets called, it will be available for use.

In example 1, your function declaration and call happen before "demo" is available on the DOM (in the body element, however you want to think … Reply by ryantroop