427 Topics

Member Avatar for
Member Avatar for mbowenitj

I need help in fixing this bug (Data type mismatch).Im using a datagrid to insert data to access database but get this error. I can update and delete during runtime but I cant insert data to database. Following is my code: Try conn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Video Store\Video Store\DvDSystem.mdb") conn.Open() …

Member Avatar for mbowenitj
0
256
Member Avatar for Nikhil_4

This code was to create a simple database with a table and add records with the following. toIm having trouble with the 'id' auto_increment. <?php $con=mysqli_connect("localhost","root","distortion","my_databs"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // Create table $sql="CREATE TABLE empl(ID INT NOT …

Member Avatar for andrevanzuydam
0
4K
Member Avatar for sonakrish

[code=sql]insert into desg values(" & Val(txtsno.Text) & ",'" & Trim(txtdesg.Text) & "'," & Val(txtbasic.Text) & ");[/code] this how i used for inserting data to my access table in vb code. how to do in c#?

Member Avatar for sachin.ghute3
0
300
Member Avatar for Learner010

i want to insert text in textbox at specific location(i.e row 2 column 3).how can i do that ? i tried this but its not working `Me.RichTextBox1.Text = Me.RichTextBox1.Text.Insert(i, CChar(cb.Text))`

Member Avatar for Reverend Jim
0
411
Member Avatar for Castellar

I have following code: # -*- coding: utf-8 -*- forbiddenWords=['for', 'and', 'nor', 'but', 'or', 'yet', 'so', 'not', 'a', 'the', 'an', 'of', 'in', 'to', 'for', 'with', 'on', 'at', 'from', 'by', 'about', 'as'] def clear_screen(): button2.destroy() button3.destroy() text.destroy() label.destroy() def main_page(): var = StringVar() global label label = Label( root, textvariable=var) var.set("Fill …

0
173
Member Avatar for rjusman90

if(isset($_GET['Id'])){ $Id=$_GET['Id']; $query = mysql_query("SELECT * FROM page WHERE ID='$Id'"); $row = mysql_fetch_array($query); $PageId=$row['PageId']; $MenuName=$row['MenuName']; $ParentMenuId=$row['ParentMenuId']; $LinkWidth=$row['LinkWidth']; $OtherUrl=$row['OtherUrl']; $Status1=$row['Status']; $OnMainMenu=$row['OnMainMenu']; $FooterMenu=$row['FooterMenu']; } ?> <form style="width:100%" action="" method="post" id="form1"> <table class="viewjob" align="center" > <tr class="tableheader"> <td align="center" colspan="4"> Update </td> </tr> <tr class="tablerow"> <td>Page Id</td> <td><select name='PageId' class="select"> <option value='0' >select …

Member Avatar for pzuurveen
0
216
Member Avatar for Jing_1

Hi all, i encounter an syntax error "Syntax Error in Insert Into" when i try to run this code... anyone can assist? Thanks! Dim sConnectionString As String sConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=H:\Users\Desktop\EmployeeAway2.xlsx;Extended Properties=""Excel 12.0;HDR=YES;""" Dim objConn As New System.Data.OleDb.OleDbConnection(sConnectionString) objConn.Open() Dim objCmd As New System.Data.OleDb.OleDbCommand() objCmd.Connection = objConn …

Member Avatar for Jing_1
0
348
Member Avatar for widygui

Hi Everyone. I got a problem when I want to input data into my second row. whenever i try to insert data,the data always appeared in the row. here's my code... private void btnTambahStock_Click(object sender, EventArgs e) { int i = 0, j = 0, k = 0, l = …

Member Avatar for Daemon_CC
0
199
Member Avatar for Angellore_1

Good Day. Call me Angel. I'm havng trouble with **Live Edit Table**. Appears not to be working for me. I have this system. A small rental system actually, that would save the details for the rented properties. Here's the actual table: <img src="https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10314749_882248248457445_2787632760191268129_n.jpg"> (other columns are trimmed) The admin has …

Member Avatar for Angellore_1
0
209
Member Avatar for rjusman90

<tr class="tablerow"> <td>Page Id</td> <td><select name='PageId' class="select"> <option value='0' >select any page</option> <?php $sql10 = "SELECT Id,Title FROM abc"; $rs = mysql_query($sql10) or die(mysql_error()); while($row = mysql_fetch_array($rs)){ echo "<option value='".$row["Id"]."'>".$row["Title"]."</option>"; } mysql_free_result($rs); ?> this done show all title from table but when i update form i want that the tile …

Member Avatar for shophiarajan47
0
207
Member Avatar for dlunge
Member Avatar for mexabet

My script has a two bugs, which I've been unable to fix. So, I need your help. Here is the file: <?php // configuration require("../includes/config.php"); // check if form was submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // type of transaction - for tracking history $transaction = 'SELL'; // validate submission …

Member Avatar for mexabet
0
308
Member Avatar for Verygoodguy

I have created a table in sql server, an insert stored procedure, a aspnet webform with 5 text boxes to edit the parameter values, a label to display the output identity value from scope identity and another label to display the inserted or not inserted report from the execution of …

Member Avatar for sheejo.apsalone
0
3K
Member Avatar for gogs85

How to insert image name in database and image store in folder image with move_uploaded_file usign PDO: this is my query: $stmt = $db->prepare('INSERT INTO blog_posts_seo (postTitle,postSlug,image,postDesc,postCont,postDate) VALUES (:postTitle, :postSlug, $filename, :postDesc, :postCont, :postDate)') ; $stmt->execute(array( ':postTitle' => $postTitle, ':postSlug' => $postSlug, '$filename' => $image, ':postDesc' => $postDesc, ':postCont' => …

Member Avatar for pritaeas
0
230
Member Avatar for nadiam

hey guys, so i'm trying to insert data from one table to another. table 1: |event_id|event_name|start|end|event_venue| table 2: |guest_id|guest_name|event_id|event_name| $event = mysql_query("INSERT INTO event VALUES('','$name','$dstart $tstart','$dend $tend','$venue')"); $insertg = mysql_query("INSERT INTO guest(event_id, event_name) SELECT event_id, event_name, FROM `event` WHERE `event_name` = `$name` "); i get : > Column count doesn't …

Member Avatar for guruparthi
0
2K
Member Avatar for gola420

Hi,im trying to insert into table student_acedamic_history but I get this error.Heres my code. CREATE TABLE Student_Acedamic_History( S_id INT, Degree_Title VARCHAR(30), Institue VARCHAR(30), Year_Of_Comp INT, Total_Marks INT, Obtained_Marks INT, PercentAge FLOAT, CONSTRAINT fk_S_id_students FOREIGN KEY student_acedamic_history(S_id)REFERENCES students (S_id)ON UPDATE CASCADE ON DELETE CASCADE ); And the data: INSERT INTO student_acedamic_history …

Member Avatar for hericles
0
216
Member Avatar for Blueie

Hello I have started my first ever VS Web page today and have two pages open in the software: Register1.aspx and Web.config. I am hoping to devise a simple 'new user registration form' with three fields: username, password, and email. When the 'submit' button is clicked, those three fields should …

Member Avatar for Blueie
0
293
Member Avatar for jj.dcruz

Im having a problem using foreach i cant seem to understand this yet. my problem is when i enter all the data needed it shows many inserting code I cant seem to figure this out This is the Output INSERT INTO `dependents`(`d_name`, `d_age`) VALUES (1,1) INSERT INTO `dependents`(`d_name`, `d_age`) VALUES …

Member Avatar for arunmagar
0
460
Member Avatar for gharris55

I was trying to figure out how to insert pictures into Java, but as music in the background plays, the pictures alternate. It would be really great if someone could include the music code too. Thanks for any help in advance.

Member Avatar for gharris55
0
211
Member Avatar for theashman88
Member Avatar for tinstaafl
0
110
Member Avatar for lifeworks

Hi quite a simple question i hope, i want to include a couple of checkboxes in my form and if they are checked i'd like to set the appropriate db cell as true... should i be looking at something like? [quote] if(chkbox_name == 'checked') { $cdplayer = true; } ... …

Member Avatar for bilalbinamar
0
6K
Member Avatar for nadiam

Hey guys, so im wondering if theres a way to insert 2 input values into one column in PDO? coz in mysql_* i just did something like this and it worked: INSERT INTO tablename VALUES ('input1 input 2', 'input3'); pdo i tried : $event = $dbh->prepare("INSERT INTO event(event_name,start_event,end_event,event_venue) VALUES('$name', CONCAT_WS('$dstart', …

Member Avatar for hericles
0
275
Member Avatar for boka123

The program should insert a node that is a sum of next 2 nodes stdin: 2->7->4->9; stdout: 2->11->7->13->4->9; The program returns a segmentation fault,I'm not sure what seems to be the problem. void insert(Node * list){ if (list==NULL) { return; } for(; (list->next->next)!=NULL ; list=list->next){ Node* new=(Node*)malloc(sizeof(Node)); if(new == NULL) …

Member Avatar for Akash_Soni
0
168
Member Avatar for jj.dcruz

how do i insert the textboxes with different data inside of them in one database table i have this code dunno what to do next Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click Dim sql As String Dim totcount As Integer = 0 Dim inc As …

Member Avatar for jj.dcruz
0
191
Member Avatar for kieky

Hi all..i have some trouble to insert data into 2 table.. i use asp.net with C# language..this is my table : DOCUMENT id_document name description VERSI Id_versi Id_document url_file size type modifiedon relationship of document and versi is one to many.. this is my code, but i cant store anything.. …

Member Avatar for arunkumars
0
275
Member Avatar for hiiiiii@

hi i want to insert date through mysql query <?php require_once('auth.php'); require_once('connection/config.php'); //Connect to mysql server $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } //Select database $db = mysql_select_db(DB_DATABASE); if(!$db) { die("Unable to select database"); } ?> <form method ="post" action =""> …

Member Avatar for hiiiiii@
0
199
Member Avatar for poshka

It is the student_info table CREATE TABLE student_info ( s_id varchar(50) NOT NULL, c_id varchar(50) , sem_no varchar(50), quiz_mark varchar(50) , att_mark varchar(50), total_mark varchar(50), exam_mark varchar(50), grade varchar(50), ); insert into student_info values('0006','chem1115','1','15','9',' ','59 ',' '); insert into student_info values('0006','cse101','1','15','9',' ','70 ',' '); insert into student_info values('0006','cse111','1','15','9',' ','49 ',' …

Member Avatar for jstfsklh211
0
152
Member Avatar for jitusorout

I want to take students attendance. i had made a page attendance.php This is coding part <?php $report = mysql_query("SELECT id, name, rollno FROM registered_members") or die(mysql_error()); ?> <form action="attendinsert.php" method="post"> <table id = "attendance" width="567" border="1 bold"> <tr> <th width="83" scope="col">ID</th> <th width="83" scope="col">Student Name</th> <th width="55" scope="col">Student Roll.No</th> …

Member Avatar for diafol
0
1K
Member Avatar for Nebil

I've a problem in getting a record from 3 tables: There are two conditions for getting the records,'project number' and 'current month'.I used this statement to get the records but it results in 3 times the actual record. Any help would be appreciated. "INSERT INTO patempTable SELECT [pay_roll].[project number],[pay_roll].[employee number],[pay_roll].[current …

Member Avatar for Eng.William
0
211
Member Avatar for nickkipr

package dmaze2; import java.awt.Dimension; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class Dmaze2 extends JPanel { JTable jt; ImageIcon Icon = new ImageIcon("x.png"); JTable imagelabel = new JTable(Icon); public Dmaze2() { Object[] columns = {"1","2","3","4","5","6","7","8"}; Object[][] table={{"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","o","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}}; …

Member Avatar for mKorbel
0
235

The End.