199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for D3N9

Need to have balls moved when touched using getmouse() also need an if then statement when ball is clicked to have it moved

Member Avatar for Schol-R-LEA
0
234
Member Avatar for Mitchell_1

I have this gallery any help on how to enter text under each image that is moused over, i want the text to be written under the big centred image? I have the whole website attached Thanks in advance <DOCTYPE html> <html> <head> <title>Gallery</title> <link rel="stylesheet" type="text/css" href="../css/style.css"/> <style> img …

Member Avatar for Mitchell_1
0
285
Member Avatar for phoenix254

Hi I need help here, please tellme why it snt working correctly Urgent ; THankss very much $('#windowhead').click(function(){ /*$("#fullwindow").css({ "height":20+"px" });*/ $("#fullwindow").slideToggle('css'({ "height":20+"px" })); });

Member Avatar for phoenix254
0
136
Member Avatar for UK-1991

Hello, I was thinking a way to search more then 3 fields using LIKE my sql query i tried this way but its getting all the products not for the one it searched for if(isset($_POST['search_now'])){ if(isset($_GET['go'])){ if(preg_match("/^[ a-zA-Z0-9]+/", $_POST['brand'] || $_POST['model'] || $_POST['new'])) { $new = $_POST['new'];; $brand = $_POST['brand']; …

Member Avatar for UK-1991
0
148
Member Avatar for cristian.stilpeanu.1_1

Hi guys, I struggled for few days to find a php code that work's to this form contact. Please if someone know's help me. Thank you! <form action="index.php#contact" method="post"> <div id="box-message"> </div> <p class="clearfix"> <input type="text" name="name" value="" placeholder="Name" required="required" /> <input type="email" name="email" value="" placeholder="Email" required="required" /> <input type="text" …

Member Avatar for diafol
0
240
Member Avatar for blueguy777

the success message is not displaying after form submission, still it's displaying error message "Please enter a valid mobile number." it should display Success message. <?php function filterMobileno($field){ // Sanitize mobile number $field = filter_var($field, FILTER_SANITIZE_NUMBER_INT); // Validate mobile number if(filter_var($field, FILTER_VALIDATE_INT)){ return $field; }else{ return FALSE; } } // …

Member Avatar for diafol
0
303
Member Avatar for Aeonix

I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do …

Member Avatar for Aeonix
0
23K
Member Avatar for raghavanp

In below code, I expect 1 to be initialized in all the 10 elements in x array. But, it doesn't seem to be working. May I know what I am missing here int main() { int *x = new int[10]; //std::cout<<"address of x: "<<&x<<std::endl; for(int i =0; i <10; ++i){ …

Member Avatar for マーズ maazu
0
245
Member Avatar for lithium112

I built a database structure with codefirst EF from a tutorial but I can't find the database. I've looked in (localdb) and it's not in my local install of SQLServer. Would anybody know where I would need to look to find the database?

Member Avatar for lithium112
0
232
Member Avatar for collin_ola

Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through values stored in the map displaying the key, followed by the second value. In my case, the key is an`int` …

Member Avatar for collin_ola
0
563
Member Avatar for feyisa
Member Avatar for Dipanjana

Hi. I have created two tables :Artist and Song .Artist table has fields Artistid and ArtistName and Song table has SongID, Lyrics,Description and Artistid as the secondary key.I have a web form to add new artist containing a textbox and submit button . The code is as below : <head …

Member Avatar for Dipanjana
0
951
Member Avatar for infoitmanoj

<?php $edit_data = $this->db->get_where('prescription', array('prescription_id' => $param2))->result_array(); foreach ($edit_data as $row): $patient_info = $this->db->get_where('patient' , array('patient_id' => $row['patient_id'] ))->result_array(); ?> <div id="prescription_print"> <table width="100%" border="0"> <tr> <td align="left" valign="top"> <?php foreach ($patient_info as $row2){ ?> <?php echo 'Patient Name: '.$row2['name']; ?><br> <?php echo 'Age: '.$row2['age']; ?><br> <?php echo 'Sex: '.$row2['sex']; …

Member Avatar for pritaeas
0
314
Member Avatar for scomx

I have a tabbed web browser its working fine , but i have a little problem and that is if i open a new tab is ok but if i go back to previous tab the urltextbox it have the url in the tab last opened tab. so i am …

Member Avatar for scomx
0
690
Member Avatar for kovacsakos

I have a 2D arraylist, named as adjLists, which contains arraylists, containing values like these. Each two values are a "pair" and each third is a "flag" for the pair. [278, 106, 0, 397, 36, 0, 59, 208, 0, 366, 221, 0] [366, 221, 0, 397, 36, 0, 132, 390, …

Member Avatar for kovacsakos
0
690
Member Avatar for coder91

Hi I have the following code to insert data into a db int svcTypeID = Convert.ToInt32(comboBox1.SelectedValue); String svcGuid = label2.Text; int heartbeat = Convert.ToInt32(textBox1.Text); String hostname = System.Net.Dns.GetHostName(); Guid gu = new Guid(svcGuid); SqlConnection conn = new SqlConnection(@"Data Source=x\x;Initial Catalog=task_system;Integrated Security=True"); SqlCommand cmd = new SqlCommand("storedProc"); cmd.Connection = conn; cmd.Parameters.AddWithValue("@guid", …

Member Avatar for coder91
0
215
Member Avatar for s.ganesh

Hi, Please help me, i try to fetch category list as like below, where category ids is passed in inclause, it returns two rows. mysql> select c_id,c_name from category where c_id in (870,854); +------+---------------+ | c_id | c_name | +------+---------------+ | 854 | Telugu | | 870 | Telugu Events …

Member Avatar for s.ganesh
0
210
Member Avatar for Amiet_1

I have DatagridView on form. My database has three fields. - userId (bigint) - userName (varchar) - userDob (date) Now, on Form I have comboBox, which lists Months (Jan, Feb, March and so on...). I want my program to work like this. If I select any month on ComboBox, birthdays …

Member Avatar for djjeavons
0
528
Member Avatar for anitg

I dont know whether this is the relevant forum but I dont know why I am getting the above mentioned error when I try to open website www.magicbricks.com from my laptop. I can open this on my office computer..! The error details are as below; HTTP Status 500 - error.security.userNotActive …

Member Avatar for diafol
0
332
Member Avatar for devianleong

Hi, I just want to share this after I scratching my head for few hours. To integrate Laravel 5 with ckfinder authorization method (So far I only can get the solutions for Laravel 4 but get none for Laravel 5 from google.), simply add these code at the top of …

Member Avatar for diafol
0
740
Member Avatar for Harini89

Hai i Have developed android mobile apps using eclipse juno and i have connect it with mysql 5.1.73 but i am unable to do it.please help me to sort it out .i am ruunin with following errors. Errors at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) …

0
222
Member Avatar for altjen

Im designing a software for fun. but I stuck in somewhere in listboxes. what I'm trying to do is like this: you write something in in textbox1. after press a button it seach if a word like that is on listbox 1. if that is true than it send a …

Member Avatar for Reverend Jim
0
136
Member Avatar for Zee_Monty

Create an array that holds 20 elements. User should enter 20 test scores, the program therefore calculates the average of all tests scores. Izf user enters test score less than 0 or above 100 an error message should display. Additionally it must display the entire array with 20 test scores …

Member Avatar for JerrimePatient
0
131
Member Avatar for semo5

hi all, i was doing this coding and i get an error but i dont know what my error is could you please help me thanks in advance <html> <head> <title> Student Final Results </title> <style> Inline Code Example Here`Inline Code Example Here` background: #f3f3f3 url('22.gif'); } </style> <script type="text/javascript"> …

Member Avatar for lps
0
320
Member Avatar for nhiap6

I have this regular struct struct Person{ char *name; int age; } and I should do some regular stuff like, input size, create dynamic array of persons , and take user input for this person. But the problem, as you can see is how do I input in name pointer; …

Member Avatar for Moschops
0
173
Member Avatar for Mohamed_26

Hello All, I have created a new windows form application in Visual studio Express 2013. How would I get .NET framwork added to Windows Form application so I can use both? I have also got visual express web 2013 and .NET framworkdapppears on there. I am getting annoyed. Can I …

Member Avatar for lithium112
0
331
Member Avatar for ramkishor

try { string reslt = null; string test; foreach (Control c in flowLayoutPanel1.Controls) //here is the minor change { if (c.GetType() == typeof(ComboBox)) { reslt = c.Text; ComboBox combo = (ComboBox)flowLayoutPanel1.Controls.Find(c.Name, true).FirstOrDefault(); test = combo.SelectedValue.ToString(); string insertrec = "insert into testreport(TestID,result,rang,labno,DetailID)Values('" + refid + "','" + reslt + "','0','" + …

Member Avatar for lithium112
0
241
Member Avatar for berserk

hello everyone, i am in need of some advice. You see i created an application to manage a large user base, this user base has additional hidden data per user that is in the form of a drop down. My problem is that 1k to 5k of users is fine, …

Member Avatar for berserk
0
369
Member Avatar for Oomi

I have taken input of 5 images from user and showed it in photogallery now I want these images in list view too. How should I pass them in list view simultaneously. I tried the below code but it shows images in photogallery not in listview. Private Sub BrowseMultipleFilesButton_Click(ByVal sender …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Nathan1

I'm sure there is a really simple solution for this matter, but I have tried all I know without success. I'm trying to modify this working SQL string to yield only the Top 25 results, not all results. "SELECT * FROM" & "data.CSV" & "ORDER BY " & "Elapsed" & …

Member Avatar for Nathan1
0
184
Member Avatar for Levellous

Hellooo, Is there a way to compare a datagram packet's IP address with the host's IP address? Because i have a client/server (client is acting as a client & server) class that uses multisocket to broadcast to every host it'll send the datagram to itself as well, which i don't …

Member Avatar for Levellous
0
259
Member Avatar for punji

i have to tables result and total, the result table has two field namely student_code and mark and total table has two field namely student_code and total, the total column should contain total marks of a student. so i have written an sql statement to insert data from result table …

Member Avatar for punji
0
295
Member Avatar for M Irfan

how to convert simple hmlt website template to php.? and how to create that website database on xampp.?

Member Avatar for lps
0
171
Member Avatar for faie

Hi i am a beginner in PHP Ajax. i found this code but i want to know how to start to display the table after i select the value from dropdown list. I am also a bit slow in this. All example i have found are only show how to …

Member Avatar for faie
0
826
Member Avatar for Rafiii

Hello everyone, If i need my program to create as much vectors as needed based on the user first input , assuming each vectors will hold an int value like a combinations of numbers, so latter those vectors will be compared for higher value. EX: prompt the user to enter …

Member Avatar for Rafiii
0
620
Member Avatar for Benyam

public partial class Form4 : Form { private OleDbConnection connect = new OleDbConnection(); public Form4() { InitializeComponent(); connect.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Bino Unity\Desktop\user1.accdb;Persist Security Info=False;"; } private void Form4_Load(object sender, EventArgs e) { } private void login_button_Click(object sender, EventArgs e) { connect.Open(); OleDbCommand command = new OleDbCommand(); command.Connection = connect; command.CommandText …

Member Avatar for JerrimePatient
0
258
Member Avatar for ddanbe

Hi all, Want to write some data from C# to Excel. Code enough I thought, here at DANI's and on the web. So I managed to come up with this : [CODE=csharp]private void DoExcel(string Fname) { Microsoft.Office.Interop.Excel.ApplicationClass excel = null; Microsoft.Office.Interop.Excel.Workbook wb = null; Microsoft.Office.Interop.Excel.Worksheet ws = null; Microsoft.Office.Interop.Excel.Range rng …

Member Avatar for HaiLuong
0
4K
Member Avatar for Niloofar24

Hello. There is a button in the page when i click it, a div will appear or disappear by toggling to the left and right. I want when the page loaded, user can only see the button and have to click to appear the dive. But the problem is that …

Member Avatar for lps
0
511
Member Avatar for naz1234

Hi, I have some number 1 to 5. How to find top 3 number in that range ? For example, in the range of 1 to 5 , I want to show only 1 to 3 in the the text box.

Member Avatar for Reverend Jim
0
160
Member Avatar for ribrahim

Dear All, I have a dynamic javascrip table for sort and filtering a data which contains 4 rows: Fullname, Companyname, address and email. Everything is working fine with loading the data from mysql database. I have added two actions to the table (view user and delete user). the view user …

Member Avatar for diafol
0
3K
Member Avatar for zizo.ahmed.779

hello everybody...nice to back again i m working on project to calculate measures and numbers and insert data inside datagridview(dgv) from number.text and measure.text but if value of measure.text present in dgv son update number cell with new value + present value problem is how to do so.... i tried …

Member Avatar for zizo.ahmed.779
0
3K
Member Avatar for ms95

hi i've been given a task to do the following program without using structures or linked list and ... . just with arrays and simple things. the application will accept some data as follow : N1 F N2 N2 F N3 and then print them out from grandfather to son …

Member Avatar for ms95
0
636
Member Avatar for Satyam_1

Hi, I have vb.net application. In the form I have print button and when I do print, after printing the form is closed. so I have to reopen the form. I tried much, but I am not able solve the problem. Please help me. I put following code in print …

Member Avatar for Satyam_1
0
382
Member Avatar for winecoding

I am trying to do some text processing tasks against a collection of files stored in a directory. The data set is just standard 20-newsgroup data. However, running the following code segement gives error message such as `UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 240: invalid start byte` …

Member Avatar for vegaseat
0
400
Member Avatar for basit_3

hello guys i make a simple calculator in window form application and i want to add it with a scientific calculator form how can i connect these two forms

Member Avatar for basit_3
0
109
Member Avatar for ArpitJ.25

I cannot understand user defined functions in c++? Please give suggestions or refer any book or website where I can learn User - defined functions in C++?

Member Avatar for basit_3
0
117
Member Avatar for kouty

Have a good evening! **The Aim:** to obtain a Sieve of Erastothenes **The Means:** to build a function of a number n that the prime numbers up to n. **The code** supposed to make this from math import sqrt def holeofStrainer(): """The purpose is to build a sieve of Erasthotenes. …

Member Avatar for kouty
0
305
Member Avatar for parth2911

hello I am trying to show Data in CrystalReport from Ms Access 2013 In button_click event String Cnstr = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\parth\Documents\test.mdb;Jet OLEDB:DataBase Password=hello123" using (OleDbConnection Cn = new OleDbConnection(CnStr)) { using (OleDbCommand Cmd = new OleDbCommand("select * from Table1", Cn)) { using (OleDbDataAdapter Adp = new OleDbDataAdapter(Cmd)) { using (DataSet1 …

Member Avatar for AmrMohammed
0
1K
Member Avatar for SalmiSoft

I am using the MySQL C API and having problems defining a stored procedure. MY SQL script works fine in MySQL Workbench but the same script fails in my own software. A test script which shows the problem is: SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA …

Member Avatar for SalmiSoft
0
255
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if there is a way to reset a tabcontrol. What I'm wanting to do is have it so when the user will click New it will reset all the tabpages to the way they were when they started the program up. I tried this …

Member Avatar for pritaeas
0
1K

The End.