427 Topics

Member Avatar for
Member Avatar for mizShaid

how to program that allow user to search, delete existing data, insert new data, sort the data and display the data

Member Avatar for Moschops
0
57
Member Avatar for Shaikh_1

I m trying insert multiple rows in same database (each row had many fields) on submit but unable to do so. I m successfully able to insert single row but when it comes for multiple rows I got stuck. This is the jsp page where you take an input to …

Member Avatar for Shaikh_1
0
5K
Member Avatar for alagez

Hi there, I am bit confused about this. I am doing assignment on neuron analysis by using python neurolab. Hidden layer Architecture 1 [9-1-1] // 9=input nodes 1=hidden nodes 1=output 1 [9-2-1] // 9="" 2=hidden nodes 1=output 1 [9-3-1] 1 [9-4-1] 1 [9-5-1] 1 [9-6-1] from the description above. I …

0
118
Member Avatar for malatamil

if i insert more than one its taken only one value.database field city_id type is int $city=intval($_GET['city']); $query="SELECT `city_id`, `city` FROM `cities` WHERE `state_id`='$city'"; $result=mysql_query($query); while($row=mysql_fetch_array($result)) { ?> <li> <input type="checkbox" name="place[]" value="<?=$row['city_id']?>" /><span><?=$row['city']?></span> </li> <? } ?> $ids = array(); foreach($_POST['place'] as $val) { $ids[] = (int) $val; } …

Member Avatar for malatamil
0
19K
Member Avatar for fedaa91

Hello I made a web page that needs the user to insert some info in text boxes and then submit them . I want to ask about how can i insert as an option to drop down list once i enter the textbox value by the user like this NAME …

Member Avatar for fedaa91
0
1K
Member Avatar for london-G

Hello, There is a question which I don't really quite understand. Can someone explain the answer to me? I get the first part: the declaration of the "function" however the rest of it I am quite confused. Variables do not need to be declared for this type of exercise. Insert …

Member Avatar for Hiroshe
0
284
Member Avatar for nadiam

hi guys so this page where part of the form elements are made arrays by adding square brackets to the input names. the reason i did that is because that part of the form is handled in jquery [this post(my post about jquery)](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/478800/show-form-elements-based-on-dropdown-value) if you take a glimpse will understand …

Member Avatar for diafol
0
275
Member Avatar for sagisgirl

Hi all, I've a problem with my insert sql..I didn'y know why. here is my insert sql $goodsDesc = $_POST['goodsDesc']; $k8goodsQty = $_POST['k8goodsQty']; $valuePerUnit = $_POST['valuePerUnit']; $sql_k8goodsIn = "INSERT INTO k8_goodsin (k8regID,goodsDesc,k8goodsQty,valuePerUnit) VALUES ( '".$k8regID."', '".addslashes(strtoupper($goodsDesc[$y]))."', '".$k8goodsQty[$y]."', '".$valuePerUnit[$y]."')"; for goodsDesc the input is like this goodsDesc = 2-1/2" suction pump …

Member Avatar for diafol
0
315
Member Avatar for riahc3

I have a bunch of insert querys running and some of them fail with a duplciate entry. I want to see a log where it says "Error: Duplicate key" and that tells me the EXACT INSERT query that fails so I can see what keys are duplicated. Thanks

Member Avatar for Kyle Wiering
0
300
Member Avatar for kingwash

I have three fields in the database table(**serial_no,arrive_date,written_date**).My problem is if **serial_no and arrive_date** already exist in the database, it show say"data already exist". Though **serial_no and arrive_date** already exist but with a different **written_date**, then the data should be inserted into the database. Example ID Serial_no Arrive_date Written_date 1 …

Member Avatar for diafol
0
162
Member Avatar for TheFearful

I am trying to create a 2-3 tree using an insert function and I am stuck beyond this point. I am able to get the first node with the small and large value, but I do not know what do to from here. Any advice/tips? #include <iostream> using namespace std; …

0
92
Member Avatar for aswinmc

i want the whole excel file has to open in web page n moreover have to enter some input and will hv to **insert/update** based on formulae cells. Is thr any chance to achieve this?

Member Avatar for geniusvishal
0
86
Member Avatar for Shreyas_1

I have two different format of code for insert query using jsp+servlet+mysql. Code-1 ====== Class.forName(JDBC_DRIVER); // Open a connection out.println("Connecting to a selected database..."); con = DriverManager.getConnection(DB_URL, USER, PASSWORD); out.println("Connected database successfully..."); // Execute a query st = con.createStatement(); sql = "insert into users (name,email,password) values ('" + name + …

Member Avatar for stultuske
0
2K
Member Avatar for sgdesain

before i have a code like this echo '<hr /> <h2> Chat Log</h2> <div class="chatWindow">'; foreach ($replay->chat as $content) { $prev_time = $content['time']; echo('('.convert_time($content['time'])); if (isset($content['mode']) && isset($colors[$content['mode']]) && isset($names[$content['mode']])) { if (is_int($content['mode'])) { echo(' / '.($content['mode'] == 0x01 ? "Allied" : "")); } else { echo(' / '.$content['mode']); } …

0
101
Member Avatar for amit.chaudhari.71

dear friend i want to insert a row in orecal which is insert into employee ('AMIT D'SOZA', 'MANAGER','500') thorugth php but there is problem to insert data like 'AMIT D'SOZA' so i want to restrict "'" (singal quets ) to enter in text fields plz help me if you have …

Member Avatar for rtrethewey
0
160
Member Avatar for CarterLangley

Hi guys, Got a problem uploading an image to a directory and then including that directory location into the database so that I can display the image. Here is the code I have so far. <div id="main_right"> <?php if ($picture) { ?> <img src="<?php echo "../images/teacher_photo/" . $picture ?>" alt="<?php …

Member Avatar for pritaeas
0
238
Member Avatar for Shantanu88d

whenever i delete, insert or update my datasource, gridview does not refresh. However, when i manually refresh my page, then it does. How to make it such a way that it refreshes by it's own whenever I insert,delete or update anything from my datasource. [B]P.s[/B]: DataBind() method is not working

Member Avatar for naimerkallis
0
6K
Member Avatar for riahc3

I have a bunch of insert querys running and some of them fail with a duplciate entry. I want to see a log where it says "Error: Duplicate key" and that tells me the EXACT INSERT query that fails so I can see what keys are duplicated. Thanks

Member Avatar for diafol
0
260
Member Avatar for Bader100

Hi all, Hi i have got a problem with the system i am creating on VB using Microsft Access. I have this error that keeps coming up when I debug my system. I am trying to add data in the database. I cant seem to find the solution to this …

Member Avatar for Reverend Jim
0
1K
Member Avatar for riahc3

I insert something simple like insert into table(pri1,pri2,value) values (1,1,1); insert into table(pri1,pri2,value) values (1,2,1); And in MySQL 5.6 they show up as: pri1 pri2 value 1 1 1 1 2 1 BUT In MySQL 5.1 I do the same thing and they show up as: pri1 pri2 value 1 …

Member Avatar for riahc3
0
479
Member Avatar for nadiam

hey guys so im trying to insert data from my contact form into database depending on radio button. as u can c i have 2 radio button both under "spouse ?" and another under "child ?" now when user clicks on "yes" another form pops up for each title respectively(form …

Member Avatar for pzuurveen
0
591
Member Avatar for Maideen

Hi I have one issue. I do not know how to solve and also no idea. It is my scenario. I have Product table with details,selling price, purchase price and so on. I want to invoice to clients. Clients can buy lots of item in single invoice. If I select …

Member Avatar for diafol
0
294
Member Avatar for MaidaKhan

The insert function int the arrayList is not working...d[count] = v is giving garbage.I am unable to find the problem.Can anybody please help. class ArrayList { private: int count; int *d; public: ArrayList(int size=2) { d=new int[size]; count = 0; } void insert (int r) { d[count] = r; count++; …

Member Avatar for iamthwee
0
118
Member Avatar for MaidaKhan

This fuction of insert in descending order is not working.Can't find the problem.Can anyone help? class LinkedList { private: class ListNode { public: int data; ListNode *next; ListNode(int d) { data=d; next = NULL; } }; ListNode *head; public: LinkedList() { head=NULL; } void Inorder(int d) { ListNode *tmp = …

1
89
Member Avatar for mmm123

Hi was wondering if anyone could take a look at my code and see whats going wrong here because I have changed the code about 20 times trying to fix the error and still no luck. I have created a web page that the user must fill out, I then …

Member Avatar for Sulaiman_1
0
3K
Member Avatar for joseph.lyons.754

Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks …

Member Avatar for GliderPilot
0
261
Member Avatar for nileshbhanu

<?php $host = "localhost"; $user = "root"; $pass = ""; $databaseName = "foresight"; $tableName = "userinfo"; $con = mysql_connect($host,$user,$pass); $dbs = mysql_select_db($databaseName, $con); $result = mysql_query("SELECT * FROM $tableName where flag != 1"); //query $email = mysql_fetch_row($result); mysql_close(); //fetch result ?> <? $host = '192.232.240.245'; $user = 'root'; $pass = …

Member Avatar for diafol
0
200
Member Avatar for Maideen

hi I am new in php. I could not insert the data into mysql table. and there is no error prompt Below is my code. Pls help me <?php include_once '../inc/header.php'; if (isset($_POST['submit']) && $_POST['submit'] != "" ) { $name = $_POST["name"]; $address = $_POST["address"]; $tel = $_POST["tel"]; $fax = …

Member Avatar for Maideen
0
133
Member Avatar for tundewoods

I am trying to code a mysql query that will enable me select and insert multiple vaules from one table to another table in the same mysql database. I want to automatically populate the values from my id,levy from my tb_residents into table 2 resident_payments uid , rate . I …

Member Avatar for pritaeas
0
373
Member Avatar for adebayo.sas

Hi, I am trying to insert data into 3 tables using mysql.. At first, I was able to insert in the first table (staffinfo), after coding for the second table insert (empinfo), It inserted into second table without inserting in first table AND finally it echoes 1 record added Successfully …

Member Avatar for GliderPilot
0
2K

The End.