64,152 Solved Topics
Remove Filter ![]() | |
Hi hope someone can help me with the folowing i have a string with a few words i want to delete some words before the string and uppercase the first letter from the string that over. $achternaam = "van der hurk"; $common_words = array("van", "der", "de"); $achternaam = str_replace($common_words, "", … | |
how i could import my txt file into access database 2010 using vb.net . the txt file as follow : 08-14-13 08:09:26 001 07 0000020016 0100000000 08-14-13 13:12:06 001 07 0000020014 0300000000 i should take into consideration the space between columns becauase this txt file is exported from a certain … | |
I am trying to create a table that I can customize completely with php. I will admit, i have forgotten some of the materials due to lack of practice and "accidentally" deleting my original files that "should" answer my question. Well anyways, how do you create a table that (by … | |
csolution.php public function netsolution(){ $data = array( 'networklarge' => base_url().'assets/images/network-large.jpg', 'productcss' => base_url().'assets/images/product.css ); $this->load->view('netsolution', $data); } public function systemsolution(){ $data = array( 'systemsolution'=>'Type your connection content here', 'productcss' => base_url().'assets/images/product.css ); $this->load->view('systemsolution', $data); } Hi, I receive error in this line: Parse error: syntax error, unexpected 'netsolution' (T_STRING), expecting … ![]() | |
![]() | CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on … |
Hi group, I'm looking through the book "Mastering Microsoft Visual Basic 2010" by Evangelos Petroutsos. I'm trying to work through a chapter on designing windows controls. In the first step the directions read: "Start a new project, and in the New Project dialog box, select the template Windows Forms Control … | |
I am working on a form which uses an Access (oledb) database, I have a button to update, and other to insert a new client, when I insert a new client it successfully adds it to the database, but I have to open and close the form to update it, … | |
i am a beginner in python and still got a whole lot to learn.i have this exercise that seem too difficult to crack. check it out and see if you can help. here is a simple data set1=["01","34","29","16"] set2=["45","88","19","17"] set3=["56","21","57","20"] set4=["29","42","89","08"] set5=["19","45","56","20"] set6=["85","56","33","78"] using the data above, write this program … | |
$userEmail = $db->query("SELECT email FROM users WHERE email='$email'"); $userPsswd = $db->query("SELECT password FROM users WHERE email='$email'"); Can someone tell me what I've done wrong in teh two lines above? I'm getting the following errors. PHP Warning: SQLite3::query(): Unable to prepare statement: 1, near "@hotmail": syntax error in /var/www/ET/password/accounts.php on line … | |
Hi all, the following PHP MysSQLi query works in XAMPP but not in WAMP: <?php include('../../inc/config.php'); $mysqli = mysqli_connect($config['host'], $config['user'], $config['pass'], $config['db']); $responseQuery = "SELECT tr.id as trid,tr.topicid,tr.usersid,DATE_FORMAT(tr.date_added,'%b %d, %Y %H:%i') AS format_date_added,tr.date_added,tr.response,tr.status, t.id, t.usersid as creatorid, u.id, u.authuser, u.memtype, u.fn,u.ln,u.avatar FROM topic_response tr LEFT OUTER JOIN topic t ON … | |
Well I initialize an array of 5000, along with using srand & rand numbers with a range. I want to Prompt the user to enter an integer to search (from the front of the array) & output the index location of the element found(-1 if not found). I attempted it, … | |
I am an amateur programmer that helps build some solutions for my company. I have an application that I did not originally create, but I have done a lot of modification. I think it was originally built VB 2005 and converted to VB 2010 where I have done most of … | |
Hello everyone, I am trying to update a database as well as insert information into the database and this is what I created to do so. Only, I am getting the email and its not updateding the database...any ideas? <?php if ($_POST['submit']) //if the Submit button pressed { $con = … | |
Hello, I want to move a panel smoothly like a form. anybody can help me please? thanks ^_^ | |
i am using cherrypy and i want the list itemes in new line like a=['abc','def','ghi'] abc def ghi in browser | |
 On this morning, i am still using this database, but now my database seem like crashed, and display this error to me. how can i solve this problem other than recreate the database? | |
PHP Parse error: syntax error, unexpected end of file in /var/www/ET/password/changepassword.php on line 27 Can someone please tell me what I'm doing wrong in the following code to get the error above? <?php $db = new SQLite3('./users.db', SQLITE3_OPEN_READWRITE); if(!$db) { echo "Could not open/access DB"; } else { $userPsswd1 = … | |
i am using the following code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace GIS_assignment { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void pictureBox1_Click(object sender, EventArgs … | |
Hey hey! I'm about 70% into completing a web application that will allow our clients to white label our service. They can then in turn resell the service to their audiences without any involvement from me or my colleagues. Now, something I need to figure out is how to allow … | |
[CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim speech speech = CreateObject("sapi.spvoice") speech.speak(TextBox1.Text) End Sub End Class [/CODE] | |
Hello! i need to filter the searched data in the database sql and display it on the table. But i keep on getting tis error: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at app.SearchByKey.SearchStudentNumber.SearchStudentRecordReader(SearchStudentNumber.java:38) at app.ui.ListOfStudents.updateSearchTable(ListOfStudents.java:159) at app.ui.ListOfStudents$3.keyReleased(ListOfStudents.java:105) at java.awt.Component.processKeyEvent(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) … | |
hello dear members, i am a student of bachelors degree in computer science and finally i have to choose and develop a project as my final project. i am planning to replicate a game, like jetpack joyride (as i am seeking a career in game programming). i think i have … | |
hi every one , i need to know how to get a file path to textbox using browse button or common dialog , any body can help me ?? | |
Greetings, I am looking for suggestions and feedback about needed bandwidth from a Web hosting company (thinking of VPS or Dedicated) for my websites. Earlier I had asked about how to insert thumbnail (live) images, if possible, of other websites so that users can see a preview (live) of the … | |
Hi, Having some issues connecting to MS Access Database. I think its ot connecting to the database. Below are the source codes: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DB extends DBDriver implements ActionListener { JFrame f; JLabel Fname = new JLabel("First Name: "); JLabel Lname = new JLabel("Last … | |
In the following program the first strpos() function is working just just fine when searching for a matching email address in the text file as long as it's on the first line but the second entry it jumps streight to the else clause and echos "Unknown user name" even though … | |
Suppose you save $100 each month into a savings account with the annual interes rate5%.So, the monthly interest rate is after the first month,the value in the account becomes 100*(1+0.00417)=100.4417 After the second month, the value in the account becomes (100+100.417)*(1+0.00417)=201.252 After the third month ,the valiue in the account … | |
i'm trying to alter a table's column name but i keep getting an error. alter table GelderlandDist change inauguration 'inauguration date'; but i keep getting an error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the … | |
(Linux) In the following program I'm trying to process the file accounts.txt line by line searching for a match to the form supplied variable '$email'. The function fgets() is stepping though the file line by line correctly but my attempts at using preg_match() and or strpos() to determine if that … | |
Hey guys, noob programmer here. Over the last week or so we've been learning about classes and inheritance in my latest progamming class. I've recieved a variation of the ever so popular poker program and am having some problems putting it all together. I haven't had the opportunity to test … | |
# /*Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. My code is printing garbage value.Pls someone suggest me what is wrong and how can I correct it..Thank … | |
#include<iostream> #include<fstream> #include<ctime> #include<cmath> using namespace std; clock_t start, end; double cpu_time_used; int main() { int m,i,j,n,k; double P[150][150], tou1, cx[8],cy[8], U[150][150],V[150][150]; double u,x[150],y[150],dt=1.0, T[150][150],S[150][150],t=0.0; cout<<"enter the units in X x Y"<<endl; cin>>m>>n; class pdf { public: float feq[150][150], f[150][150]; }; pdf f0, f1,f2,f3,f4,f5,f6,f7,f8; // For X for (i=0;i<=m;i++) { … | |
Hey guys what I'm about to ask isn't for what I really need it for but learning how to use the rand() function in this manner will help me apply it to what I need it for. Lets say I wanted to ask the user for a random integer such … | |
Hie everyone I have the below code on my console to import data from an excel sheet to a mySql database but unfortunately I am having an error which reads: NO CONNECTION TRYING TO RECONNECT.... ERROR 2005 (HY000): UNKNOWN MYSQL SERVER HOST '(ID,NAME):' (11001) ERROR: Can't connect to the server … | |
I'm experiencing a few issues trying to install rpy2-2.3.7 under Cygwin64 on Windows7 using R 3.0.1 and python 2.7 $ python setup.py install finds R version to be 3.0.1 at the beginning of the install, but on line 158 it bombs out for failing to discover the R version. I … | |
I'm bit new to C#. I just want to change the start up form in my project. (This is a windows form application). There is a field named with STARTUP OBJECT and a dropdownlist in Project properties. But my problem is I have created few forms in my project and … | |
I want to bind database value to combo box in C# windows form. I know this is a common problem for begginers. I search in the internet about this. Acoording to that I modified my code. But my problem is, it is not raised any error message and data not … | |
I want to change form1 textbox1 text from from2 variable. This is the flow. 1. Show form1 2. click button in form1 3. then show form2 (form1 do not hide. It is still visible) 4. click button in form2 (form2 has variable and it set to form1 text box and … | |
Hi i'm a beginner in android mobile development. I have a question regarding sqlite(Android)... Is there a way for me to be able to import text file onto database other than making it hardcoded..? or if there's not, how can i populate my database if i have a string formatted … | |
sorry i am very very new in programming. My question is at switch statemnt if user type different of 1,2 or 3 i dont want to break but i want to start from beginning asking user again to type 1, 2 or 3, i know how to do with goto … | |
Simply by interchanging the numbers in printf I.e, 8. printf("before swap:First Var.=%d\tSecond Var.=%d\n" ,i,j); 9.printf("After Swap: First Var.d\n" ,j,i); | |
A GPA, or Grade point Average, is calculated by summing the grade points earned in a student’s courses and then dividing by the total units. The grade points for an individual course are calculated by multiplying the units for that course by the appropriate factor depending upon the grade received: … | |
Chaps, I run into a strange problem today for the first time. Basically I have a web page that users can print using a print button on the page itself, but what I want is them to be able to print a print-only version of this page. So, I wrote … | |
(Linux) In the following code all I'm trying to do is open a file but evertime I run this script the fopen function jumps right to the die() function. Any ideas? The file accounts.txt does exist in the same directory, and I also tried refrencing the file via ./accounts.txt . … | |
hi again :) i have problem with finding cyrilic words in my txt file...words in txt file are arranged like this: one један two два three три etc... before word "one" and after word "један" there is blank space... so problem starts in button3_click... what ever i type in texbox3 … | |
Consider my method : static public function mysqldate($c,$f = 'd-M-y'){ // date is supposed to be in dd/MMM/yyyy format. // returns a date in mysql form try { $result = "'" . DateTime::createFromFormat($f,$c)->format('Y-m-d') . "'"; } catch (Exception $e){ $error = "error in mysqldate <br />" ; $error .= "date … | |
hello my Daniweb friend i'm trying to get data from database where only users is connect so i user this code i get a errot on navigator i got this errot on navigator : Parse error: syntax error, unexpected '=', expecting ',' or ')' in /homepages/0/*/htdocs/domainname.com/*/*.php on line 145 this … | |
hello Dear friend i can't explain cause i dont' know why, i'm using the code below to insert data into a myql table but i work fine ust today i get a error colum subtotal can't be null... i' have try too much thing but still same i delete the … | |
What is the code or what is the simplest way (with explanation, because im a little bit confused) in making an android application automatically adjust it's screen size layout depending on the android device used? | |
hello friend i just wanna learn if a way exist to generate AUTO_INCREMENT i have my datble and the colum ID is an AUTO_INCREMENT and the id is from 1, 2, 3 .... i would like to diferent id for exemple : CC13445356 i want 2 letter at begin or … |
The End.