427 Topics
|
|
I tried to insert data using the following code, but I really I don't know how can I get result and what is the problem in my code, I tried to build firstly my form then I write the insert query and send it to a new form , any … |
|
In this assignment, I am having to insert user information to tables that we have created and I am having this error that keeps on telling me " Code No: 80040e14 Code Message: IDispatch error #3092 Error Source: Microsoft OLE DB Provider for SQL Server Error Description: The name 'Br' … |
|
I have a bunch of drop down boxes, then after they are selected the the total amount automatically appears at the bottom.. the only problem is it appeears like this - <span id="resp">Total</span> How would I make this insert into the database? |
|
Hey evryone. For some reason, I can't seem to insert anything into this table that I have in a database It connects just fine and the variables that I'm retrieving are just fine, which leads me to believe that my INSERT statement is incorrect. Any ideas? Here's the code: function … |
|
Hi, I'm trying to upload multiple image to folder and insert the image information into a database. I have been successful in being able to upload the images to the folder (thanks to a tutorial online) but when I try to add the code to insert the image information to … |
|
How can i insert data from access file into listview in C#? Thanks |
|
Hi, Im trying to insert to a table in sql that is related to another by a foreign key. The first table has an ID, a suppliers id and a date; and the other table has an ID (that for some records should have the same id from the other … |
|
I'm getting an error when I run this. I'm sure it's simple. Any thoughts? Code: mysql_query("INSERT INTO leads `facility` = '{$facility}' , `leadAdded` = '{$today}' , `updatedBy` = '{$username}' , `manager` = '{$username}' , `name` = '{$_POST['name']}' , etc... ") or die(mysql_error()); Error: "You have an error in your SQL … |
|
Hello xD First : Im new to c# stuff Im having some windows form app. I read data from datagridview(iv puted in from table..works fine) and i should write it to table in database.. My insert statment doesnt do nothing.. private void button3_Click(object sender, EventArgs e) { int amorplanid = … |
|
#include <iostream> #include <vector> #include <iterator> using namespace std; class members { private: int Age; int Money; public: void setAge(int age) {Age=age;} void setMoney(int money) {Money=money;} int getAge()const {return Age;} int getMoney()const {return Money;} members(int age=0,int money=0): Age(age),Money(money) {} }; int main() { vector<members>v_members; for(size_t i=0,z=0;i<10;++i,++z) { if(z!=5) { v_members.push_back(members(50,70)); … |
|
Hello guys! I wan't to know how to make this: http://img254.imageshack.us/img254/2629/howt.jpg I made a code that creates a new txt file and "Adds a New Line at the Bottom", but i don't know how to make a code that adds a new line in a specific area, like that in … |
|
How to replace local file path to insert url link [download.php](https://github.com/apps-vn/download.php/blob/9ffc7c80efe57ad8d29f10897f04155c463778e3/.gitignore) // Free Downloads if (isset($_GET['free'])) { $row = $android->getFreeDownload($_GET['free']); if ($row) { $fname = basename($row['filename']); $file_path = ''; $android->fetchFile(BASE_DIR, $fname, $file_path); $fsize = filesize($file_path); $fext = strtolower(substr(strrchr($fname, "."), 1)); if (!file_exists($file_path) || !is_file($file_path)) { redirect_to(($core->seo == 1) ? $core->site_url … |
|
[admin.php](https://github.com/apps-vn/admin.php/commit/f2e3c157d42750c39e1778a58abf271f8ddb5f82) <tr> <td><?php echo MOD_DS_PRODFILE;?>: <?php echo required();?></td> <td><input name="filename" type="file" size="40" class="fileinput mask" /> <span style="margin-left:80px"><?php echo tooltip(MOD_DS_PRODFILE_T);?></span></td> </tr> <tr> <td><?php echo MOD_DS_PRODFILE;?>: <?php echo required();?></td> <td><input name="filename" type="file" size="40" class="fileinput mask" /> <span style="margin-left:80px"><?php echo tooltip(MOD_DS_PRODFILE_T);?></span></td> </tr> [admin_class.php](https://github.com/apps-vn/admin_class.php/blob/9fc485be7667cd0d559e74b3e99c71941044bbd6/.gitignore) */ public function getPaidDownload($token) { global $db, $core; $id = … |
|
Please help me with my database connection. It says that I have an error with my Insert Statement. Imports System.Data.OleDb Public Class Form1 Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim connection As OleDb.OleDbConnection Dim mydb, mystr As String Dim dateFiled = Date.Today Dim user … |
|
|
hello everyone. I can't figure out how to create a random int that gets placed into a linked list. import java.util.*; import java.io.IOException; import java.util.Scanner; import java.util.Random; public class LinkedListProgram { public static void main(String[] args) throws IOException { int i,number, ran; Scanner sc = new Scanner(System.in); LinkedList<String> list = … |
|
Hey everyone. As always I'm sorry for my noobness when it comes to java, but I got a question I can't seem to find answered anywhere else on the web. I'm trying to make a simple program that takes whatever number the user types in, and makes a linked linked … |
Hello Friends, I m Developing an windows form application. i have a winform on which i have datagridview and i am saving the data to Sql Server database from datagridview directly . i m using the following code for connecting & saving data of datagridview to database using button click … |
|
My process is to multiply the given points in B8, D8, F8, H8, J8, L8, and N8 to A3, B3, C3, D3, E3, F3, G3 respectively. this procedure is to be processed in C8, E8, G8, I8, K8, M8, and O8. after multiplying, the process should perform =sum(C8,E8,G8,I8,K8,M8,O8) to P8. … |
|
trying to create a insert method thats takes a char *name and int age. after than iam trying to insert in linked list. its seem to be working fine but if i have a linked lets say [1 2 3 4 5] and if i try to insert(2). i shoudl … |
|
im using fpdf.php library have some extension the pdf_lp.php then i got this error on my codes... hope somebody can help me identify my error.. any help is very much appreciated. <?php date_default_timezone_set('Asia/Manila'); require_once('./pdf_lp.php'); include ('connect.php'); // $sql = mysql_query("SELECT * FROM mydb WHERE contractno = '$_SESSION[contractno]'") $sql = "SELECT … |
|
[CODE]//Header file for Array.cpp. #ifndef ARRAY_H #define ARRAY_H template<class Datatype> class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; Datatype* m_array; public: //Constructor. Array( int p_size) { m_array = new Datatype[p_size]; size = p_size; } //Destructor. ~Array() { if( … |
|
Ok, I've been trying to wrap my head around this code for the longest time today, and I've tried to look up multiple web pages on how to solve my issue in a different way, but it's no use. There's something that Im not seeing that separates a regular array, … |
|
Hi there I was wondering if their is anyone who can convert this statement from 'INSERT' to 'UPDATE' as I cannot seem to do is. Code can be seen below: [CODE]public static void COUNT2( ) { try { ResultSet res = stmt.executeQuery("INSERT INTO TABLE2 (VIDEOID,VIDEONAME,DIRECTOR,RATING,PLAYCOUNT) SELECT VIDEOID,VIDEONAME,DIRECTOR,RATING,PLAYCOUNT FROM TABLE1" ); … |
|
Hey I have an assignment to get a number from the user and print it as a string with commas in the correct space. For example if the number is 13904 it should read 13,904 or 1005 should read 1,005. I have to do this recursively. Working on my pseudo-code … |
|
I have to save 4 different pictures in my database. NSO, GoodMoral, ReportCard & TOR. Here is my code. [CODE] Sub savepic() Dim str As String = "My connection" Dim con As New SqlClient.SqlConnection con.ConnectionString = str Dim ms As New IO.MemoryStream() nsopic.Image.Save(ms, nsopic.Image.RawFormat) goodmoralpic.Image.Save(ms, goodmoralpic.Image.RawFormat) repcardpic.Image.Save(ms, repcardpic.Image.RawFormat) torpic.Image.Save(ms, torpic.Image.RawFormat) … |
|
Hi all, I'm having an "assignment" in which one criterion is : - Inserting data into an ordered sequential file without reading the entire file into RAM I don't know how to this. Could you show me how to write methods/API/code in Java, anything is fine with me. Just to … |
|
I got the following error in my code today: Syntax error in INSERT INTO statement. [code=c]OleDbCommand cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText="Insert into Cursanti([ID],[Nume],[Prenume],[Sex],[Varsta],[Ziua-1],[Ziua-2],[Ora-1],[Ora2],[E-mail],[Telefon],[Referal],[Partic/Grup],[Adult/Copil)] Values ('"+id_b.Text+"','"+name_t.Text+"','"+surname_t.Text+"','"+sex+"',"+age_t.Text+"','"+ziua1.Text+"','"+ziua2.Text+"','"+ora1.Text+"','"+ora2.Text+"','"+email_b.Text+"','"+phone_b.Text+"','"+from_t.Text+"','"+ore+"','"+categorie+"')"; cmd.Connection = con; con.Open(); cmd.ExecuteNonQuery(); con.Close();[/code] The error points at "cmd.ExecuteNonQuery();" Searched the other topics, saw that people had similar problems, but … |
|
Hello Using MySQL, I have DB 1 with table T1 on Server 1 and DB 2 with table T1 on Server 2. Not on the same network and T1 contain the same columns with the same datatypes. I want to create a trigger on DB 1 so when there is … |
|
Hi Everyone, I am currently Building a Stock Control System for a School Project and Using access 2007 with Visual Studio 2010 to build the VB. I am trying to use an INSERT INTO SQL Command to insert new stock items into my Access DB. I am getting an error … |
|
Hi, My title may be wrong but I would like to explain this process that I need here, Here is my Process, I already have imported excel file and inserted it in the datatable, and then I also validated it's format before inserting it in the database. Now Here is … |
The End.