2,966 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Quinncunx

Hi, Is there at all a way to sort (numerically) a multidimensional array? I have an array that is as follows `dim points(23,1) as String` The first dimension of the array has the players names in, the second dimension of it has their cumulative points, so I want to sort …

Member Avatar for randysoft1
0
3K
Member Avatar for swathi sajja
Member Avatar for Passy

<?php if(!empty($_POST['submit'])){ if(empty($_POST['user_name'])|| empty($_POST['phone_number'])|| empty($_POST['email'])|| empty($_POST['password'])|| empty($_POST['confirm_password'])) { exit("please fill in all the fields. <a href = './register.php'>return</a>"); } if($_POST['password']!==$_POST['confirm_password']) { exit("passwords must match. <a href = './register.php'>return</a>"); } /*$pattern = "^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$"; if(!pregmatch($pattern,$POST['email'])) { exit("please enter a valid email address. <a href = './register.php'>return</a>"); }*/ $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; if (!preg_match($regex, …

Programming php
Member Avatar for Dani
0
1K
Member Avatar for medsibouh

hello guys I'm trying to make a code that return the name of the flight that has the most total number of passengers from a file : Alitalia Rome 180 Alitalia Pisa 82 Germanwings Munich 96 Germanwings Frankfurt 163 NorwegianAir Bergen 202 Wizzair London 184 Wizzair Frankfurt 83 Wizzair Lisbon …

Programming c c++ python
Member Avatar for Reverend Jim
0
857
Member Avatar for Hisham_3

Hello everyone, I have some problems with my program , hope you can help me to solve it. 1- I need a method for the** Clear Time** button that remove the counter to be 0. ` private void btclearActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: min=0;sec=0; lblsec.remove(lblsec); …

Programming java
Member Avatar for Hisham_3
0
796
Member Avatar for ramkrishna.dhakad

onkeypress event in javascript not showing the unicode(hindi/remingtongail) character it is only alerting 'r' on pressing a key. i am using hindi indic input 3 toolbar to type in laptop. my javascript code is function validate(){ var string=event.key; c = string.charCodeAt(1); var xyx=String.fromCharCode(c); alert(xyx); } My html text area code …

Member Avatar for Dani
0
631
Member Avatar for Baloch_1

Dear All, How to Save Finger Print (Template/Minutiae) into database, using SecuGen Hamster Pro 20 finger print reader, i have also downloaded SDK, in there sample code there is no any function to save Finger Print (Template/Minutiae) into database using vb.net. Please guide me. the sample code is here Imports …

Programming vb.net
0
355
Member Avatar for KarolP

Hi! I am a begineer in programming. I have started to work on the app using tkinter. I would like to add a contact form (similar to Django) to my app so a user can send me a message with queries. This message would be sent to my email address. …

Member Avatar for rproffitt
0
287
Member Avatar for Hisham_3

Hi, I want someone to explain this code ( method ), and how it works.؟؟ Especially the process of moving the elevator // The elevator class draws the elevator area and simulates elevator movement class Elevator extends JPanel implements ActionListener { // Declaration of variables private Elevator_Simulation app; // Elevator …

Programming java
Member Avatar for Hisham_3
0
263
Member Avatar for miltocke

Hello DaniWeb! I am interested in learning computer programming, but have no previous experience. I've been told that Python is a good place to start, so I decided to give it a whirl. If anyone can help point me toward resources geared for the absolute beginner (learning both programming concepts …

Member Avatar for Raunikkapoor
0
237
Member Avatar for Paulo_7

good afternoon, I have been trying to use "login with facebook" on my website for 15 days. I have been using the code published by Facebook, at the link https://developers.facebook.com/docs/facebook-log... web / v2.2. My problem with this code is that I want the customer after login with his facebook (through …

Programming api html-css javascript
Member Avatar for Dani
0
236
Member Avatar for Chua_1

I am trying to get my private void transfer method and pass it into a 2D array transfer2D method, after which I am able to print it out using the print2D_1 method. I am also trying to sort the array from the highest suit to the lowest suit followed by …

Programming java
Member Avatar for JamesCherrill
0
203
Member Avatar for Pirakavi

my Controller function public function editDoctor($id) { $doctor = $this->doctorsRepository->getDoctorById($id); return view('doctor.edit', compact(['doctor'])); } This is my modal form <!-- Edit Doctor modal --> <div class="custom-modal"> <div class="modal fade" id="editDoctorPopup" role="dialog" aria-labelledby="editDoctorPopupLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="editDoctorPopupLabel">Edit Doctor</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span …

Member Avatar for Dani
0
203
Member Avatar for omaz

I want to create a friend chat where user can send, confirm and delete request and display results. Any help?

Member Avatar for omaz
0
202
Member Avatar for adsanimenerd

Sorry if there is bad formatting, but this is my first post. I am trying to use a copy constructor to copy the list in LinkedList and then show that they are the same in the copy using the display() function. My problem is that when I try to populate …

Programming c++
Member Avatar for tinstaafl
0
162
Member Avatar for Akinjide

Hello friends, I have a website on which I embedded my YouTube channel, but I need my users to pay before they can watch live videos. Help me.

Member Avatar for Dani
0
149
Member Avatar for Carlloos_Lowery

here I wrote the code var whil = n3.children('.trade_item'); var all = 0; var one = [], two = []; for(var i = 0; i < whil.size(); i++) { $('.primary:last', data).children('.tradeoffer_item_list').children('.trade_item').each(function(i){ one.push($(this).attr("data-economy-item").split('/')[2]); two.push($(this).attr("data-economy-item").split('/')[3]); }); var ad = Price("http://steamcommunity.com/economy/itemhover/730/2/" + one[i] + "?o=" + two[i]); all += ad; } $('#w').html(all); I …

Programming
Member Avatar for Dani
0
116
Member Avatar for ppel123

Hello, I have created a spelling corrector for a project and currently I am struggling on making it work in real-time application (on-the-fly) By this I mean, that I am reading the input of the user (anywhere on the Windows OS - not only in python shell) with the python …

1
588
Member Avatar for larry29936

I have Apache2, php 7.2, and mysql installed. At the top of my index.php I have the following script: <?php session_start(); // start of script every time. // setup a path for all of your canned php scripts $php_scripts = '/home/larry/web/test/php/'; // a folder above the web accessible tree // …

Member Avatar for broj1
0
697
Member Avatar for ppel123

Hi, I am developing an app that monitors and corrects the user input based on some rules. I am reading the events from keyboard with the keyboard python module. I faced some problem when the user types very fast, as regards some overlays of text. By this I mean that …

Member Avatar for ppel123
0
417
Member Avatar for Hu99.Kappa
Member Avatar for tinstaafl

There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter …

Member Avatar for holisticgroup19
3
4K
Member Avatar for Reverend Jim

A long standing complaint with the standard progress bar control is that there is no easy way to display text. In spite of numerous requests, Microsoft has not included this capability. The following code includes a class, `CustomProgress` which inherits the standard `ProgressBar` and adds such a feature. It is …

Member Avatar for Mark@SF
4
79K
Member Avatar for Motifaithed

Hi All, I'm currently working on a church attendance monitoring project, and this community had helped me a lot during my college days in building php base projects, now I'm here again to ask for help. The scenario is I want to track every individual who are present every sunday …

Member Avatar for rproffitt
2
405
Member Avatar for Reverend Jim

When asked, "What language should I learn first?", my answer is always "English". If you can't communicate clearly then you can't do your job as a programmer properly. As a programmer your job does not begin and end with code. You must also be able to write documentation clearly. I …

Programming
1
490
Member Avatar for Minimalist

So I got a problem with the settings Tab in VB.Net. The settings are not displaying properly. There is a gap in the middle of the display. ![set.jpg](/attachments/large/4/ce53b8bed890123494c52258313e0760.jpg) The second problem I have is this: VB creates a settings file in the App Data folder: InClass.exe_Url_eoaehkudo2dalqpbmdabua2u0ulhsacj However, If I try …

0
574
Member Avatar for Stefce

I need to deoubfuscate a javascript file which i need to change a link inside it can anybody help me how to do that? I can upload the file also if you need it.

Member Avatar for Dani
0
853
Member Avatar for rahulephp

[B]Mysql - How to use UPDATE with SELECT???[/B] I have two tables: [B]1) products_category[/B] -cat_id -cat_name [B]2) related_category[/B] -rel_cat_id (exaclty same as products_category.cat_id==related_category.rel_cat_id) -rel_cat_name [B]products_category table[/B] [IMG]http://www.ephpsolutions.com/scud/rrr/product_category.gif[/IMG] [B]related_category table[/B] [IMG]http://www.ephpsolutions.com/scud/rrr/related_category.gif[/IMG] I want to get cat_name from products_category and want to store in rel_cat_name in related_category tabel. and the query should …

Member Avatar for jaswanth reddy
0
54K
Member Avatar for tracethepath

i have made the following program but i cant find what is the error... the output is not coming correct... for example Enter A Binary Number 110011 Number of ones are 0 Number of zeroes are 1 [code] void main() { clrscr(); int r, ones=0, zeroes=0; long int n; printf("Enter …

Member Avatar for Saba_6
0
6K
Member Avatar for prem2

Hi, In C program Function has three parts, Function Declaration. Function Definition. Function Calling. In java i cannot able to declare a function .Is it possible to declare a function in Java. For example: [code] import java.io.*; import java.util.*; class Fun_example { // show();//Cannot able to Declare a Function ? …

Member Avatar for JamesCherrill
0
4K

The End.