199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alonso_1

I have a 2 column SQL table as follows: **Product Price** Drill 20 Hammer 15 Screwdriver 5 Screws 2 Nuts 3 Bolts 6 I eventually want to embed a PHP array into a Google charts script. But first, how do I pass my SQL query into an array? My code …

Member Avatar for broj1
0
2K
Member Avatar for rahulzephyr

Hello,I wanna decrese the size of my windows application projesct.Actually i'm using many animated pictures in my projects so that might be the reason for larger size. Is there any other way to reduce the exe file..will it get reduced if load the pictures dynamically from outside folder??if it is …

Member Avatar for rahulzephyr
0
395
Member Avatar for engrjd91

Hello everyone, I have 2 of my php pages. I am starting a session in my first page and setting the setting variables but whenever I am trying to access that variable in the 2nd page it doesn't show an error neither it pops out my desired result. In short …

Member Avatar for faisal.qureshi.7121614
0
308
Member Avatar for engrjd91

I have the following code in my php files, but i am having a following error while loading my page? "Notice: Undefined variable: username in C:\xampp\htdocs\fyp\cms\cms.php on line 48" My page is successfully loading up, but username is not being shown in the page and the error is popped up …

Member Avatar for faisal.qureshi.7121614
0
601
Member Avatar for Doogledude123

I know with Lists you can instantiate them to an ArrayList, but is this generally a good idea? Is it better to do 'List<?> list = new ArrayList<?>();' rather then 'ArrayList<?> aList = new ArrayList<?>();'?

Member Avatar for JamesCherrill
0
182
Member Avatar for confstu

0 down vote favorite I want to ask all of you for some help since i'm still new to web programming. So basically i have html table like this, <table width='200' border='1'> <TH>Year 1 Spring</TH> <TR> <TD> <div id="y1f_0">one</div> <div id="y1f_1">one</div> </TD> <TD> <div id="y1s_0">two</div> <div id="y1s_1">two</div> </TD> </TR> </table> …

Member Avatar for dnyaneshk2
0
2K
Member Avatar for dhani09

I have an HTML dropdown list which i'm populating from a database. My question is how can i retrieve the value of a selected item from this dropdown list using AJAX? Thanks in advance.

Member Avatar for dnyaneshk2
0
6K
Member Avatar for PerplexedB

I have this routine that works in outlook 2010 but not in outlook 2013 (365). ` Public Sub readTextFile(oFolder As eFolder) If oFolder = NotSupported Then Exit Sub If oFolder = Inbox Then ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Views("MgInbox") Else ActiveExplorer.CurrentView = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderSentMail).Views("MgSentMail") End If Dim oTV As Outlook.TableView Set oTV = ActiveExplorer.CurrentView …

Member Avatar for PerplexedB
0
388
Member Avatar for nadiam

hey guys. im trying to show a dropdown list and hide input text when an option in another drop down list is selected. dropdown <select name="table-type" id="select-t"> <option value="" disabled selected>Types of Tables</option> <option value="Round Table" id="rt">Round Table</option> <option value="Banquet Table" id="bt">Banquet Table</option> <option value="Square Table" id="st">Square Table</option> </select><br> No. …

Member Avatar for nadiam
0
262
Member Avatar for Black_Falcon

Hey guys, I just wanted to know how exactly can i change the location from pbx1 to pbx1_1. Its a card game and as soon as i click on pbx1 it must move to pbx1_1, But im not sure how to do that.Please help public partial class Form1 : Form …

Member Avatar for ChrisHunter
0
134
Member Avatar for engrjd91

I have the following code, and i am having these errors: "Warning: mysql_fetch_array() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\fyp\qmc-login\login.php on line 58 Warning: mysql_fetch_array() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\fyp\qmc-login\login.php on line 59" Can somebuddy find out whats the problem? Thanks in …

Member Avatar for eburlea
0
349
Member Avatar for devonrichards

Hello noob here. I'm doing a program where we are campground managers and in the third form do campground housing I'm stuck in the final part of the third form where we must take the inputs of both list and be able to add and remove occupancy. Cabins Occupants Cabin …

Member Avatar for devonrichards
0
205
Member Avatar for vuze

i have this code import wx import datetime,re,os,time,urllib,errno import sys import wx.lib.mixins.listctrl as listmix musicdata = { 0 : ("Bad English", "The Price Of Love", "Rock"), 1 : ("DNA featuring Suzanne Vega", "Tom's Diner", "Rock"), 2 : ("George Michael", "Praying For Time", "Rock"), 3 : ("Gloria Estefan", "Here We Are", …

Member Avatar for woooee
0
348
Member Avatar for shelton22

Hi Friends! If I have number of arrays with fixed size (15), it consist of zeros and non-zeros. eg: array1[15]={5,5,0,0,4,4,4,0,0,0,1,0,0,0,3} array2[15]={1,0,0,0,0,7,7,0,0,3,0,0,0,0,2} array3[15]={6,6,6,0,8,8,8,0,0,0,3,3,0,0,4} ........... How can I count the common zero sequences and there indexes of arrays? sample output for the above arrays: Index Nim_of_zeros 3 1 7 2 12 2 …

Member Avatar for iamthwee
0
511
Member Avatar for patk570

Hello, I am working on some code that does a remote call to a licensing server to validate whether the license is valid, invalid, expired and suspended. I have a login code that is using prepared statements: function login($email, $password, $mysqli) { // Using prepared statements means that SQL injection …

Member Avatar for jstfsklh211
0
275
Member Avatar for pspwxp fan

Hi, My task is to create a library/precompiled header for use with MASM. I am using Code:Blocks. I have googled quite a bit and haven't come up with an appropriate solution. I was hoping someone could point me in the right direction. This is what i have done so far: …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for malatamil

value is Tourism & Hotels url?catagory=Tourism%20&%20Hotels&maincateg=Tourism%20&%20Hotels if i call that catagory to another page $category = $_GET['catagory']; and in second page i displayed that value echo $category; but this showing only Tourism and the remaining words r gone.i want to display Tourism & Hotels with special char

Member Avatar for malatamil
0
179
Member Avatar for kshahnazari

I'm just learning jquery , The thing is that how can I make jquery and php contact each other in one single page ? if there is an example I really appreciate it!

Member Avatar for Patrick Thomas
0
426
Member Avatar for Doogledude123

I know you can create nested classed (or just classes declared outside of the class in the same file) but what is the point of doing this? Why not just create a new class file?

Member Avatar for JamesCherrill
0
203
Member Avatar for GagaCode

hey all, i have a little issue here with the below however the wired thing that i encoutred is that the below code run only for one time perfectly and when i invoked it again it displayes the error : " The ConnectionString property has not been initialized. " private …

Member Avatar for GagaCode
0
322
Member Avatar for XodoX

I found this site http://www.guyrutenberg.com/2007/09/22/profiling-code-using-clock_gettime/ If I have a server-client code and this: clock_gettime(CLOCK_REALTIME, &time_a); // create socket clock_gettime(CLOCK_REALTIME, &time_b); // close socket If I have a and b wand want to measure the time it takes to communicate, what's the best way ? Still not fully understanding the exact …

Member Avatar for NathanOliver
0
263
Member Avatar for Za3mi

I am a new to assembly and i am asked to multiply two 3x3 matrices and then show the given result. I am having problem in multiplication as mov al,5 mov bl,6 imul bl but how to print it?? i know the result will be in ax register but i …

Member Avatar for Za3mi
0
2K
Member Avatar for gbhs

Hi I have a Help.doc file in my application. How can I open this file on a winform to page 2 (say)? How can I open it to page 2 using a WebBrowser control? 'Microsoft.Office.Interop.Word added Private Sub OpenMyWordDoc() Dim MyWordApp As Word.Application Dim MyDoc As Word.Document MyWordApp = CreateObject("Word.Application") …

Member Avatar for cgeier
0
448
Member Avatar for XodoX

I have some experience with client-server codes. TCP and udp client. I want to know how a stream socket works with HTTP. This client is for a server-client code where the greatest common divisor is calculated and displayed. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> …

Member Avatar for Banfa
0
260
Member Avatar for dinhunzvi
Member Avatar for cereal
0
103
Member Avatar for Mike Bishop

can anyone help me with the code below, I would like to strip out comas from the URL http://www.balmanltd.co.uk/products/steering/ball-joints/ball-joint,-drag-link-end/am1148 $str = trim($str);/*remove any unwanted outer spacing*/ $urlkey = preg_replace("/[^0-9a-zA-Z]+/","-",strtolower($str)); $htmlkey = ($htmlext) ? $urlkey.".html" : ""; return array($urlkey,$htmlkey);

Member Avatar for diafol
0
161
Member Avatar for sukhdev.singh

Hi this is Sukhdev, I am new in php and wish to know how to import the data from excel sheet to mysql Table; 1. I have a table with the name of city in mysql with following fields; city_id,city_name,tier_id,tier_name,state_id,state_name 2. what would be the function for uploading above fields, …

Member Avatar for chrishea
0
336
Member Avatar for wizard25

Hi, I have an assignment. I need to write code in logic programming language SWI-Prolog. Its very hard and I am going to appreciate if you help me :D. This is the assigment: Print 2D array size of (width x height) in spiral order. More explanation and example: You have …

Member Avatar for TrustyTony
0
772
Member Avatar for nutandevjoshi
Member Avatar for jwenting
0
219
Member Avatar for smartguy360

I tried dreamincode but the mods there all seem to be on their periods tonight so i have come here to humbly beg for help. First off let me start by saying I'm a new programmer and I am frustrated and cofused by the class i'm in prg 420. I …

Member Avatar for jwenting
0
394
Member Avatar for Priti_P
Member Avatar for Priti_P

Hello, I have a form in which , I have DIV1. Selecting option from DIV1 another DIV2 gets open and form is filled. But I want after filling DIV2, its values should get refreshed to default ones. How can I do this in JS?

Member Avatar for JorgeM
0
131
Member Avatar for glamiex

//Reading the last name from the file ifstream file; file.open("studentName.txt"); char name[20] ; file>>name; cout<<"The last user was: "<<name<<"\n"; file.close(); //Replace the last student name with the new one in the text file cout<<"What is your name?: "; cin>>name; name[0]=toupper(name[0]); ofstream file2; file2.open("studentName.txt"); file2<<name; file2.close(); When I run the program …

Member Avatar for wrathness
0
183
Member Avatar for thunder234

I have the following code for a login page that is supposed to display an error when the user enters the wrong username and password combination. can anyone have a look at the code and tell me why it isnt displaying the error message when its supposed to. Here is …

Member Avatar for Zagga
0
304
Member Avatar for flebber

What I am trying to acheive is to parse an xml file break it up into useful components and push it to a multi table SQL database. But I cannot get off the ground in the basics. Take an xml file like this [Click Here](http://old.racingnsw.com.au/Site/_content/racebooks/20140513HAWK0.xml) Which at the start is …

Member Avatar for Gribouillis
0
1K
Member Avatar for k.vijayakumar

HI, I have a common page (sqlhelper.cs) where i am preparing command and executing execnonquery,... But veracode addressed sql injection flaw 89 in the following code saying issue with parameters. How can skip this verification?. any extra validations i need to put in the following code? Please help. private static …

Member Avatar for k.vijayakumar
0
318
Member Avatar for ElegantElephant
Member Avatar for Bharane_1
0
239
Member Avatar for hwoarang69

# I am using: # -- Libgdx and Box2d. ------------- # what I am trying to do: # -- I want enemy to move right and left. if enemy hits the wall than move the over way. ---- # My plan: # -- I have two senors set up on …

Member Avatar for JamesCherrill
0
351
Member Avatar for Techboy52

//My objective of the program is using scanner class to get the input from the user and use a dialog box(JOptionPane) for output. When I compile the file I was able to enter the input from the scanner class, but I did not see the dialog box for the output …

Member Avatar for stultuske
0
4K
Member Avatar for Sadaf_1

Salam... I have SQl Database...And i am using visual basic 2010 i have a problem with Null values.When in my database data have some null values then data not showing in my crystal report ...crystal report showing blank..I want '0' when data is null..for example my table name is (meetings …

Member Avatar for Reverend Jim
0
342
Member Avatar for abey ella

i am working in a bank and am working on project to write a program that will work on touch screen kiosk and make customer flow management easier but i don know what programing language i can you and how can i do it , and what algorithm to use …

Member Avatar for abey ella
0
280
Member Avatar for umaima_1

//When ever I add TextFields the frame disappears.line 73-76,108-111; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class fitness extends JFrame { private double height=13.5; private double weight=45.3; private int age=20; private String sex="Male"; public fitness(int x){ this.age=x; } public fitness (double wei,double hei){ this.weight=wei; this.height=hei; } public fitness (double height,double …

Member Avatar for mKorbel
0
201
Member Avatar for joshmac

Hello, I need to run a report against a database, and I am having a difficult time thinking of a way to run a particular report. What I need to do is run a report which selects students that have no course registrations for three consecutive semesters. The semester table …

Member Avatar for rch1231
0
184
Member Avatar for nadiam

hey guys. so i was thinking of creating this page that has 2 different tables : table1(table1 filled with names that are populated from database but lets not think about that part for now) and table2(empty), table1 rows are clickable and when doubleclick on one row the data in that …

Member Avatar for nadiam
0
349
Member Avatar for mcdczzz
0
105
Member Avatar for thunder234

I have the following code for a login page that is supposed to display an error when the user enters the wrong username and password combination. can anyone have a look at the code and tell me why it isnt displaying the error message when its supposed to. Here is …

Member Avatar for poosapatisuresh
0
276
Member Avatar for kevndcks

Hello developers, i have got a problem that i have been trying to solve all day and would be glad if anyone here can help. I have a Java port scanning application which scans for open ports and displays the results in a textarea called "taOutput" when the user clicks …

Member Avatar for happygeek
0
3K
Member Avatar for Damian_2

Okay so i'm trying to make a chat application using sockets, and i want them both to be able to write and read simultaneously. So i did some research and found that I/O multiplexing like select() will fix this problem. But I still have one problem. After I compile it …

Member Avatar for Damian_2
0
11K
Member Avatar for malatamil

i have coding like this. its working fine but in another page i want to display only the rating image.below i added my page links. in searchdetails.php page i want to update the rating and display and in searchbycat.php file i want to display only the rating image only without …

0
126
Member Avatar for Mr.UNOwen

Hello, So I'm aware that OpenGL is Column major and DirectX is Row major, but how does that translate into a basic 1D array? So given the below visual matrix, what would the first 3 in the array of each platform and which 3 would be the x,y and z …

Member Avatar for Mr.UNOwen
0
2K

The End.