3,032 Recommended Topics

Remove Filter
Member Avatar for
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?

Member Avatar for Dani
1
154
Member Avatar for sankar2000

Hello I am building a database (i prefer MongoDB) that i will store over 100 mil ipv4 and ipv6 records for logging purposes. Data sample : 1.1.1.1 -> 0x1010101 1.2.3.4 -> 0x1020304 34.53.63.25 -> 0x22353f19 255.255.255.255 -> 0xffffffff 0001:0001:0001:0001:0001:0001:0001:0001 -> 0x10001000100010001000100010001 1111:1111:1111:1111:1111:1111:1111:1111 -> 0x11111111111111111111111111111111 2345:0425:2CA1:0000:0000:0567:5673:23b5 -> 0x234504252ca1000000000567567323b5 2345:0425:2CA1::0567:5673:23b5 -> 0x234504252ca1000000000567567323b5 …

Member Avatar for Dani
0
490
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 …

Member Avatar for Dani
0
283
Member Avatar for Lieutenant_1

Hello , i am using vb6.0 can some one help me with my problem. I want to summarize a database with multiple name and display it into one data where the date is same today. thank you for any one would response. for example. below is a table where multiple …

Member Avatar for Lieutenant_1
0
186
Member Avatar for 奇_925
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

Member Avatar for eshach2221
0
122
Member Avatar for exploretech
Member Avatar for Reverend Jim

## Introduction I recently bought a new laptop. Since I haven't used VB.Net in years (nothing but Python now) I did not install Visual Studio. That meant rewriting all my VB apps in Python/wxPython. One of my most often used apps was a shell extension I wrote to add a …

Member Avatar for Reverend Jim
2
402
Member Avatar for Schol-R-LEA

[Ranged Numeric Types in C++](https://github.com/Schol-R-LEA/Ranged-Numeric-Types-for-CPP) I've started writing a simple template class for automating range checking in specialized numeric types, inspired by the ranged types in languages such as Pascal and Ada. At the moment it is mainly meant for integer types, though I've made it flexible enough that it …

Member Avatar for rproffitt
0
263
Member Avatar for babar125

Hey guys I managed to get some code what works fine but it uses console application I have tried to convert it by hand and change things around to get it to work but with no avail! I'm certain it should be simple but I may be wrong :( Thanks …

Member Avatar for pritaeas
0
586
Member Avatar for Zunnie

You must write a small application in JAVA for items and their prices. Your program must: 1. Create an array of item names. Use the following item names: Bread, Milk, Butter, Chips, Honey, Soap, Towel, Carrots, Beans, Samp, Dress, Pants, Shoes, Socks. 2. Create an array of item prices. Use …

Member Avatar for Reverend Jim
0
264
Member Avatar for mtyide

I need a quick solution that will convert HTML doc to PDF and still maintain the same look and feel with pre-populated data and also maintain links in the PDF doc. Any solutions?

Member Avatar for Dani
0
152
Member Avatar for babar125

I am making speech to text app in C# window form it was working fine and running in vs but I want to make I have add a button in my application I want to make when I click on the button it start recognizing when I clicked on the …

Programming asp
Member Avatar for pritaeas
0
35
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 …

2
197
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 …

1
130
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 …

1
122
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.

Member Avatar for mtyide
1
327
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 …

0
255
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>' …

Member Avatar for mtyide
1
531
Member Avatar for najiawad0

I'm 11 years old and I'm absouloutly LOVE programming. I'm learning C++, but I heard that C++ is used for creating games. Where can I learn game development online for free.

Member Avatar for NehaPande
0
710
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 …

Member Avatar for Amonza
0
161
Member Avatar for dimitrilc

## Introduction ## When following tutorials on Daniweb, you might have run into one that requires knowledge about **Dependency Injection** as a prerequisite. People might also sometimes use the term **Inversion of Control** interchangeably with DI. These terms are related to one another, but they are not the same. In …

2
182
Member Avatar for dimitrilc

## Introduction ## Java annotations are often used to provide extra information for compilers, IDEs, and build tools. The extra information is often used to enhance the development cycle, such as reducing boilerplate, eliminating repetitive code, or warning against unsafe usage or mistakes. This tutorial aims to teach you the …

2
103
Member Avatar for gautamz07

Which declaration of the main method below would allow a class to be started as a standalone program. Select the one correct answer. public static int main(char args[]) public static void main(String args[]) public static void MAIN(String args[]) public static void main(String args) public static void main(char args[]) WHAT IS …

Member Avatar for sourabh_8
1
954
Member Avatar for Vandiun

I was working on an infix to postfix program (using stacks), but something went wrong somewhere. Please check whether my intopost technique is right because I am getting the output as infix without conversion. //stack class also containing the intopostfix method import java.util.*; public class Stack { int i,j; char …

Member Avatar for Fifth Horseman
1
213
Member Avatar for Ashton21

The purpose of the program is to tell the user that the weekly salary is in on of three ranges, less than 200, between 200 and 800 and greater than 800. I need help knowing the error/s and need to add and use one additional preprocessor directive that might help …

Member Avatar for toneewa
1
169
Member Avatar for Austin_11

Need help, been stuck on this the past couple days i dont really understand how to get my code to read from my file and count each occurence of a letter wheter they are uppr or lower case and output them to a file, just need help with the counting …

Programming c++
Member Avatar for rproffitt
1
50
Member Avatar for vishnukumar

Good morning to all. I am Vishnu Kumar, MS (Software Engineering) graduate, fresher, 2012 passed out. And i am another one in your way with a dream to develop a game. I had gone through plenty of articles and topics (pinned in this forum too) but i find that, basic …

Member Avatar for NehaPande
0
366
Member Avatar for Stefce

I am looking for an software/script that can generate high trust score browsers, i am using [this GitHub project](https://abrahamjuliot.github.io/creepjs/) to see the info about the browser and the score. I have tried to create few different projects using ZennoPoster, BAS, Undetectable, ATB. They all create with trust score: F- Someone …

Programming browsers
Member Avatar for rproffitt
0
352
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 …

Member Avatar for rproffitt
0
330

The End.