64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bprosic

hello, I have four arrays. Three arrays are in one group and fourth is in the second group. And I need to use array_diff somehow between theese two groups. First group has one array which contains unique numbers (like barcode number), second array with a product name and third array …

Member Avatar for bprosic
0
356
Member Avatar for Judi Almed

Hi! I'm a beginner in Java can you share an answer for this assignment since I already been doing this for a week and I don't know how to answer. Create a Student class with those attributes: 1. firstName 2. lastName 3. grades (it contains grades between 0 and 10) …

Member Avatar for Judi Almed
0
212
Member Avatar for nitin1

Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling this function from cpp code. I am accepting the result as jobject. 1. Added key as "key1" & value as …

Member Avatar for JamesCherrill
0
2K
Member Avatar for khair.ullah

Hi every one . Recently i complete my project on libraray managment system which work perpectly on my system. Now the problem is that when i Execute my project on other system it show error at con.open i.e it mean that connection string not set in this system . Now …

Member Avatar for Muhammad_113
0
5K
Member Avatar for spiriad

Hi, I am trying to make small game , but I am confronting with a problem. I have a function that should add a new button to my form when it's called. The problem is that I don't know how to create a new object (a button, a shape or …

Member Avatar for Itamir
1
3K
Member Avatar for beanboy

hi, The jsp page has multiple check boxes (retrieved from DB),.... [CODE] <input type="checkbox" name="selecttype" value="<%=rs2.getString("description") %>"/> [/CODE] I've read these values in to servlet page using [CODE] String[] selecttype=request.getParameterValues("selecttype"); [/CODE] the 'selecttype' now contains only selected checkbox values. but i want to retrieve values of unchecked checkboxes. Pls help …

Member Avatar for vk
0
4K
Member Avatar for grant.baker

Consider the following query: //$fix and $limit are dynamic values $query="SELECT ICAO_Ident AS ID, Location_Identifier AS LocID, Official_Facility_Name AS Name, Landing_Facility_Type AS AptType, Associated_State_Post_Office_Code AS State, Associated_City_Name AS City FROM APT WHERE `Location_Identifier` LIKE '%$fix%' OR `ICAO_Ident` LIKE '%$fix%' OR `Official_Facility_Name` LIKE '%$fix%' OR `Associated_City_Name` LIKE '%$fix%' ORDER BY `ICAO_Ident` …

Programming mysql
Member Avatar for grant.baker
0
279
Member Avatar for Nathan_6

Hi, everyone. I want to create a RISK-style game in C++ with decent graphics, of course. I would like to create a map with countries as buttons [I know that this is possible in java through extensions but I want to do this in c++] Could anyone please help me …

Member Avatar for Nathan_6
0
200
Member Avatar for kamilacbe

string query = "DECLARE l_cursor SYS_REFCURSOR;ServiceName la_service_provider_detail.service_name%TYPE;Surname people.surname%TYPE;Forename people.forename%Type;"+ "Action Varchar(50);Rate ey_pupil_premium_log.rate%Type;"+ "Funding_Code single_funding_formulas.funding_code%Type;"+ "BEGIN EYPupilPremiumPackage.GetEyPupilPremiumLog(pLogId=> 6613, pPreview => 'T',EyPupilPremiumLog=> l_cursor);"+ "LOOP"+ "FETCH :l_cursor "+ "INTO ServiceName, Surname, Forename,Action,Rate,Funding_Code;"+ /*IF l_cursor%NOTFOUND"+ Then DBMS_OUTPUT.PUT_lINE('NO DATA FOUND'); EXIT WHEN l_cursor%NOTFOUND; END IF; "END LOOP;"+ "DBMS_OUTPUT.PUT_LINE(ServiceName || ' | ' || Surname || …

Member Avatar for rproffitt
0
1K
Member Avatar for Tre Sivileo

Hey new to JDBC SQL DERBY and Java so I don't know why but my Jtable only shows the columns. Here are my codes for my LeaderboardDAO class. public class LeaderboardDAO extends Dao { private static final Logger LOG = LogManager.getLogger(PlayerDAO.class); public static final String TABLE_NAME = "leaderboard"; private static …

Member Avatar for Tre Sivileo
0
372
Member Avatar for matoo

HI everyone i am trying to write POS and Inventory for myself in vb6. I am stuck and gone blank what to do. here is what i want to do. search database for the stocks. change the caption of the button ( eg caption of the botton is "COKE 250ml" …

Programming visual-basic
Member Avatar for matoo
0
255
Member Avatar for rhys_2

Hi, i have been making a maze game in pygame. I have made every level and have them all in different folders so i can find them easily. I have been trying to make a menu for the game where you are able to pick any level and play it. …

0
148
Member Avatar for Koel

Hi, I have two text files. The first one has a list of words , like the following : File 1.txt Laura Samuel Gerry Peter Maggie The second one has paragraphs on it. For e.g. : File2.txt Laura is about to meet Gerry and is planning to take Peter along …

Member Avatar for Koel
0
309
Member Avatar for JustMarkInAz

Hello, My vb.Net code interacts with a design software and extracts a list of strings into an array. I want to use that array to populate a list box on a form. Every search I try always retursn "How to send array from one form to another" I only have …

Member Avatar for tinstaafl
0
212
Member Avatar for kkavita060
0
106
Member Avatar for se00an

Hello all, Inverting an upper (or lower) triangular matrix is a trivial algorithm, due to the nature of the matrix. I am having an issue getting a part of my upper-triangular matrix inversion function to work, and I would like to get it working soon for a personal project. From …

Member Avatar for Ivan_12
0
905
Member Avatar for rouse

I am looking for a jQuery tutorial that will show me how to do what I have heard called the garage door slide. Two panels that are initially closed, together. When a button is pressed or the panels are hovered over the panels move apart, one to the left and …

Member Avatar for hericles
0
168
Member Avatar for rhys_2

Hi, i have been making a maze game in pygame. I have made every level and have them all in different folders so i can find them easily. I have been trying to make a menu for the game where you are able to pick any level and play it. …

Programming os-x python
0
172
Member Avatar for Mark_48

I am trying to ask for a float input and valididate if it is a float if it is... continue, and if it is not ask for another input. My program tells me my input is invalid, which is correct... it then prints the two statements but it skips the …

Programming c
0
132
Member Avatar for Nathan_6

Hi everyone. I am trying to develop a class for a RISK boardgame, and I used UNIT_COLOR and UNIT_TYPE enums to represent the different types of pieces. These enumerations are defined as public in my class but are causing complete havoc in my code because with the C++11 "class enum," …

Member Avatar for AssertNull
0
2K
Member Avatar for RudyM

Hi all, I'm trying to replace text in a CSV. The CSV line looks something like this: "Field One","Field Two","Field Three","Field Four" So I tried something like: (Get-Content $csvfile) -replace "Field`n", "Field" | Set-Content $csvfile

Programming windows-api
Member Avatar for RudyM
0
384
Member Avatar for Amaina

This question is similar to this [one](https://www.daniweb.com/programming/web-development/threads/371092/notice-undefined-index-id-on-line-26) However, my insert does not involve a form but a direct mysql query that looks like this $query2 = "insert into table(author,title,abstract) values(:author,:title,:abstract) "; $stm=$con->prepare($query2); $stm->bindValue(':author', $author, PDO::PARAM_STR); $stm->bindValue(':title', $title, PDO::PARAM_STR); $stm->bindValue(':abstract', $abstract, PDO::PARAM_STR); $stm->execute(); echo "$author &nbsp $title &nbsp $abstract <br>" In …

Member Avatar for Amaina
0
282
Member Avatar for Amaina

I want to insert multiple records to wp_posts table in word press using a mysql query and not the front-end. I also want these new records(that i insert into wp_posts) to insert metadata into wp_postmeta table. My question is how can i do this? How does wp_posts update wp_postmeta if …

Member Avatar for Amaina
0
759
Member Avatar for Aeonix

SELECT blabla FROM a INNER JOIN b ON a.a = b.b Is what I have. However I'd like to sort the results DESC by ID. I'd like to select last [`variable` x 10] of items sorted by ID DESC. Variable provided by PHP (I'll sort things out, I just need …

Member Avatar for hielo
0
317
Member Avatar for Stefce

Hello guys i need to get all currencies in the world is there anyone who knows where to get them in a file so i can import it in my website or someone who can help me to solve with regular expression here is the [WEBSITE](http://www.xe.com/currencytables/?from=INR) where i have fund …

Member Avatar for cereal
0
159
Member Avatar for Aeonix

`Unknown column 'topics.id' in 'field list'` `SELECT topics.id topicId,` [...] `topics.id` DOES exist.

Member Avatar for cereal
0
4K
Member Avatar for jeffersonalomia

How to sort five label values using only if else or loop statement? Example: Lbl1 =56 Lbl2=23 Lbl3= 112 Lbl4=8 Lbl5=250 How can i compare every value of 5 label without using array and then sort them and assign on their respective label?

Programming visual-basic
Member Avatar for jeffersonalomia
-1
166
Member Avatar for rhys1619

Hi, this is a maze I have been working on. As you can see everything is just flat colors. I was wanting to make it so i can add more detail like having it so i could have a picture of some tree textures as the walls to my maze …

Programming os-x python
Member Avatar for DerSoldi
0
320
Member Avatar for Aeonix

I don't think it's code-bound, but here's the code: http://pastebin.com/yWJ5qpwN What happens is... I input 2 different passwords, line 22 is for some reason entirely skipped. The script passes every verification, the SQL record is added, and further execution of code happens. User gets logged in and moved to `index.php` …

Member Avatar for cereal
0
253
Member Avatar for RMartins
Member Avatar for pythonBasic
0
728
Member Avatar for quatrosem

There is a problem of facility location that I solve with genetic algorithms. I can get good results. So I would like to compare my genetic algorithm complexity O(n^2) with the brute force algorithm. But I am not getting an answer. (n = number of individuals in my population, usually …

Member Avatar for Gribouillis
0
473
Member Avatar for Pyscript.exe

I tried to install pyHook, but all I seem to get when I try to run my program in the python shell to test it is this. ImportError: No module named pyHook I keep trying, and I have PyWin32, so I tried to install it like that by typing into …

Member Avatar for Pyscript.exe
0
4K
Member Avatar for karthik_ppts

I have purchased SMS gateway from one hosting company. How can i integrate my SMS gateway with my website?

Member Avatar for swatisharma08
0
1K
Member Avatar for Aeonix

I need to create about 1000 users, with random (but normal looking names not "293dsaf81s234" but "Blue Air" (can be random dictionary words)). And I need to generate topics and posts, and many others things. Does anybody know a good way on how to generate dummy content in PHP? What …

Member Avatar for Aeonix
0
167
Member Avatar for abhi10kumar

How I replace my eregi_replace with preg_replace expression? eregi_replace($word, '<font style="background:' . $color . '";>\\0</font>', $text); and I how do I check preg_replace function is executed or not?

Member Avatar for cereal
0
324
Member Avatar for rhys1619

Hi, at the end of the maze you see a red square. I was trying to make it say "you win , would you like to play again y or n". i have tried using def mes and gameover = false but nothing seems to work. would help a lot …

Programming os-x python
Member Avatar for Gribouillis
0
1K
Member Avatar for jeffersonalomia

Good day !! I want to sort the values of the array in vb6. Here's the sample of an array that i want to sort `arr() = {21,2,33,"c","a"}` is it possible to sort an array with values of string and integer.** If not**, is it ok if you specify how …

Programming visual-basic
Member Avatar for jeffersonalomia
0
4K
Member Avatar for rahul208708
Member Avatar for Arzak

Hi everyone, I wanna ask about `Bytes` from `ifconfig eth0`. Like us know, menu's from `ifconfig eth0` is... **eth0 Link encap:Ethernet HWaddr 00:0F:20:CF:8B:42** **inet addr:217.149.127.10 Bcast:217.149.127.63 Mask:255.255.255.192** **UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1** **RX packets:2472694671 errors:1 dropped:0 overruns:0 frame:0** **TX packets:44641779 errors:0 dropped:0 overruns:0 carrier:0** **collisions:0 txqueuelen:1000** **RX bytes:1761467179 (1679.7 …

Programming python
Member Avatar for Arzak
0
2K
Member Avatar for Builder_1

A farmer with his wolf, duck and bag of corn come to the east side of a river they wish to cross. There is a boat at the river’s edge, but of course only the farmer can row. The boat can only hold two things (including the rower) at any …

Member Avatar for AssertNull
-2
2K
Member Avatar for cambraydesign

I am trying to pass a javascript variable into another function and keep getting undefined errors etc. In the first function I have chatName that I want to use as the display title only in the second function, you can see where I want it to appear in the div …

Member Avatar for cambraydesign
0
410
Member Avatar for naheedkassam

I have the following code is asp.net <%@ Page Title="" Language="C#" MasterPageFile="~/Site02.Master" AutoEventWireup="true" CodeBehind="Tasks.aspx.cs" Inherits="DMS.Tasks" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <div class="row-fluid sortable"> <div class="box span5"> <div class="priority high"><span>Assigned By Me</span></div> <div class="task high" runat="server" id="Task01"> <div class="desc"> <div class="title">Test 45</div> …

Member Avatar for naheedkassam
0
740
Member Avatar for Siberian

I have installed Node.js but without going deep into Node at this point all I want to do is use an optimizing tool for Node. The instructions are straight forward but they are not working. I'm hoping someone can help get me started, the tutorials I've watched haven't been helpful.

Member Avatar for Siberian
0
131
Member Avatar for Aeonix

$city = "Amersfoort"; if ($stmt = $mysqli->prepare("SELECT District FROM City WHERE Name=?")) { $stmt->bind_param("s", $city); $stmt->execute(); $stmt->bind_result($district); $stmt->fetch(); printf("%s is in district %s\n", $city, $district); $stmt->close(); } This brings many questions: - What is `s` on the line 4? Do I need to bother with that? - What if I …

Member Avatar for diafol
0
240
Member Avatar for Nathan_6

Hi, everyone! I have to make a function which would get a c-string of an inputted text and it would output the number of times each unique word occurs in it. Of course, I must use c-strings [yeah yeah, I know but that is what the assignment is]. Here's my …

Programming c++
Member Avatar for Nathan_6
0
402
Member Avatar for sangatik

Design and implement an application that determines and prints the number of odd, even, and zero digits in an integer value read from the keyboard. (java) using for loop

Member Avatar for AssertNull
-4
302
Member Avatar for Doogledude123

Hey everyone, I'm looking for some help with coming up with a system to communicate data between client and server sockets. I was thinking of a command system, but that would only work when the client is sending a request to the server, not when the server is returning data …

Member Avatar for JamesCherrill
0
380
Member Avatar for Aeonix

`INSERT INTO 'members' ('username', 'password', 'email') VALUES ('axe', 'axe', 'weql')` - `#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''members' ('username', 'password', 'email') VALUES ('axe', 'axe', 'weql')' at line 1`

Member Avatar for cereal
0
162
Member Avatar for Amaina

I have this code session_start(); $username = $_SESSION['username']; function getUserRole($username, $roleid){ $con=dbConnect(); $query="select * from user inner join userrole on user.id = userrole.userid inner join role on role.id = userrole.roleid where username = $username"; $sql=$con->prepare($query); $sql->bindValue(':username',$username); $sql->bindValue(':roleid',$roleid); $sql->execute(); $row = $sql->fetch(); $username = $row['username']; $roleid = $row['roleid']; if($row > 0){ …

Member Avatar for diafol
0
2K
Member Avatar for Aeonix

I think this is called "foreign key" and "local key" ? I have a table `users`, these users have `rank`. It's an `int`. There is a table named `rank`, this table has field where hexadecimal string is placed `FF0000`. Is there a way to `SELECT * FROM users` and `SELECT …

Member Avatar for Aeonix
0
453

The End.