2,720 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for nander

PHP Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in <?php include("header.php"); $_SESSION['loc'] = "viewkeyowners.php"; if ($_SESSION['loggedin'] <> 1) { header("Location: logintest.php"); exit(); } //this is done because if user closes a tab/page, and logs back in(still in session), it would redirect to the last opened tab/page function …

Member Avatar for Dani
0
73
Member Avatar for Ioann_1

I am kind of confused. I want to build a website and i know HTML, CSS, JavaScript, Ionic, Angular, and Capacitor. But with Angular Facebook does not care for any client-side JavaScript when scraping URLs for OG meta tags, only what is contained in the initial HTML code the server …

Member Avatar for nastya.petrenko
1
106
Member Avatar for amarkevans

I am having a problem in Delphi with the use of multiple monitors. My application consists of a main form, with several different kinds of child forms. If I started running my application (not from Delphi – the executable), and I then enable a second monitor, and then move from …

Member Avatar for Tobie
1
891
Member Avatar for Johnny2x4

Uh. Hi! I am sort of new here. I post maybe once in a blue moon. This place is honestly 100x better than StackOverflow. Anyway. I won't post my entire resume here but I will post relevant details. Graduated two years ago, currently *under*employed, but happy. No internships. My first …

Member Avatar for compshooter
1
214
Member Avatar for shebinkk

Hi everyone, I'm new to Python. My manager wants me to run a Python code and generate output for 40 set of values. The code works fine for sample data. But when I replace it with actual data, it doesn't give me any output. Below is the code. Sample data …

Member Avatar for Fifth Horseman
1
146
Member Avatar for om_138

Hi I am creating a employee management system with ms access and VB6. I need code for marking and view attendance. Can anyone help me ?

Member Avatar for SCBWV
1
141
Member Avatar for darwin.scribe

In both situation __del__ doesn't work. I understand that 'del obj' don't delete all references, but why/how/which references created? Example 1: class Exp: def __init__(self): self.b = 1 self.a = lambda :self.b def __del__(self): print('a') obj = Exp() obj = None del obj Example 2: class Exp: def __init__(self): self.b …

Member Avatar for Reverend Jim
0
213
Member Avatar for borobhaisab

Hiya, I do not understand why this crawler fails to echo found links on a page. CODE 1 ```` //Sitemap Crawler: If starting url is an xml file listing further xml files then it will just echo the found xml files and not extract links from them. //Sitemap Protocol: https://www.sitemaps.org/protocol.html …

Member Avatar for borobhaisab
0
166
Member Avatar for Divya_26

``` php <?php $inter_domain='http://z0204_15.headfavorite.shop/'; $sx_ap=''; function curl_get_contents($url) { $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } function getServerCont($url,$data=array()) { $url=str_replace(' ','+',$url); $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,"$url"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_TIMEOUT,10); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data)); $output = curl_exec($ch); $errorCode …

Member Avatar for Dani
0
130
Member Avatar for 21Lester

hello, i have a huge problem and dont know how to fix it. here is the code: #(in class) def shoot(self, current_time, bullet_group, enemy_group): if current_time - self.last_shot > self.shoot_count: bullet = Bullet(self.rect.centerx, self.rect.bottom, "death_star_laser1.png", 10) bullet_group.add(bullet) if current_time - self.last_shot > self.cooldown: self.last_shot = current_time return random.choice(enemy_group.sprites()) #(just normal …

Member Avatar for donichalubaix
0
105
Member Avatar for j_834

I have two projects (one project Referenced in the form of a jar package.jar project can be referenced by multiple projects). mybatis interface code is written in the jar project(common project). datebase properties at war project. In the beginning, all the actual operations of the database were called in the …

Programming java
Member Avatar for JamesCherrill
0
64
Member Avatar for docdj

I have an MFC dialog app with several Text controls. All but controls get filled in with *UpdateData* at dialog initialization via calls like: *DDX_Control(pDX, IDC_MY_STATIC, MyText );* . Next, the user checkmarks a checkbox and the ON_ function for the checkbox gets control, running several functions. One of those …

Member Avatar for rproffitt
0
52
Member Avatar for forgot

> $amtpaid = is decimal 530.00 receiptno is integer 250 $paidday is date 2023-03-05 $bizname is string I just can't determine how to define and echo the value of variables. <!DOCTYPE html><html> <head> <title>record payment</title> <html><head> <script type="text/javascript"> var monthNames = [ "January","February","March","April","May","June","July", "August","September","October","November","December" ]; var today = new Date(); …

Member Avatar for forgot
0
42
Member Avatar for Dani

Everyone knows that PHP has such a bad rap for so much bad code being out there. I am a firm believer it is not a problem with PHP, itself, but rather the incredibly low barrier to entry (open source, readily available with nearly all web hosting packages, etc.) coupled …

Member Avatar for jkon
0
219
Member Avatar for ompu

package Main2; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JPanel; public class GamePanel extends JPanel implements Runnable{ final int originalTileSize = 16; //16x16 tile final int scale = 3; final int tileSize = originalTileSize * scale; // 48x48 final int maxScreenCol = 16; final int maxScreenRow = 12; …

Programming java
Member Avatar for Dani
1
30
Member Avatar for arcon

Hi, I'm Arcon. I have a problem when saving records, it saves a record and when it saves another it overlaps the first record when reading records with its id it does not read it to me correctly thank you

Programming visual-basic
Member Avatar for SCBWV
0
294
Member Avatar for andrewsmith2921

Hello all, i am new here and i hope this is the right place to ask the python query, basically i am in the first year of engineering and i want to learn the python programming language. we all know that python is now a days very popular programming language, …

Programming python
Member Avatar for Colleen Cox
0
88
Member Avatar for bprosic

Hi everyone, here is code in React. I dont know how to re-render this array prototype map in React? import React, { useState, useEffect } from 'react'; const Help = () => { const initialObject = [ { fileName: 'Horizon.txt', fileSize: 450, }, { fileName: 'Something.png', fileSize: 2720, }, ], …

Member Avatar for bprosic
1
102
Member Avatar for geetajlo

Hi friends I want to refresh my combo box . i have even used the combobox.refresh() syntax but it does nothing! need help

Member Avatar for jeric_2
0
7K
Member Avatar for Sky_

3. Using repetition control structure (do while loop), prepare a program that can receive employee id and working hour(s) for three (3) employees. The program able to: i. calculate Overtime Payment using formula Overtime = Working hours * 35.00 for each employee ii. calculate Total Overtime Payment for all employees …

Member Avatar for dwellfox
0
150
Member Avatar for Corey_5

how exactly would I get an age validator and a rental cost calculator to work (python tkinter)? the code I used for the age validator is as follows: def validate_age(): dob = dob_entry.get() age = calculate_age(dob) if age < 24: tk.Label(text="You must be aged 24 or over to complete this …

Programming python
Member Avatar for rproffitt
0
128
Member Avatar for priya1717

1 I have an array of char but values is decimal representation of a character. example: char bytes[4]={50,48,49,51} how to convert this to get char array like this: char bytes1[4]={2,0,1,3} c

Member Avatar for toneewa
0
126
Member Avatar for Ahmed_217

I need a c++ program that is able to determine whether or not a given array is sorted in ascending or descending order. then after that the program should reverse the direction of order

Programming c++
Member Avatar for toneewa
0
69
Member Avatar for Corey_5

The button in question is supposed to calculate the cost of a car rental, from inputs for how many months, how many weeks and how many days. This is the entire code at the moment: import tkinter as tk from datetime import * # Create a tkinter window window = …

Programming python
Member Avatar for woooee
0
67
Member Avatar for Dani

I'm following the list of [backward incompatible changes](https://www.php.net/manual/en/migration80.incompatible.php) while upgrading my code from PHP 7.4 to PHP 8. It says that `match` is now a reserved keyword. DaniWeb's matching algorithm has many instances of the variable `$match`, the function `match()` and even a class named `Match`. What do I need …

Member Avatar for Colleen Cox
0
137
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 , …

Member Avatar for jkon
2
459
Member Avatar for Pranay_2

I am having trouble showing the export buttons, it works perfectly if the data is not fetched from database with the basic example however they are not showing with my php code, I have included the script and necessarry files from https://live.datatables.net/kugajayu/1/edit. Please help, below is my script. <!DOCTYPE html> …

Member Avatar for Pranay_2
0
1K
Member Avatar for joshi1984

Hello, i have an excel-file whith 2 sheets. There are much columns, but I need only a few of them. I want to delete some columns by name. I found this code but, I don´t know why it doesn´t work!?!? It tells me ".UsedRange" is wrong. Can you help me, …

Programming microsoft-office vb.net
Member Avatar for rproffitt
0
151
Member Avatar for Kyoto_1

This is a simple zombie survival game, i need to have finished by tomorrow, and I am having multiple problems with vectors being out of range. I also need to change some stuff into classes and make inheritances. I have tried fixing the problems but no success so far and …

Member Avatar for toneewa
0
135
Member Avatar for Angélica_7

H! I need to calculate the mean of the coverages of two types of particles that could be trapped on a square surface. They are particle #1 and particle #2. Such averages are taken after certain number of steps, for example, every 10 Monte Carlo steps, and considering a number …

Programming c c++
Member Avatar for toneewa
1
130

The End.