199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dilshan_2

#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { srand(time(NULL)); int tries = 0; int iNum; int UpperLim = 100; int LowerLim = 10; int iCompNum; cout << "Enter a number: "; cin >> iNum; do { iCompNum = rand() % (UpperLim - LowerLim) + LowerLim; cout …

Member Avatar for Reverend Jim
0
167
Member Avatar for Stefce

I want to make this table with HTML and CSS but somehow the image cant appear in the browser... Can you help me? https://prnt.sc/rmo2xl .box-border { display: inline-block; border: 1px solid; height: 80px; width: 100%; } .image-position { display: inline-block; } <div class="box-border"> <div class="image-position"> <img src="igniteLogoImage.png" alt="asdasd" width="42" height="42"> …

Member Avatar for Stefce
0
1K
Member Avatar for killhha

ok i dont really know how to explain this but... c:=readkey; case (c) of #13:Halt; #27:goto menu else goto quit; as you can see above if you press Esc(which is 13) the program quits and if you press Enter(which is 27) it gos to the menu. I want to know …

Member Avatar for RandomGuy2606
0
1K
Member Avatar for bioplanet

I have the following two tables: TABLE 1: +-----------------------------+--------------------------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------------------+--------------------------------------+------+-----+---------+-------+ | patient_id | bigint(20) | NO | PRI | NULL | | | patient_wpid | int(11) | NO | PRI | NULL | | | age_at_visit | …

0
109
Member Avatar for Knwbility

Hi there, I have multiple check bok in the html webpage. I want to get the selected check box value usin Javascript and email that value in email body content using a href mailto. Kindly please HELP me in this. Thank you.

Member Avatar for rproffitt
0
331
Member Avatar for Alyana Diao

to make our project finish, i need to get the data from the user who just log in(only his/her data) but i dont have any idea how, can someone help me...thank you very much! well appreaciated :) so this is the part where i need to add something so i …

Member Avatar for Alyana Diao
0
594
Member Avatar for abhi10kumar

Is there any way to backup/dump/export all the databases in one step and vice-versa (import all databases into MySQL) in MySQL ? If yes, then how I can do this..?

Member Avatar for Purvi_1
0
371
Member Avatar for imagetvr

Hello I wish to call crystal report in my VB6 Application. For showing data report i used following code ; Example Date report name : datareport1 Code for showing report Load datareport1 Datreport1.show I have crystal report named "studentregister". please explain me how can show the crystal report in my …

Member Avatar for Nilesh_11
0
6K
Member Avatar for reidhosatria

Hello everone my name is reidho i have a problem with my code, i want to mirroring a api output from somesite using file_get_contents but the results is not like the original. Original Result : ![original.png](/attachments/large/4/14437b652ccca077d00e29e8793eb1d4.png) My Mirroring Result : ![result.png](/attachments/large/4/c348c82de5722906792fb5ec8f7e1a52.png) The Code : $ping = "https://api.hackertarget.com/nping/?q=8.8.8.8"; $pingkeluar = file($ping); …

Programming api php
Member Avatar for Dani
0
555
Member Avatar for YpowT

Hi all, I am building a GUI application using Python and Tkinter to mimic a Pay-At-Pump system. Currently, I am at stage where I have coded and defined the relevant frames and widgets that help to traverse through those frames, these are organised into classes. However, I am trying to …

Member Avatar for YpowT
0
1K
Member Avatar for Hannesvz

Hi, I want to copy the data in the PayJour table to the ARCPayJour Table using the Clients Table where the StatusCo = 108. The problem is that the Clients table stop at the first 108 it gets and then do the copy prossecc, but do not go through the …

Programming first-post
Member Avatar for Hannesvz
0
540
Member Avatar for user287961

Hi,i have this code that i need to turn in for my homework. I based it off some things i saw on the internet. The point of the homework is that i need to have 2 or more structures and use some functions. It would mean a lot if someone …

Programming c++ python visual-basic
Member Avatar for nullptr
0
464
Member Avatar for GrimDemeanor

these are the goals of the assignment i am trying to complete, i am running into a problem where i need to create a function get the product the customer selected and reutrn that information in a cout that also inculdes information from another function, i got the first part …

Member Avatar for tinstaafl
0
222
Member Avatar for SoftBa

Hi, I have form1, and second form2 When I call second form2, form1 is disabled for any interaction. customer.Show() Me.Enabled = False Close button on form2 code is Private Sub Closebutton_Click(sender As Object, e As EventArgs) Handles Closebutton.Click Me.Close() Form1.BringToFront() Form1.Enabled = True End Sub As you can see, I …

Member Avatar for Minimalist
0
954
Member Avatar for aweshq.it

<li><a href="#">Pre Schools</a> <li><a href="#" style="cursor: yes;">Schools</a> ** <li><a href="#">Contacts</a> <li><a href="#">Results</a> <li><a href="#">School Performance</a> <li><a href="#">Ranking</a> ** (These Items are required in Horizontal Sub Menu of School. How to do this?) <li><a href="#">Colleges</a>

Member Avatar for Dani
0
210
Member Avatar for Chinney

Hello everyone, hope you're having a great day :D I have a project idea in mind but unsure how to go about solving it / unsure if i can solve it. I want to be able to classify messages to categories, where not all categories are known. I want the …

0
133
Member Avatar for chris_58

I have 2 form there are form 1 and form 2 my program current situation is when user click delete it will pop up a login form. When user click cancel button from login form the data on the database will be delete ![login_form.PNG](/attachments/large/4/44621e202c33a0c03d1931bb384694fa.PNG) when user click cancel it will …

Member Avatar for Reverend Jim
0
615
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>"); } /* $pwd = $_POST['password ']; …

Programming php
Member Avatar for AndreRet
0
203
Member Avatar for Ryan_42

Can I relocate to a new url after click the ok button using sweet alert? this is my javascript file, where should I place here the code if its possible thank you $(document).ready(function() { $('#formA').on('submit', function(e) { //Don't foget to change the id form $.ajax({ url: 'includes/Aenduser.inc.php', //===PHP file name==== …

Member Avatar for Biiim
0
2K
Member Avatar for Naveed_786

Dear All, Good Morning! I am facing this issue i tried a lot but not able to find the issue with this function when i call this function i get error Argument not specified for parameter 'LVL' of 'Public Function UL(LVL As String) As String' The code is listed below, …

Member Avatar for Naveed_786
0
649
Member Avatar for mobeid1

Hello dears, can anyone help me with how to code this: Write MARIE code to: 1. Input a number and store it in X . 2. Y will be equal to “

Member Avatar for rproffitt
0
195
Member Avatar for exotic_yuh18

can you please help me to answer that problem? This is a question, I have an employee salary table, How do I find the second highest from it.? A big thanks to those who will help. I appreciate it a lot.

Member Avatar for Purvi_1
0
223
Member Avatar for Muslim_1

Hi all, I am doing web services for an Android application which sends push notification. Below is the scenario: 1. I have 100s of customers registered on the website 2. Each user has his own subscribers list 3. Each user can schedule the push notification to be sent at a …

Member Avatar for hello_5
0
317
Member Avatar for Ilda_1

Hello! Can someone help me with coding in R ? I am new to R and I need to solve this project. It has been so many days I dont find a solution. This is the problem : You are an online movie and concert ticket service. Visitors go to …

Member Avatar for rproffitt
0
281
Member Avatar for ppel123

Hi, I am trying to create an app with 2 python files, the first reads the user input (either from python shell or directly from the keyboard via modules like pynput-keyboard) and stores it in a variable (after enter pressed). The second creates the gui that has 2 labels and …

0
2K
Member Avatar for MagnusTheRed90

I have a problem where my text boxes are not being populated with existing data. I have two submit buttons, but the problem appears to happen when I call; return View("Index", siteInfo);. Here is my code; // GET: NewEntry public ActionResult Index() { return View(); } /// <summary> /// Generate …

Member Avatar for MagnusTheRed90
0
188
Member Avatar for ianhaney

I am trying to work out how to get data from two different tables in the same database and retrieve the filenames uploaded into the database for a specific ticket id and username. I have been having a go at the php code myself and have managed to INNER JOIN …

Member Avatar for ianhaney
0
173
Member Avatar for St3v3boy

Hi helpful people. Its been a while since Ive been here, ever since I employed someone who knew about IT to look after it for me. I'm back on my own again, and looking for a bit of guidance please? I run a small sales company and receive daily sales …

0
165
Member Avatar for Xozz

Hello, While trying to get back into programming, I come across problems. The first one is: Why can't I work with global variables? Is there a new way of doing the same thing? Thanks

Member Avatar for Reverend Jim
0
249
Member Avatar for Passy

<?php if(!empty($_POST[`submit`])){ if(empty($_POST[`user_name`])|| if(empty($_POST[`phone_number`])|| if(empty($_POST[`email`])|| if(empty($_POST[`password`])|| if(empty($_POST[`confirm_password`])) { exit("please fill in all the fields. <a href = './register.php'>return</a>"); } if(empty($_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>"); } $pwd = $_POST['password ']; if( strlen($password ) …

Programming php
Member Avatar for pritaeas
0
240
Member Avatar for Akshay Sinha

Mobile devices now offer a smooth and efficient method to reach customers. Attract new consumers and retain existing customers. Indeed, a mobile application is better than a website. To do this, you can create an application yourself if you have the right knowledge of the process. Or you can choose …

0
663
Member Avatar for AlexHy

Greetings, my objective is to create a `Dictionary<string, string>` (or `Dictionary<string, List<string>>`), adding elements to it from a `List<string>`. The first string of the list should be the key of the dictionary, the other strings the value. For example: `List<string> list = new List<string>() { "key1", "value_x1", "value_x2", ... };`

Member Avatar for tinstaafl
0
230
Member Avatar for Jon_7

I'm creating this page (http://www.50allstars.com/2018/05/test-menu.html) and would like to be able to directly link to a particular tab if need be. I've found a site (https://css-tricks.com/better-linkable-tabs/) that says a way for this to be done, but I'm not sure how to implement it or if there's a more simple & …

Member Avatar for vsmash
0
761
Member Avatar for Sappie

Hi, I want to sort an array of struct 'Workshops' in accordance with its member variable 'start_time'. I thought of using std::sort for the array and supplying 'CompareWorkshops' function as the third parameter- bool CompareWorkshops(Workshops W1, Workshops W2) { return (W1.start_time <= W2.start_time); } //calculate max no. of non-overlapping workshopes …

Programming c++
Member Avatar for tinstaafl
0
331
Member Avatar for loopylouis

Hi i own an online game and i wish to know weather there is a way to disable my members from changing the URL in the url bar and only allow them to click links. If they change the URL in the url bar i would like it to header/re-direct …

Member Avatar for Shoaib_10
0
3K
Member Avatar for nanakumi75

I'm testing a new site on XAMPP. I have run into this notice: **Notice: A non well formed numeric value encountered in D:\xampp\htdocs\marksman\includes\register.inc.php on line 17** Code below class RegisterUser extends Db{ private $fullname; private $emailaddress; private $username; private $password; private $passwordRepeat; private $emailCode; public function registerUsers(){ if(isset($_POST['register-submit'])){ $this->fullname = …

Member Avatar for nanakumi75
0
909
Member Avatar for aaa801

Hi java coder here im converting a program into delphi for a project basicaly ive forgotten my whole delphi maths soo can anyone convert this into delphi [CODE](l1 & 0x2 ^ 0xffffffff) == -3;[/CODE]

Member Avatar for dausmus
0
272
Member Avatar for johnostler

Hello All. I have been working on getting code first migrations working for my asp webpage working for many weeks with lots of frustration. The main reason why i want to use migrations is to add a new column company or something else to my asp websites main login using …

0
112
Member Avatar for Gabriela_2

hello everyone, I would like to ask for some help with my assignement. My task is to make a program which is converting arabic numbers to roman numerals, but I can't use loops.

Member Avatar for Ju57man
0
2K
Member Avatar for Vange

Hey? Can someone help me to this program? I need to Search an specific information of a student. #include<iostream> #include<fstream> #include<istream> #include<stdlib.h> #include<string> using namespace std; void login(),registr(),form(),Add(),ShowList(),Search(),Update(); struct Student { int id; char name[25]; char name1[25]; char address[25]; char city[25]; int age; char gender[5]; string email; string contact; char …

Programming c++ ios
Member Avatar for tinstaafl
0
1K
Member Avatar for kamilacbe

I have used GroupBy and have got the value as below into individual array but the array consist of 5 sets of same Id so how do group them futhure to get something like expected result below , any idea would be helpful [{ "id": 116, "amgId": 168755, "amgName": "FIT", …

Member Avatar for pritaeas
0
254
Member Avatar for BrundyBoy

Hello! This is my first time trying to use Java, and I was trying to learn something with the "Scanner userInput" and ".nextInt()". After I put a bit of code on, it showed me: Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at java.util.Scanner.nextInt(Unknown …

Programming java
Member Avatar for JamesCherrill
0
245
Member Avatar for jean_5

How to convert a date that is in the format yyyy-mm-dd. For example: 2014-12-12 to Dec 12 2014?

Member Avatar for Purvi_1
0
413
Member Avatar for Jonathan_41

Im just learning javascript and want to make a code for a prank on my friend. I want it that when i plug in a certain usb it will pop up a fake virus alert after a couple of seconds, and when you exit off it will pull back up …

Programming java javascript
Member Avatar for Jonathan_41
0
272
Member Avatar for WaveOMutilation

Hi, A few years ago, me and a colleague built the below code as a tool for our team to automatically update the names on our saved files in line with the company records management policy. Now that policy has changed and I need to update the code, and unfortunately …

Programming visual-basic
0
150
Member Avatar for Adm666

Hi, i want to learn how to parse user input and check its validity in c#, for example i want the user to input a specific format : "x,y to x,y" where x is a number and y is a number (entered by the user) like : "1,4 to 3,8" …

Programming c#
Member Avatar for tinstaafl
0
480
Member Avatar for AbdullAh_39

alright so i have got a c++ code(AIRLINE RESERVATION SYSTEM) which i can run as console application, but i want to convert it into GUI, and i dont know anything about GUI, where and how should i begin, i have 1 and half month to present it.

Member Avatar for tinstaafl
0
300
Member Avatar for seb33

Hello I have a abstract class: import javax.swing.JOptionPane; public abstract class Question { static int nQuestions = 0; static int nCorrect = 0; String question; String correctAnswer; abstract String ask(); void check() { nQuestions++; String answer = ask(); if (answer.equals(correctAnswer)) { JOptionPane.showMessageDialog(null,"Correct!"); nCorrect++; } else { JOptionPane.showMessageDialog(null,"Incorrect. The correctanswer is …

Member Avatar for JamesCherrill
0
264
Member Avatar for MagnusTheRed90

Does anybody know a good way to break a screen up into multiple sections for filling out lengthy multi section data? I would like something that I can break data inputs up into sections and move onto the next section when I finish filliing out a section prior, sequentially. What …

Member Avatar for rproffitt
0
276
Member Avatar for benjaminFowl87

How important is Unit Testing taken by employers, is it something that every developer should have as one of their skills, do some jobs require it more than others or is a simple test like handing out a piece of software to be used by friends family etc sufficient enough.

Member Avatar for amit005
0
818

The End.