- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 38
- Posts with Downvotes
- 18
- Downvoting Members
- 20
65 Posted Topics
hey how to clear the screen in c++ i m using dev c++. clrscr()doesnot work | |
hey m making a website which use to tel the daily report. there are many other functionalities as well. i have three tables concerned with this problem 1. shift 2. molding section 3. intermediate store on the basis of date and shift num, shift ids are assigned now i want … | |
m geting an unexpected error in my code plz tel me where am i wrng my code because i have wriiten mysql_num_rows many time [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $slip_no=$_POST['slip_id']; $query="SELECT * FROM `slip` WHERE slip_id='$slip_no'"; $result=mysql_query($query); if ($result) { $query1= "UPDATE `slip` SET status='accepted' WHERE slip_id='$slip_no'"; $result1= mysql_query($query1); if($result1) … | |
hi n working with a code but m facing a problem of undefined index. i have seen it occurs due to unavailablity of data or like that but here i m declaring that data jst before its use. rest of variable are working correctly just SESS_dept is giving error plz … | |
hi m using php n mysql m trying to merge two tables of same database and then print them but somehow it is not working it gives me the error my code is [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $date= $_POST['date']; $shift_num=$_POST['num']; $query="SELECT shift_id FROM shift WHERE shift_no='$shift_num' AND date='$date'"; $result=mysql_query($query); … | |
hi m facing same problem from 2,3 days i m too confused now. i m making an application. when i take data from from dont know why it doesnot reach the other page as print_r($_POST) is empty my code of both files are" [CODE]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); ?> <!DOCTYPE html PUBLIC … | |
hi i m writing a program it is workng fine but doesnot update my database it gives me error since there are 4 query how can i know which one is wrong my part of program is: [CODE] $query2="SELECT * FROM rpms WHERE product_name='$raw_material1'"; $result2=mysql_query($query2) or die(mysql_error()); if ($result2) { … | |
hi i am making a program in php. it actualy involves two tables from database one is order and other product_details i want that when i select a order i get its product and quantity and respective to that product i find quantity of first raw material reqruired. and then … | |
hi m writing a program n storing a values in session but one of them i.e of prie is not working . can any1 tel where m i wrong [CODE] $name=$_POST['P_list']; $quantity=$_POST['quantity']; $query= "SELECT product_name, unit_price FROM product WHERE product_name='$name'"; $result=mysql_query($query); if ($result) { if (mysql_num_rows($result)==1) { $orders = mysql_fetch_assoc($result); … | |
Re: is 'register' a variable name? if yes then u can also do [CODE]register-$_POST['register'];[/CODE] but looking a ur code i think its the name of form if i m not wrong | |
hi m write a program to get the values from the form and storing them in database but its giving me error of undefined index for all variables . my code is [CODE]<?php session_start(); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); $name=($_POST['name']); $type=($_POST['type']); $color=($_POST['color']); $unit_price=($_POST['price']); $size=($_POST['size']); $id=($_POST['id']); $query="INSERT INTO product (product_id, product_name, type, color, unit_price, … | |
hi i am writing a program which take the value from form and then execute a error "failed" each time. which means there is some error in my query but i cant find the problem. here is the code [CODE]<?php session_start(); //print_r($_POST); $name=$_SESSION['SESS_CUSTOMER_ID']; $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); $product_id=$_POST['P_list']; echo "$product_id"; $quantity=$_POST['quantity']; $query= … | |
hi m making a program n i want that when i want to add update a stock it get the name of product from data base and show it in drop down list so that i can select one of them which i want to update. my code for that … | |
hi i m a beginner. m student of mcs n making a project. its about a brush manufacturing company. i have GUI of my software. and also database of it. but don't have any idea what to do next? can any1 guide me please. i m using wamp server. | |
hey can any1 tel me the eror in my code part of code where problem lies is [CODE] if($result) { if (mysql_num_rows($result)==1) { session_regenerate_id(); $employee = mysql_fetch_assoc($result); $_SESSION['SESS_EMP_ID'] = $employee['employee_id']; $_SESSION['SESS_NAME'] = $employee['employee_name']; $_SESSION['SESS__dept']=$employee['department_id']; $_SESSION['SESS_rank']=$employee['rank']; session_write_close(); if ($_SESSION['SESS_rank']==$employee.rank("admin") { header("location: administrator.php"); exit(); } elseif($_SESSION['rank']==$employee.rank("shift incharge") { header ("location: Shift_incharge.php"); exit(); … | |
hi i have made a html page in which i have a drop down list whose code is [CODE]<p>Please select the product you want to add <label> <select name="menu1" onchange="MM_jumpMenu('parent',this,0)"> <option>Nylon Blisters</option> <option>PP plastic</option> </select> </label> </p>[/CODE] Now my main aim is that when a certain product is added and … | |
hi i want to make a page for the user to take the orders from the user. i want that user select one product from the drop down list then select its size and then color. then submit it. this data about first product appears in the table then he … | |
can any1 tell me wats wrong in my code i cannt change my password using this code [CODE]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); if (!$con) { die('Could not connect: ' . mysql_error()); } $username = $_POST['username']; $password = $_POST['password']; $newpassword = $_POST['newpassword']; $confirmnewpassword = $_POST['confirmnewpassword']; $result = mysql_query("SELECT password FROM customer WHERE username='$username'"); … | |
Re: check this code for email validtion. it works. [CODE] function valid_domain_part($domain_part) { if(preg_match("/[^a-zA-Z0-9@#\[\].]/", $domain_part)) { return false; } elseif(preg_match("/[@]/", $domain_part) && preg_match("/[#]/", $domain_part)) { return false; } elseif(preg_match("/[\[]/", $domain_part) || preg_match("/[\]]/", $domain_part)) { $dot_pos = strrpos($domain_part, "."); if(($dot_pos < strrpos($domain_part, "]")) || (strrpos($domain_part, "]") < strrpos($domain_part, "["))) { return true; … | |
hey m making a project n m stuck n a problem. there are different employees that can login. i have employee table in database but am confused that how can i assign each employye the url that which page page will open when a certain employee logs in. | |
i want to increase the size of the column [CODE]ALTER TABLE employee ALTER COLUMN department_name VARCHAR(50)[/CODE] | |
hey m making a projec in one of its page i want to get the data from the table and display it on screen in the form of table. allthough the data appears but how can i display the headings. [CODE] $num=mysql_num_rows($result); print "<table width=600 border=1>\n"; while ($get_info = mysql_fetch_row($result)) … | |
hey can i transfer pictures through sockets through php? how can i do it if its posible.i want to send n receive pictures | |
hi m making aregisteration form for employees. n validate its some very basic field. but the problem is that if i enter wrong it shows me the error and says click here to refill as told by me but when i enter the correct data even then it shows click … | |
hey. can i transfer pictures through sockets using c++? how can i do it if its posible. | |
hi m trying to make a login page. m trying that when username and password is confirmed it shows name of customer with welcome message and further page appears accordingly. this is my code for login GUI [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- DW6 --> … | |
hi m trying to make a registeration form. i have made it and trying to validate it. m new comer so dont have much knowlege so having problems in validating form. i have three files one is registeration form. other is geting value from form and storing it in database … | |
i m making a BMI calculator GUI which calcuates weight in corresponding to height shown on slider but there is some error in program. problem lies in following line [CODE] int value = slider.getValue(); int weight=0; if (if buttonGroup.getSelected()=="Male") { weight=value/28; } else if (buttonGroup.getSelected()==Female) { weight=value/30; } System.out.println("weight");[/CODE] | |
hey i have written this code to make a GUI but it compile correctly but gives error at run time. the error is exception in thread main "java.lang.NullpointerException" at GUI.intGUI(GUI.java:22) at GUI.(init)(GUI.java :75) at GUI.main (GUI.java:79) the code is [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GUI { JFrame … | |
i have jst started programing in java m beginer. m making gui which contains a two radio button a slider and a text message. although its compiling coreectly but it doesnot display any thing [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GUI { JFrame frame; JLabel coord; JRadioButton Man=new … ![]() | |
i m a begginer m making a GUI which consist of a slider and 2 radio button and a text message. i have not added the functionality in it yet. but its not displaying GUI it completes successfuly but at runing time it gives error Exception in thread "main" java.lang.IllegalArgumentException: … | |
hi m going to develop a web application for a brush manufacturing factory.m in design phase now. but as i m a beginner i dont have much knowlege about language to be used in that. can any one help me which language should i learn . php or java?? | |
hi i have made a program to find average and standard deviation. n it read input from other. rest of things are fine plz guide me my output for Standard deiation sD comes NaN. i have searched alot bt couldnot find solution my code is [CODE]import java.io.*; import java.util.*; public … | |
m a begineer of java programing plz tel me wats wrong in my program. [CODE]// my first program public class HelloWorld { public static void main(String[] args) { System.out.printIn("Hello World"); } }[/CODE] it shows the error cannot find symbol. symbol:method PrintIn(java.lang.string) location: class java.io.printstream system.out.printIn("helloWorld") 1 error | |
hi i m bachelor student i want to know about different methodologies used to develop certain software. i know little about waterflow process model, spiral process model, V process model. i know the name of object oriented model bt dont have any knowlegde about that. i m trying to develop … | |
plz can any1 chk my program for errors[CODE]public class MinHeap{ private int size=100; private int list[]=new int[size]; private int currentSize=0; public boolean isFull(){ if(currentSize==size) return true; return false; } public boolean isEmpty(){ if(currentSize==0) return true; return false; } public void insert(int val){ int current,parent,temp; if(isFull()) System.out.println("Heap is full"); else{ list[++currentSize]=val; … | |
plz help me in my algorithm to first enter data in array then making a min heap out of it [CODE]#include <iostream> #include <stdlib> using namespace std; class Heap { int currentsize; int *array; int capacity; void heapsort(int[],int); public: void buildheap(); void isempty(); void isfull(); int getsize(); } main() { … | |
what r sum applications of very common microprocessors and microcontrollers that uses assembly language as its basic or core language | |
plz chk my code to do currency conversion # include <iostream.h> # include <conio.h> main () { cout<<"Wellcome To VU Money changer"; cout<<"\n"; // data type initillizing char con,coninto,op; float amount; do { //discription print message on consol what program contains cout<<"Please select currencies that you want to Exchange :"<<endl; … | |
plz chk[CODE]#include <iostream> using namespace std; main() { int a; int b; cin >>a; cin >>b; int i; for(i=1; int<=b;i=i+1) { cout <<a<<"*"<<i<<"="<<a*i; } } [/CODE] | |
“Although for consistent and reusable design we follow Object Oriented paradigms; “structured approach” has still its worth in some imperative and critical applications. Support or contradict this statement with solid arguments. | |
plz chk my code i m having error at line 35 and 36[CODE]#include <iostream> #include <cstring> using namespace std; class strng { char s[30]; public: strng() { strcpy(s,""); } string getstring() { cout<<"enter the sting:"; cin>>s; return s; } void displaystring() { cout <<"the string is:"<<s<<endl; } const strng &operator+= … | |
plz guide me i m having some error at line 28[CODE]#include <iostream> using namespace std; class str { char s[30]; public: str() { strcpy(s,""); } string getstring() { cout<<"enter the sting:"; cin>>s; return s; } void displaystring() { cout <<"the string is:"<<s<<endl; } string operator+= (string &t) { strcat(s,s.t); return … | |
plz chk i want to overload compound assignment operator bt its gving me some error[CODE]#include <iostream> using namespace std; class strng { char s[30]; public: strng() { strcpy(s,""); } void getstring() { cout<<"enter the sting:"; cin>>s; } void displaystring() { cout <<"the string is:"<<s<<endl; } string operator +=(string &t); }; … | |
Although for consistent and reusable design we follow Object Oriented paradigms; “structured approach” has still its worth in some imperative and critical application. wat do u people say about this | |
plz chk my code its giving error at line 45,49.also does it satisfies the requirement Problem Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum … | |
please chk my code. it works well but is its logic correct? Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum speed of the Train … ![]() | |
The End.