199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for archie.herbias

Why this code doesn't redirect to profile page? i need help.. <?php include('connectvars.php'); if(isset($_POST['login'])) { $con = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); $user_username = mysqli_real_escape_string($con,trim($_POST['username'])); $user_password = mysqli_real_escape_string($con,trim($_POST['password'])); if(!empty($user_username) && !empty($user_password)) { $query = "SELECT * from Account where Username = '$user_username'"; $data = mysqli_query($con,$query); if(mysqli_num_rows($data) == 1) { $row = mysqli_fetch_array($data); $_SESSION['user_id'] = …

Member Avatar for cigoL..:)
0
234
Member Avatar for gelmi

here's my code and that the error whenever i would add something to database. i hope someone can help thanks :) Dim dbDataReader As OleDb.OleDbDataReader = Nothing Dim sqlAdd As String = "INSERT INTO Guest VALUES ('" & txtName.Text & "', '" & txtGuestId.Text & "')" If performNonQuery(connectionString, sqlAdd) Then …

Member Avatar for G_Waddell
0
115
Member Avatar for keven.pirritano

I have a basic idead of jQuery and can do some basic stuff, but I can't figure out how to do the following: I need jQuery to do the following function when you SELECT an option from a form Dropdown selection... When a person selects PS3 in drop down it …

Member Avatar for pritaeas
0
214
Member Avatar for acerious

// #include <iostream> #include <iomanip> using namespace std; int main() { float assign1, assign2, assign3, assign4, examScore; float assignWeight; cout << " Welcome to UOW Score System" << endl; cout << " " << endl; cout << "Enter the scores for Assignment 1 / 2 / 3 / 4" << …

Member Avatar for Gonbe
0
157
Member Avatar for mikeandike22

I have seen a couple solutions to this problem but none have worked so far. here is the error. [B]Fatal error[/B]: Call to undefined function mysql_connect() in [B]C:\wamp\www\login.php[/B] on line [B]12 [/B]and the code [PHP]<?php // connect to the mysql server $link = mysql_connect(localhost, root, admin) or die ("Could not …

Member Avatar for ashishanand
0
4K
Member Avatar for rahul.ch

public class IC1 { private int x = 3; static int y=4; class Inner { public void inmet() { System.out.println(x + " " + y);} } public void do() { Inner i = new Inner(); i.inmet(); } public static void main(String r[]) { IC1 ic = new IC1(); ic.do(); } …

Member Avatar for rahul.ch
0
199
Member Avatar for ownedbynothing

I do have 2 structures here. main linked list is the word. each node of the word list do have a meaning typedef struct node{ char word[20]; struct node2 *meaning; struct node *next; }word; typedef struct node2{ char meaning[100]; struct node2 *next; }means; My problem now is I can't add …

Member Avatar for Gonbe
0
1K
Member Avatar for dinhunzvi

i'm new to VB.Net programming but i want help. i have two MySQL tables created using the following SQL statements: create table tbldepartments ( departmentID TINYINT( 2 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, department VARCHAR( 25 ) NOT NULL UNIQUE ) AUTO_INCREMENT = 50; create table tblemployees ( employeeID …

Member Avatar for poojavb
0
241
Member Avatar for kiranrelent

I have a database in MS Access.I want to show the details in a crystalreprtviewer.Please tell me the procedure in VB.net to connect the database to the crystalreport.

Member Avatar for poojavb
0
810
Member Avatar for <M/>

I have a reCAPTCHA form and for some odd reason, the input field is probably 2px in height... I think something in php messed that up... can someone help me with possible solutions... I will post my php if needed and send you the link to the page for better …

Member Avatar for pritaeas
0
123
Member Avatar for vishalonne

Hello I am learing Jquery I want to display the Text from select box using the Jquery code. When will I click option from hotel1 then only selected text from hotel1 shall be printed and when I will select any option from hotel2 then only select option from hotel2 shall …

Member Avatar for pritaeas
0
368
Member Avatar for phovasia

Hi All, I am a newbie of 8 weeks enjoying the challange of trying to understand java. I was assigned to create a rather challenging program in which the user is prompted to input a number from 1 to 10,000,000 then the number outputs in english words. For example- please …

Member Avatar for JamesCherrill
0
223
Member Avatar for AmieCutie

I've been working on a CMS built using AJAX and PHP. Pretty much it saves everything to XML files. Everything is working perfectly except getting the root node's attributes to save. These are never brought in to edit, I don't want these visible in the CMS. So what happens when …

Member Avatar for AmieCutie
0
153
Member Avatar for poojavb

Hello Friends, I want to set the length of the textfield in java... Please check my below code....it works finely if I press the keys one by one slowly... But suppose if I press any key for a longer time the actual length exceeds and so the validation is not …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Vaspar

The assignment is to write a computer program that will add 1/3 to itself a large number of times and to compare the result to multiplying 1/3 by the number of times 1/3 was added to itself. It is also to do the same thing with ½.The program is to …

Member Avatar for TrustyTony
0
258
Member Avatar for smichels

Good Day all! Looking for a little help here. I have to open a file containing a few words, some of which ending in "ed" and print the only the words ending in "ed" back to file. Here is what I have so far. I cannot seem to open the …

Member Avatar for Agni
0
582
Member Avatar for Darth Vader

Hi, I have a code that checks if one specific process is running in the TaskManager with the code below. If not the function will start this process. The code I use in a Form_Load event when the application starts. (Working code is below) What I initially wonder is instead …

Member Avatar for ChrisHunter
0
240
Member Avatar for opspl_programme

Hi I need to take one or more files(**.txt** or **.csv** format only), convert them, one at a time and sent them to the printer in **PostScript** format. The paper will be pre-printed and of A4 size. It is perforated in the middle(Portrait orientation). For example, taking a file, A.txt, …

Member Avatar for NanaYee
0
1K
Member Avatar for newbie26

hey..can somebody help me? how can i make this work? one pc has a vb6 application which added a record in the database (mysql) and when he/she had already added a record, a pop up message will show to the another pc that a new record has been added to …

Member Avatar for AndreRet
0
97
Member Avatar for rexdon

on opening xml file with noepadd++ all fields are coming in a single line..Please help me to make it multiple lines <?xml version="1.0" encoding="utf-8"?><clsUserConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><PrjDescValues><string>PrjName</string><string>8</string><string>Project Name</string><string>Creator Name</string><string>Department Name</string><string>xxxxxxxxxxxx</string><string /><string> .</string><string> / /</string><string>CSConfigurator</string><string>ESP9</string></PrjDescValues><HarnessValues><string>HarnessTab</string><string>2</string><string>1044-02-00</string><string>00</string></HarnessValues><MRVRValues><string>MRVRTab</string><string>2</string><string>MR in CSIM</string><string>VR in CSIM</string></MRVRValues><ValvesValues><string>ValvesTab</string><string>13</string><string>LC06</string><string>EvFL</string><string>EvFR</string><string>EvRL</string><string>EvRR</string><string>AvFL</string><string>AvFR</string><string>AvRL</string><string>AvRR</string><string>USV1</string><string>USV2</string><string>HSV1</string><string>HSV2</string></ValvesValues><WssFLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFLValues><WssFRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFRValues><WssRLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRLValues><WssRRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRRValues><LampsValues><string>LampsTab</string><string>38</string><string>80.0</string><string>20.0</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>TCS</string><string>ABS</string><string>INFO</string><string>ESP</string><string>EBD</string><string>PALA</string><string>MFL</string><string>L1</string><string>L2</string><string>L3</string><string>L4</string><string>L5</string></LampsValues><SwitchesValues><string>SwitchesTab</string><string>30</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>Switch 1</string><string>Switch 2</string><string>Switch 3</string><string>Switch 4</string><string>Switch 5</string><string>Switch 6</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string></SwitchesValues><PressureSensorFLValues><string>Not Used</string><string>0</string></PressureSensorFLValues><PressureSensorFRValues><string>Not Used</string><string>0</string></PressureSensorFRValues><PressureSensorRLValues><string>Not Used</string><string>0</string></PressureSensorRLValues><PressureSensorRRValues><string>Not Used</string><string>0</string></PressureSensorRRValues><PressureSensorMBCValues><string>Not Used</string><string>0</string></PressureSensorMBCValues><PressureSensorBC1Values><string>Not Used</string><string>0</string></PressureSensorBC1Values><PressureSensorBC2Values><string>Not Used</string><string>0</string></PressureSensorBC2Values><VacuumSensorValues><string>Not …

Member Avatar for Mike Askew
0
233
Member Avatar for rexdon

While opening my xml file for editting using notepad++,all the fields are coming in a single line. Please help me in making the correct format. <?xml version="1.0" encoding="utf-8"?><clsUserConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><PrjDescValues><string>PrjName</string><string>8</string><string>Project Name</string><string>Creator Name</string><string>Department Name</string><string>xxxxxxxxxxxx</string><string /><string> .</string><string> / /</string><string>CSConfigurator</string><string>ESP9</string></PrjDescValues><HarnessValues><string>HarnessTab</string><string>2</string><string>1044-02-00</string><string>00</string></HarnessValues><MRVRValues><string>MRVRTab</string><string>2</string><string>MR in CSIM</string><string>VR in CSIM</string></MRVRValues><ValvesValues><string>ValvesTab</string><string>13</string><string>LC06</string><string>EvFL</string><string>EvFR</string><string>EvRL</string><string>EvRR</string><string>AvFL</string><string>AvFR</string><string>AvRL</string><string>AvRR</string><string>USV1</string><string>USV2</string><string>HSV1</string><string>HSV2</string></ValvesValues><WssFLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFLValues><WssFRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFRValues><WssRLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRLValues><WssRRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRRValues><LampsValues><string>LampsTab</string><string>38</string><string>80.0</string><string>20.0</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>TCS</string><string>ABS</string><string>INFO</string><string>ESP</string><string>EBD</string><string>PALA</string><string>MFL</string><string>L1</string><string>L2</string><string>L3</string><string>L4</string><string>L5</string></LampsValues><SwitchesValues><string>SwitchesTab</string><string>30</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>Switch 1</string><string>Switch 2</string><string>Switch 3</string><string>Switch 4</string><string>Switch 5</string><string>Switch 6</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string></SwitchesValues><PressureSensorFLValues><string>Not Used</string><string>0</string></PressureSensorFLValues><PressureSensorFRValues><string>Not Used</string><string>0</string></PressureSensorFRValues><PressureSensorRLValues><string>Not Used</string><string>0</string></PressureSensorRLValues><PressureSensorRRValues><string>Not …

Member Avatar for amy2389
0
193
Member Avatar for varma51

gud morning frends i need ur valuable reply..here is my xml data i want to display dis data in the html table..so i need html code for to display dis data in the form of table.. [xml code] <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Edited by XMLSpy® --> <?xml-stylesheet type="text/html" href="j.html"?> <catalogs> …

Member Avatar for varma51
0
266
Member Avatar for BunBean

A text file, grades.txt, contains data pertaining to student grades. Each line consists of: student number,course mark1, course mark2, course mark3, course mark4 The last line contains a student number 0 to indicate the end of the data. Write a C program to print a grade report, as outlined below, …

Member Avatar for Schol-R-LEA
0
418
Member Avatar for ShEeRMiLiTaNt

Hello, I need to wwrite a function that will go through a dynamic character array that the user inputs then take it and delete the repeated characters. My program partially works but it seems as though whenever it deletes a set of repeated characters then it just stops rather than …

Member Avatar for vijayan121
0
2K
Member Avatar for graham.brown.96742

I have created a table for player of the year list for a pool site. Data is entered manually, copied from an .xlsm workbook. Would it be possible to enter some code to check the workbook cells and automatically update the html to show the reflected changes. Also if there …

Member Avatar for graham.brown.96742
0
152
Member Avatar for lokesh.r.kandula

Hi, I have some requirement which is explained below. The input XML is something like: <item> <body> <blocks> <block> <userDefinedFields> <userDefinedField> <fieldLabel>KOBAR</fieldLabel> <fieldDisplayLabel>Global KO</fieldDisplayLabel> <fieldValue>0</fieldValue> <fieldType>numeric</fieldType> </userDefinedField> <userDefinedField> <fieldLabel>KIBAR</fieldLabel> <fieldDisplayLabel>Global KI</fieldDisplayLabel> <fieldValue>50</fieldValue> <fieldType>numeric</fieldType> </userDefinedField> <userDefinedField> <fieldLabel>BSWP</fieldLabel> <fieldDisplayLabel>Global SW</fieldDisplayLabel> <fieldValue>1</fieldValue> <fieldType>integer</fieldType> </userDefinedField> </userDefinedFields> <otherFields> <otherField/> </otherFields> <userDefinedFields> <userDefinedField> <fieldLabel>EXCLN</fieldLabel> <fieldDisplayLabel>Exclude N</fieldDisplayLabel> …

Member Avatar for lokesh.r.kandula
0
160
Member Avatar for Vaspar

OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate …

Member Avatar for Vaspar
0
791
Member Avatar for havish999

I have generated checkboxes dynamically and want to insert into att field in attendance table.. ie when user checks the checkbox P would be inserted and when he does not check A would be inserted.. I am trying out attendance system for students.. here is what i have tried.. <?php …

Member Avatar for Bachu
0
1K
Member Avatar for ryantroop

So I have seen a few widgets around that make use of seemingly custom social media share buttons. Are these buttons made by simply extracting the URL being built from the API? Or is there a better way to do this? The iFrame versions are quite "invasive" and often do …

0
77
Member Avatar for lena1990

hi guys i want your help i want to send email from private company email to yahoo or gmail company using java i will be thankful for any help

Member Avatar for Ezzaral
0
244
Member Avatar for Bubbles26

I'm fairly new to C++ and my professor gave me most of the code to start with. I'm supposed to write a program that uses the add_day(int n) function I wrote in Chrono.cpp. There must be a problem with the **Chrono::Date add_day(int n);** line. Here is the error: hw4pr2.obj : …

Member Avatar for Bubbles26
0
390
Member Avatar for idlackage

I have this: typedef struct { int value; } Thing; void doSomething(Thing *ptr) { ptr = (Thing *)calloc(5, sizeof(Thing)); int i; for(i = 0; i < 5; i++) { scanf("%d", (ptr[i]).value); } } int main() { Thing t; doSomething(&t); } Which crashes at the scanf() line. How should I be …

Member Avatar for rubberman
0
216
Member Avatar for muratsal
Member Avatar for <M/>
0
60
Member Avatar for kanijsharme

I just task with sql related Syntax,using ERP software.How i want to more about sql database?

Member Avatar for <M/>
0
64
Member Avatar for compscihelp

Hi, I need to create a function using **recursion** to find out if two lists have the same shape. For example, if nest1 = [4, [ [3,6], [] ,7] ,[8] ] nest2 = [ [ [3] ] , 7 , [ [5 , [9 , 2] , [ [ [ …

Member Avatar for compscihelp
0
205
Member Avatar for renzlo

Hi, All, I need to check if the date values is valid this current year, for example, February 29, 2012, I have used Isdate function but it says "True", is there any other way to do this? Thanks in advance. renzlo

Member Avatar for Reverend Jim
0
222
Member Avatar for Elixir42

Hi sorry for yet another circular inclusion problem but I need help understanding why I cant add a new class CSprite to my project that inherits CShape. I get an error C2504 base class is undefined. I've tried so many permutations of including files. Also can anyone suggest a neater/efficient/correct …

Member Avatar for Elixir42
0
1K
Member Avatar for Delnith

I am looking to code a small program in which the pandora songs I listen to are placed into a text file with the title and artist. I have no clue where to go as starting this project and would appreicate any and all help. I have mid level knowledge …

Member Avatar for Delnith
0
329
Member Avatar for fcvolunteer

I'm working on a dynamic form where based on a visitor's selection of radio buttons certain <div> text and additional fields are shown or hidden. I would like to make some of these additional fields required but only if they are visible. Problem is: I can read php more than …

Member Avatar for fcvolunteer
0
1K
Member Avatar for rena0514

Ackermann's function is a recursive mathematical algorithm that can be used to test how well a computer performs recursion. Write a function A(m,n) that solves Ackermann's function. Use the following logic in your function: If m=0 then return n+1 If n=0 then return A(m-1,1) Otherwise, return A(m-1, A(m, n-1)) Test …

Member Avatar for guly2010
0
4K
Member Avatar for bloominninja

So im having issues with a sorted list template, heres how I implemented it enum RelationType {LESS, EQUAL, GREATER}; template<class ItemType> struct NodeType { ItemType info; NodeType<ItemType>* next; }; template<class ItemType> class SortedType { public: SortedType(); ~SortedType(); bool IsFull() const; int GetLength() const; void MakeEmpty(); ItemType GetItem(ItemType item, bool& found); …

Member Avatar for bloominninja
0
337
Member Avatar for jtodd

Hey guys. I am trying to move a SQL database from one SQL server to another. One is SQL server 2003 and the destination is running SQL server 2008. Can anyone provide some guidance with this. I have never done this before so any pointers with be greatly appreciated! Thanks!

Member Avatar for tsmorris
0
249
Member Avatar for ShEeRMiLiTaNt

I need to write a program that takes in two big integers from the user and puts them into a dynamic array so that we can add them together. It says to use "paper-and-pencil" mehtod meaning to pretty much reverse the dynamic arrays and carry the ones over as you …

Member Avatar for Agni
0
248
Member Avatar for mbhanley

Hi all I am stuck trying to figure out the best way to get data as at the moment I have tried a few different ways to achieve this with no luck. What I am trying to do is update a block of php code that is in my sidebar …

Member Avatar for mbhanley
0
2K
Member Avatar for anisha.silva

hi, i have an evnt class that reads data from a file. the event file reads data and put it into 2 queues, i for NEW event and other for QUERY events. echs NEW QUERY has a unique identification. TM class has to get the data from the 2 queues …

Member Avatar for anisha.silva
0
97
Member Avatar for echocoder

I have a nested list, named env, created in the constructor and another method to populate an element of the grid defined as below: ... class Environment(object): def __init__(self,rowCount,columnCount): env = [[ None for i in range(columnCount)] for j in range(rowCount) ] return env def addElement(self, row, column): self[row][column] = …

Member Avatar for echocoder
0
1K
Member Avatar for DelilahDemented

My program will process the first and second line of the text file but gets a bit crazy after that. Lines 1, 2, 3, and 5 are supposed to match and line 4 does not. It gets lines 1 and 2 but 3 and 5 are incorrect and it processes …

Member Avatar for DelilahDemented
0
181
Member Avatar for sangi1981

Hi all, I implemented a C program using my mac book. Now, my client wants to migrate to windows OS (MinGW). Program does many calculation using long double: on mac it works fine, otherwise on winz doesn't. I read on internet the problem is that long double type is supposed …

Member Avatar for sangi1981
0
309
Member Avatar for xcarbonx

Hello, As of now I am trying to read in a text file that is tab delimited with uneven columns. My problem is that when I try to split the file into respective lines, I get an "out of array bound" error. I know this is due to have a …

Member Avatar for xcarbonx
0
333
Member Avatar for DavdPrez

well I've this little homework. "Given a text file, create a function that search an specific ID provided by the user inside the file, If exits, print the entire profile as follow: ID_genre_name_age_height" So In the text file there is only one profile. 19800372_male_David_19_1.75 so, my function should print that …

Member Avatar for DavdPrez
0
2K

The End.