64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Kniggles

HI, how do i change tis code so when the php is done it gos to page running.php insted of the " echo "1 record added"; " line ? <?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO Persons (FirstName, LastName, …

Member Avatar for AndreRet
0
105
Member Avatar for xianamersu

I'm trying to make a video store program that allows customers to search for videos and either buy or rent them. I have already made a class with 3 subclasses, VHS, DVD and VCD. for the meantime,When video objects are first put into the store, the status should be “IN”. …

0
77
Member Avatar for daino

How do I set the CMAKE_INCLUDE_PATH? Also... How to I set the CMAKE_LIBRARY_PATH? All i know about CMAKE is that is is a GUI with very limited options. Where do I put these variables and why do I set them? How do I set them? Thanks

Member Avatar for daino
0
11K
Member Avatar for ThomsonGB

I have been using the Jove editor by Jonathan Payne for many years. If You are not familiar with Jove - Jove stands for Jonathans own version of EMACS. I love using it. In the 80s I had my own version of jove with a lot of my own personal …

Member Avatar for ThomsonGB
0
345
Member Avatar for tedy.jd

I was doing xaml with vb coding in vb 2010 I create a datagrid and linked itemssource with table adapter, and also I modify a columns to checkbox datagrid columns. Problem now is I checked the checkbox value in the columns in datagrid but through button check the data grid …

Member Avatar for tedy.jd
0
300
Member Avatar for mbhanley

Does anyone know a better way of getting this code to execute the mysql queries. I am trying to Insert table records to a new table then update it. so I need to call the table cms_homecontent first then insert those values to the new table cms_homecontent_versions and also ignore …

Member Avatar for mbhanley
0
241
Member Avatar for Hopp3r

Ok, so I've recently been learning to code in c++, but I'm getting a little confused on how you read files to functions. For instance, say that I have one file with a list of other files in it. The information within the second set of files (each file) contains …

Member Avatar for triumphost
0
3K
Member Avatar for Elixir42

I have searched on the internet for a 'working' double to char* does anyone have any idea? I need to pass the string to a function that takes a char* as an argument.

Member Avatar for Elixir42
0
3K
Member Avatar for Violet_82

Hi I have run into a issue recently. I am working on a website that involves quite a bit of scrolling: basically, there is a fixed position menu with some anchor links. when you click on an anchor links the page automatically scrolls down to the desired position. All good …

Member Avatar for Violet_82
0
431
Member Avatar for MasterHacker110

I am trying to make a program that will check the remaining number of an item left in stock and that will, if someone buys it, subtract the amount of the item bought and then re-write it into the database... (Something like what they use in some stores) How do …

Member Avatar for Lucaci Andrew
0
418
Member Avatar for ranam

I want to know how exactly to add the button at the top of the search to note as the search criteria is for example asc to desc or vise versa ![kk[](/attachments/large/1/kk[.JPG "kk[") that is here i need a icon beside the colors to show me when i search weather …

Member Avatar for ranam
0
162
Member Avatar for technoknol

Friends, I have website with wordpress in which i have added plugin for forwarding mail this contains link like below. mailto:?subject=Welcome to my site&body=Check out this post: http://www.mywebsite.com/post-name/ In this "welcome to my site" is title and "Check out this post: http://www.mywebsite.com/post-name/" is body with page link but i want …

Member Avatar for technoknol
0
149
Member Avatar for themaj

I am trying to insert new records into an Access DB and getting some weird stuff. I get the data from a DBF table and load that into a dataset table and DataGridView with no problems. Then I loop through the ds.table and insert it into the DB with this …

Member Avatar for Reverend Jim
0
206
Member Avatar for Octet

I am trying to validate a form for my website, at the moment the problem is it shall skip over the JavaScript bit entirely and go straight to the PHP side of it. This is my HTML Form: <form name = "Contact" action = "/PHP/UserActions/Contact.php" onsubmit = "return validateForm()" method …

Member Avatar for Octet
0
298
Member Avatar for sobias

Hi guys, Finally I've registered after being a very long visitor for this awesome community. I have this problem which consumed 2 days of my time trying to figure out how to solve it. And your help is needed guys. The problem says: Transfer elemenents from Stack1 to Stack2 , …

Member Avatar for Taywin
0
8K
Member Avatar for somjit{}

this is my code, from the book *Head First Java* ... class Echo { int count=0; void hello() { System.out.println("Helloooo....."); } } public class EchoTestDrive { public static void main(String[] args) { Echo e1 = new Echo(); Echo e2 = new Echo(); // output 10 //Echo e2 = e1; // …

Member Avatar for somjit{}
0
180
Member Avatar for kenomote

Hey guys im having this error on my codes but seems to work on the other new projects it always highlight the .ExecuteNonQuery `{"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at …

Member Avatar for kenomote
0
458
Member Avatar for ised

Write a nested for loop that displays the following outpout: 1 1 2 1 1 2 4 2 1 1 2 4 8 4 2 1 1 2 4 8 16 8 4 2 1 1 2 4 8 16 32 16 8 4 2 1 1 2 4 8 …

Member Avatar for ised
0
3K
Member Avatar for klemme

I have this pattern which finds links, inside a text string from file_get_contents function. Works fine, it seems. But I am curious to understand the expression, each charachter of it, what it does etc. Here you go: preg_match_all('~href=("|')(.*?)\1~', $var, $out); I know what it does obviously, but what does (.*?)\1~ …

Member Avatar for klemme
0
185
Member Avatar for extjac

Hello, do you guys recomend any CLASS or script to create Thumbnails? what are you using these days?

Member Avatar for ashishrevar
0
347
Member Avatar for Nan0_Zor

Hi, i have a problem making my program share infos with his clone... Let me explain :) I execute my program twice, and i want it to share text like a messenger (on a single computer) and the problem is, i don't want it to be one program with 2 …

Member Avatar for Nan0_Zor
0
140
Member Avatar for 1bung100

I have created a simple client server chat program using socket. I used to run Client program and Server program separately in two eclipse and chat is done through console only. The logic is as below: System1Class (Server) | System2Class (Client) 1) SendThreadSys1 Class | 1) SendThreadSys2 Class 2) ReceivedThreadSys1 …

Member Avatar for 1bung100
0
1K
Member Avatar for bemo55

I have a project for school that i am working on, and i cant figure out how to store names in an array. i have it declared as [code] char firstname[25]; char lastname[25]; [/code] but i was told that just stored one string and when i go to print out …

Member Avatar for jcmoney1010
0
9K
Member Avatar for FUTURECompEng

public void Enqueue(int value){ node end = endList.next; end.next=null; endList.data=value; endList.next=end; endList=end; Here is my code for an Enqueue method but when I run it mylist.Enqueue(12); It gives me an error. Is something wrong with my method or am I testing it incorrectly? Thanks.

Member Avatar for FUTURECompEng
0
294
Member Avatar for packluv12

I am trying to calculate sales totals from a txt file. I have completed it but when I debug, it tells me that the input string is not in a correct format. I think something needs to be changed to double but when I do it gives me an error. …

Member Avatar for JOSheaIV
0
250
Member Avatar for mLearning

Hi, I am using RC4 to encrypt the data. It works fine. But I found that some encrypted values contains NULL character or other escape characters in result. Due to which when I read the string back to decrypt, does not give the whole string back but truncate the string. …

Member Avatar for mLearning
0
248
Member Avatar for JOSheaIV

Interesting name for a title wouldn't you say? Well I couldn't find any better way to put it. Anywho, I have been working on a new program that is designed to read in a website ever so many many seconds, parse the data, and update the GUI. Now I have …

Member Avatar for JOSheaIV
0
1K
Member Avatar for tapuwa2002

I would like to add data from 2 worksheets in the same document and have them combined in one worksheet. Am using PHPExcel could you guys kindly help. -worksheet 1 and worksheet 2 = worksheet 3(combined worksheet1+worksheet2) Thanks

Member Avatar for tapuwa2002
0
190
Member Avatar for kothaisaravan

Hi Using VB.NET I created an excel sheet with list of items in dropdownlist. Using the below code With xlWorksheet.Range("A2", "A101").Validation .Add(Type:=Microsoft.Office.Interop.Excel.XlDVType.xlValidateList, AlertStyle:=Microsoft.Office.Interop.Excel.XlDVAlertStyle.xlValidAlertStop, Operator:=Microsoft.Office.Interop.Excel.XlFormatConditionOperator.xlBetween, Formula1:=[COLOR="Red"]"Construct,Testing,Review,Look Ahead Meetings,Process Audit,Process Improvement,Project Monitoring and control,Project Planning,Project Setup,Project Team Management,RCA Activities,Re-Estimation,Review,Review-Rework,Senior Management Reviews, Testing,Testing Rework,Training, Work Product Audit"[/COLOR]) End With But i can able …

Member Avatar for ruchirahuldoshi
0
2K
Member Avatar for showman13

Good Morning All, I'm looking for any suggestions for integrating a group chat into a members only back office. I've looked at many options online, but none of them seem to be able to be integrated the way I would like. Basically I would like a PHP script that I …

Member Avatar for diafol
0
111
Member Avatar for Octet

Hello Daniweb Members, I am currently trying to develop a Captcha for my website, I have a wacky font that shall hopefully make it harder for bots to read, and I was planning on using the imagefttext() function to display it. Currently I have the following (Doesn't Randomly Generate String …

Member Avatar for Dani
0
132
Member Avatar for FUTURECompEng

For any integer n > 1, if Al, A2, A3, ... , An, and B are any sets, then (A1 -B) (A2 -B) ... (An -B) = (Al A2 A3 … An) -B. I was able to prove for all sets A, B, and C, (A -B)(C -B)= (AC) - …

Member Avatar for Taywin
0
235
Member Avatar for Inshu

Can I append a list obtained from a Class as output outside the class , if Yes how ?? can i use userList for this purpose ?

Member Avatar for Schol-R-LEA
0
208
Member Avatar for darren2005

Hi, I am trying to create a script which searches through a MySQL column which contains URLs and check the URLs to see if they are up OR down. At the moment I am getting no results added into the database e.g. 1 = UP, 0 = DOWN. Can someone …

Member Avatar for darren2005
0
162
Member Avatar for vyrenmedia

Hell all, am new here and am an intermediate php developer. I am having a silly proble am guessing the solution will be a simple syntax buh i dont know how to fix it. Okay here is it.. Lets say i have a variable in php eg $first_data=""; now i …

Member Avatar for junior_rosul
0
134
Member Avatar for dancks

code snippet: void checkcollision() { float x1 = tanks[0].x; float y1 = tanks[0].y; float x2 = tanks[1].x; float y2 = tanks[1].y; float dist = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)); float dr = tanks[0].rad+tanks[1].rad; if(dist<dr); { printf("checkcollision read true\n"); printf("dist: %f, radius+radius: %f\n",dist,dr); goback(0); goback(1); } } output: checkcollision read true dist:363.159302, radius+radius:14.142136 …

Member Avatar for dancks
0
119
Member Avatar for harishjoy

` LONG APIENTRY Esl_CheckCMTClassRecord(struct CMT_Class_Record *ClassRecord, long *ret) { USHORT uResult; SHORT retcode; uResult = bt3Start(Class.CMT_fd,Class.CMT_data); if(uResult == CLASS_RECORDLENGTH ) { memcpy(Class.CMT_data, ClassRecord , CLASS_RECORDLENGTH); retcode = bt3FindRel(Class.CMT_fd, Class.CMT_data, FR_EQUAL); // Read CMT record if(retcode > 0) // read successful { *ret = 1; return(0); } else { *ret = …

Member Avatar for harishjoy
0
252
Member Avatar for harishjoy

Hi i am totally new to C and have a doubt on which one is correct below. LIBRARY PWHDENDT InitInstance DESCRIPTION 'PWS Endt Array Functions' ;DATA and CODEare not supported in windows ;DATA PRELOAD MULTIPLE NONSHARED ;CODE PRELOAD SHARED or LIBRARY PWHDENDT ;InitInstance DESCRIPTION 'PWS Endt Array Functions' ;DATA and …

Member Avatar for harishjoy
0
117
Member Avatar for AndreRet

I am totally stuck and hope that someone here might have had the same problem in the past. When I test my code under localhost, all images displays perfect, not so when uploaded from my hosting server. What it does: It uploads data from the database as a description of …

Member Avatar for AndreRet
0
150
Member Avatar for iamcreasy

Hi, I used to solve ACM problems, but I used old scanf & printf for input and output.But now i want to use C++ style IO. So, i picked a simple problem, and tried to convert its old style IO to new style IO. The problem : [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996"]http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996[/URL] (in summery, …

Member Avatar for iamcreasy
0
270
Member Avatar for adishardis

Hi, I have this fiddle that works but on my website it does nothing. http://jsfiddle.net/adishardis/r3eyD/17/ What is the best way to troubleshoot why this is?

Member Avatar for adishardis
0
687
Member Avatar for adishardis

Hi, I'm wondering what type of mysqlfield would be advantageous for outputting the containing text as a bullit list in php and if the text should be formatted a certain way. I would be supergrateful for an example! :p Take care Adam

Member Avatar for adishardis
0
784
Member Avatar for mahela

In my project I used a datagrid and Adodc.datasource of datagrid is Adodc.there in Adodc properties I select "use connection string".I used Microsoft jet 4.0 OLE DB provider and select the connection path to the database as "F:\project\super.mdb". Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\project\super.mdb the path sould be valid when runing the program in …

Member Avatar for AndreRet
0
464
Member Avatar for newprimitive

Hello, I have problem with entering default values in MYSQL database. When i insert new record using phpmyadmin it works fine (empty fields get default value), but when i use the same query in my application (written in PHP), empty fields in html form don't get default value in MYSQL …

Member Avatar for ffghjk
0
245
Member Avatar for opawix

<center></center> <form name="registration_form" method="post" action="register.php" onsubmit="return Validate();"> <table border="0" align=center> <tr> <td><font size=5><center>Name: </center></font></td><td><input type="text" name="names"></td> </tr> <tr> <td><font size=5><center>Email: </center></font></td><td><input type="text" name="email"></td> </tr> <tr> <td><font size=5><center>Username: </center></font></td><td><input type="text" name="username"></td> </tr> <tr> <td><font size=5><center>Password: </center></font></td><td><input type="password" name="password"></td> </tr> <tr> <td><font size=5><center>Password Confirmation: </center></font></td><td><input type="password" name="password_confirmation"></td> </tr> <tr> <td><font size=5><center>Phone Number: …

Member Avatar for opawix
0
210
Member Avatar for Izzy Kiefer

Hey guys, I've hit a brick wall trying to login to an ssl site to update fields of a form and submit, mainly because(i'm guessing) it has a load of javascript within it and also a several redirects at and after login page. I have managed to come to the …

Member Avatar for LastMitch
0
1K
Member Avatar for ncis_sg1

**I am having trouble understanding exactly what I am supposed to do with the following instructions.** a. Create a class named Pay that includes variables of type double that hold rate of pay per hour and withholding rate percent. Gross pay is computed as hours worked times rate of pay …

Member Avatar for ncis_sg1
0
208
Member Avatar for triumphost

I'm trying to flip an image which has its pixels stored in a vector. For some reason, when I try to flip it, the image gets distorted and gray/fuzzy. Any idea why? My code is as follows: void JNIData::FlipBytes(void*& Result, bool TopDown) { unsigned char* Pixels = &BufferPixels[0]; //vector of …

Member Avatar for mike_2000_17
0
228
Member Avatar for dancks

Ok. As the title says I tried many times to simply write a program that rewrites a file to remove null characters. I confirmed with a hex editor that the file in question has tons on null characters, on average about 1 of every 2 characters in null. So my …

Member Avatar for dancks
0
433
Member Avatar for scottlpool2003

I'm in the basics of learning to code in OOP. So far I've tried simple input/output and succeeded but am now trying to move onto something still rather basic but a step up from previous attempts. Anyway, I'm writing a login script connecting to a PDO database. I've tested all …

Member Avatar for diafol
0
328

The End.