3,060 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for MD Nawab
Member Avatar for Jesse_21

I am attempting to update my accounts table for the current session ID with the data posted from a form. My first prepare statement is functioning fine and can be seen functioning through the placeholder variables in the form. It is my second prepare statement that doesnt seem to be …

Member Avatar for Dani
0
88
Member Avatar for Xoxo_2

Count number of occurrences of a digit with while/do while without using array in c++

Member Avatar for rproffitt
0
78
Member Avatar for jeffmylife

# What Are Voronoi Diagrams? # Voronoi Diagrams are an essential visualization to have in your toolbox. The diagram’s structure is a data-driven [tessellation](https://en.wikipedia.org/wiki/Tessellation) of a plane and may be colored by random or to add additional information. ## Learn the Lingo ## The set of points that generate the …

Member Avatar for Smartfitness33
5
24K
Member Avatar for rudypooh786

Write a Java application that calculates the number of repayments for a loan based on the initial loan amount, annual interest rate and monthly payment. The user enters these values and application uses a loop to display the balance each month after payment has been made. Note that interest is …

Member Avatar for KAIWEN KEVIN
0
4K
Member Avatar for Violet_82

I 'm building an application to store and retrieve books, but I have an issue with retrieving data from the db. I'm using REST and testing with postman. Everything works OK. Currently I have a series of methods written in Java at the backend like so @Override @POST @Path("/add") //@Produces("application/json") …

Member Avatar for Smartfitness33
0
400
Member Avatar for Violet_82

Hi there, I am trying to do an exercise from a C++ book. It goes: Develop a program that will move the knight around an empty chessboard. The chessboard is represented by an 8-by-8 two-dimensional array [ICODE]board[][][/ICODE]. Each of the squares is initialized to 0. We describe each of the …

Member Avatar for yaer
0
3K
Member Avatar for hiiiiii@

this is my code for inserting records into my form which is in html file `Inline Code Example Here` <?php error_reporting(E_ALL ^ E_DEPRECATED); $connect=mysql_connect("localhost","root","") or die(mysql_error()); $db_select=mysql_select_db("employee",$connect) or die(mysql_error()); if (isset($_POST['id'])) $id=$_POST['id']; if (isset($_POST['name'])) $name=$_POST['name']; if (isset($_POST['gender'])) $gender=$_POST['gender']; if (isset($_POST['mobile'])) $mobile=$_POST['mobile']; if (isset($_POST['email'])) $email=$_POST['email']; $qry="insert into emp(id,name,gender,mobile,email) values ('$id','$name','$gender',$mobile,'$email')"; $result=mysql_query($qry) …

Member Avatar for Daju Emmanuel
0
3K
Member Avatar for newtocplus432

Hello and thanks for reading my post. I need help converting the fallowing Algorithm into working C++ code, and below is what i have come up with so far, what do i need to do to make this compile? Algorithm: PayCalc 1. CaseOf PayCode = "H" Pay = Rate * …

Member Avatar for mohannad_1
0
1K
Member Avatar for faarrukhjamal

I tried alot to print this arrow with random generated values which are 0101 , every time it should be differnt, please help me out thanks :) ![Untitled1.png](/attachments/large/4/c843d1e3a2cf1464dc1f1eb7c0d4a68a.png)

Member Avatar for Smartfitness33
0
1K
Member Avatar for davecoventry

I have written the following Tkinter script: When I run it, the first thing that happens is the File Dialog box opens without it being called. I am expecting the file dialog box only to open when the "Open Document" button is pressed. import tkinter as tk from tkinter import …

Member Avatar for davecoventry
0
250
Member Avatar for VIPER5646

Hello I have created awhile ago in VS2017 an application [application A] with CR sp21 which works fine. Now Ihave another application [application B] created in vs2019 with CR sp29. When I install app B on the same pc where App A is installed the CR wont work so I …

Programming vb.net
Member Avatar for VIPER5646
0
193
Member Avatar for Greg_11

I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a …

Member Avatar for JeanMilburn
1
345
Member Avatar for vindyauwu

I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar for VINITHAPRIYA R
0
36K
Member Avatar for Alexander_26

How to remove from the Google index pages of my site that were created by a virus  Japanese keyword hack? It is necessary to remove from the Google index links to the pages of my site http://quartercheapersigns.ca/  that were created by a virus - about 43 800 pages in Google …

Member Avatar for Dani
0
83
Member Avatar for discuss
Member Avatar for jack98

hello, i have a probelm where i want to update my image in database using unlink(). The error is **Warning: unlink(images/481933.jpg): No such file or directory**. I try search the solution but nothing can solve my probelm. anyone can help me? thank you in advanced. this is my code: $upload_dir='images/'; …

Programming php sql
Member Avatar for Dani
-1
566
Member Avatar for AndreRet

[ATTACH=RIGHT]20145[/ATTACH][B]Building your first DYNAMIC Database application. This is Part One of a four part tutorial on how to install and use your database, Part Two will teach you how to build successful connections and Part Three will teach you how to build database interaction and management of your databases.[/B] There …

Member Avatar for twexpresscars
1
2K
Member Avatar for sravan953

Hey guys, I want to make a simple program which calculates speed, distance and time. This is the code I used: [CODE] a=input("1)Find speed\n2)Find distance\n3)Find time\n4)Quit\n") while a!=4: if a==1: d=input("\nEnter distance: ") t=input("Enter time: ") print ("Speed: "+str(d/t)+"\n") elif a==2: s=input("\nEnter speed: ") t=input("Enter time: ") print ("Distance :"+str(s*t)+"\n") …

Member Avatar for Smartfitness33
1
14K
Member Avatar for comwizz

I would like to know what is the difference betn getchar(),getch(), and getche() functions and which should be used in which conditions. Thanks, comwizz. :confused:

Member Avatar for Smartfitness33
1
5K
Member Avatar for R_4

I am trying to get user's information and show them in user's profile. And i found this query but it is in PDO and my work is in sqli here the query : if(isset($_SESSION['user'])){ $getuser=$con->prepare("SELECT * From users where username=?"); $getuser->execute(array($sessionuser)); Sinfo=$getuser->fetch(); And here the whole code <?php session_start(); $sessionuser=''; …

Member Avatar for Smartfitness33
1
69
Member Avatar for AFFISH

I have called Rest API using powershell function but i need to get date entry from all objects like english-and-wales, scotland , northern ireland. using this $list.'england-and-wales'.events.date i will get only england-and-wales details but remaining scotland, northern ireland date i am unable to fetch function Get-Holiday Invoke-RestMethod -Method Get -Uri …

1
39
Member Avatar for davy_yg

Hello, I Have this website and I am trying to make the footprint smaller in text size. How to do so? http://gsa-constructionspecialist.com/home/vision-mission https://www.tinymce.com/docs/configure/content-formatting/#fontsize_formats This is the fontsize_formats in tiny mce. I already try to insert a new feature to change font size in tinymce and have not been successful yet. …

Member Avatar for pauldore
0
1K
Member Avatar for jozz3

I have to convert a piece of C++ code to Python. Except I can't understand what it's doing. This is the code: [CODE]#include <iostream> using namespace std; int calculate(int values[], int size) { int answer = 0; for (int 1 =0; i< size; i +=1) } answer += values[1]; } …

Member Avatar for Smartfitness33
0
8K
Member Avatar for Muhammet

This is my derivative function. This code works correctly but does not delete the constant term. It sets directly to 0 and writes to the result. how can i fix this? Thank you.. EX: Input: "-x^3-6x^2+ 4x+22" Output: “-3.0x^2 -12x +4.0 + 0.0” How can i delete this 0.0? struct …

Programming c++
Member Avatar for rproffitt
0
561
Member Avatar for ASD_3

Would anyone be able to help me, I am trying to make a C++ program which reads values from csv file and prints them(there are going to be three 4 rows, 3 columns). I want to know how can I add the rows (like the sum of the first row …

Member Avatar for Amber_12
0
272
Member Avatar for SimonIoa

i want to unserialize? and display Array from my text field in db table. This is what i use to serialize on Insert statement. `$persons = serialize(array($paymentData['anArray']));` and this returns after var_dump `["persons"]=> string(104) "a:1:{i:0;a:2:{i:0;a:1:{s:5:"value";s:15:"Producer: Simon";}i:1;a:1:{s:5:"value";s:13:"Writer: Simon";}}}" ` Now the object that i return from Select statement is memberDetails $sql …

Member Avatar for Dani
0
140
Member Avatar for Jericho_2

Can someone help me with this? Write a c++ program simulator that will compute for the average waiting time of each customer in a bank. Also the program will indicate the number of the teller who accommodates the customer.

Member Avatar for Dani
0
131
Member Avatar for muralibobby2015

Can anyone please help on this. Tenanti Version: ^5.0 Laravel Version: 7.x PHP Version: 7.4 Database Driver & Version: mysql-5.7.31 **Description**: When I install tenanti version getting an error in service provider. Illuminate\Contracts\Container\BindingResolutionException Unable to resolve dependency [Parameter #1 [ array $config ]] in class App\Providers\AppServiceProvider Steps To Reproduce: "orchestra/tenanti": …

0
73
Member Avatar for Dainis_1

<?php error_reporting(0); require 'conn.php'; global $conn; $tablename = $_SESSION['user_id']."_LIETOTAJU_ATIBLDES"; $sql = "CREATE TABLE ".$tablename." ( id INT NOT NULL AUTO_INCREMENT, ATBILDE varchar(255), PATIES varchar(255), PRIMARY KEY (id) )"; if (mysqli_query($conn, $sql)) { } else { } $val = $_GET['QUESTONS']; mysqli_set_charset($conn,"utf8"); $sql = "SELECT * FROM Jautajumi_Prof where TEMAS_NOSAUKUMS = ? …

Member Avatar for twexpresscars
0
71

The End.