199,114 Archived Topics
Remove Filter ![]() | |
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'] = … | |
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 … | |
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 … | |
// #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" << … | |
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 … | |
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(); } … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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> … | |
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, … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 | |
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 : … | |
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 … | |
hi, Can we do game site with joomla like game4mania thanks advance! | |
I just task with sql related Syntax,using ERP software.How i want to more about sql database? | |
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] , [ [ [ … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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! | |
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 … | |
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 … | |
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 … | |
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] = … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.