64,152 Solved Topics
Remove Filter ![]() | |
Anyone here who knows how to convert system month,Day,Hour,Minutes,Seconds each into number format like month=12 (If December) Day=30 Hour=12 (In 24 hour format) Minutes=55 Seconds=45 Thanks for help in advance... | |
in my code the for loop syntax is not rigt can any one tell me[CODE]for($i=0; $i<$count; i++) { if($i==0) { $txt.="product:Licence_key"; } $txt.=$product[$i]." :".$plicense_key[$i]; }[/CODE] | |
Is it possible to insert multiple values from text into multiple columns seprated by comma.for example i have a table products in which columns are product_name,product_description,lisencekey1, lisencekey2 ,..................and with entering the multiple lisencekeys(only) seprated by comma should be inserted in this fields. ![]() | |
can anybody tell me what format of date 1311048886 is? how we insert and select in database. | |
Please someone should help me before I faint. I have been working with this login script and am getting this error on a server: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/utimate/public_html/PhpPractice1/index.php on line 32. When I test it with wampserver, I will get this … | |
Why do we have to suffix long literals by 'L' or 'l' even though we have specified the datatype ? Does it serve any special purpose? | |
Hi I have a form that amends current values in a MySQL database. This works fine in FireFox, but does nothing in IE when you click on the Save button. [CODE]<input type="button" value="SAVE" onclick="submit();" />[/CODE] Is what I am using What am I doing wrong? Thanks | |
hello guys im new here so please be kind with me, please be patience cause Im new in PHP. now here's my problem I really miss-up my code. I want to create a form with 4 dropdownlist (diagnosis, cause, medicine, and treatment) this drop-downs are dynamic taking there items from … | |
i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding … | |
hey , I'm a beginner & need some help in C++ , I want to generate 4 unique numbers " any number isnt repeated within itself " I figured a way to generate 4 random numbers but they arent unique [CODE]srand((unsigned)time(0)); int number= (rand()%9999+1000);[/CODE] , I also need to put … | |
I am writing a program that manipulates text file using console application. What I want to do is to delete 1 specific line based on the ID entered by the user. For example: DR-01|Coke|25.80 DR-02|Sprite|25.80 DR-03|Sarsi|25.80 DR-04|Coke|25.80 When the user entered DR-02, the result would be like this: DR-01|Coke|25.80 DR-03|Sarsi|25.80 … | |
Could someone help me to convert this Scheme Code to Objective-C? (define-type RCFAE [num (n number?)] [add (lhs RCFAE?) (rhs RCFAE?)] [id (name symbol?)] [fun (param symbol?) (body RCFAE?)] [app (fun-expr RCFAE?) (arg-expr RCFAE?)] [with (id symbol?) (named-expr RCFAE?) (body RCFAE?)] [if0 (cond RCFAE?) (then RCFAE?) (else RCFAE?)] [rec (id … | |
Hey everyone, I recently make a simple test site on my local server to login as an admin and redirect to an admin based page as well as to log in as a user for the regular user page..When I made the test site..it seems to work fine but when … | |
I am using MySQL to store the RSS feed contents that are updated every few hours. I truncate the database once a day. But during the day, whenever same feeds are updated every few hours I get duplicate entries piled up. Is there any PHP script that I can run … | |
hey guys i have an array in php and it contains some records twice, trice or so. I only want to list those records once while fetching array elements. eg. "entry 1" comes five times in the array then i want to display it only once and then next element. … | |
I am having trouble displaying Hungarian letters that are read from a database. [URL="http://otletbarkacsbolt.hu/test.php"]Here[/URL] is the output and here is the code [CODE] <?php mySQL_connect("localhost","[SNIPPED]","[SNIPPED]") or die (mysql_error()); // connect to mySQL echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("otlethu1_aru") or die (mysql_error()); //connect to otlerhu1_faaru database echo ("Connected … | |
can some please explain what are command line parameters ? i read many books, read online didn't understand anything on what they are and when or how to use them. :( | |
I'm trying to create a struct for an 8 bit signed integer, seeing as how I'm creating a calculator it would be useful. Windows' calc.exe has this set up as precision for Qword, Dword, Word, and Bytes. I have 64, 32, and 16 because they're already programmed into Visual C#. … | |
Hi all In the following Sub I'm sending an Attachment when the email has been sent I would like to delete the attachment but I get an system.IO.IOException Error. the file I'm trying to delete is being used by another process. How can I detect if the process has finished. … | |
hey guys need some help in string manipulation, example i have a string LFname = "Hello, world" and textbo1,textbo2. now i want to display "Hello" in textbox1 and display "world" in textbox2. by the way guys thanks for your patience :) | |
Seriously need help here how can i wrte a program that read character only? i mean alphabert like people key in "i +am+ 12567 a",;. boy," and the program only read iamaboy is there another way other than lowercase the string and then compare a-z? | |
I successfully compile the code through cmd, however when i run it, when i enter my password with anything(which fulfill the first condition (6-20))it will show error. The question is to write a program that let user to create a password which is valid (more than 6 letters, must have … | |
Hi In my application i have used master page. I created a web form that DID NOT USE master page. Is it possible that from this form i can access master page controls. If yes then how can i access it? | |
I have a serious problem here! i understand that the switch is wrong(the Str class should be fine). I wonder what datatype should it be? and if "char" how i am going to key in int value and how to use scanner on it ? The display menu is fix. … | |
Hi All, I have a JAR file that contains a .dll file. But during an ant build a ZIP Error is thrown [CODE]error reading D:\COE\Libraries\client\WSQUtil-1.0.jar; error in opening zip file[/CODE] Is there a way to overcome this ? The jar looks fine(opens in winzip) and eclipse build path also references … | |
Does anyone know the SQL statement for replacing a string in the whole of a database. My database is called DB1 and I want to remove any instance of "Table/". Many Thanks, | |
I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions??? | |
my codes occur some problem inside.whn i answered 'N' to the last question(DO YOU WISH TO CONTINUE?(Y/N)), the program will repeat run again, but i cnt enter student name!anyone can help me solve the problem>? [CODE] import java.util.Scanner; public class homewok{ public static void main(String args[]){ Scanner xx = new … | |
When I run my website I have random bits of php showing, and the background doesn't appear. Here is what bit is showing [CODE] "); } ?> [/CODE] and here is my code [CODE] <!DOCTYPE html> <head> <title>Website Name</title> <meta http-equiv="Content-Type" content="text/html; charSet=UTF-8"> <link rel="stylesheet" href="styles.css" media="screen" /> </head> <body> … | |
what are the diffrences between CREATE INDEX [WITH IGNORE_DUPLICATE_KEY OFF] and CREATE UNIQUE INDEX it sounds the same! and if anyone knows when creating a plain INDEX just CREATE INDEX whether it creates a clustered or nonclustered index couldnt find an anshwer to that thanks in advance | |
Before looking at the code, here's an explanation: NIDAQmx is a hardware-in-the-loop integration software from National Instruments. They give this sample code to create any voltage out of the card. The variable "float64 data[1]" is a double precision floating point that defines the actual voltage being emitted from the card; … | |
I have an issue reading from a database. here is the php code after I have connected to the database [CODE] echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("test"); echo ("Connected to database"); echo ("<hr /><br />"); $sql = mysql_query ("SELECT * FROM 'Product'"); while ($row = mysql_fetch_array($sql)){ echo … | |
Hello! I've got trivial problem and have no time to re-read manuals. I need to construct a function in SQL2005 which selects from DB and returns datatable. Something like this: [CODE] create function GetAllStudents() returns Table as begin ( select StudentID,StudentName,StudentFamilyName,Birthday,HisClass from Students ) return DataTable [/CODE] I need it … | |
Hi, I have a registration form and several codes for validation but i can't join them. regsitration form: [CODE] <?PHP include 'topo.php'; ?> <!-- content --> <div class="indent"> <h2> Inscrição </h2> <form action="envia.php" method="post" onsubmit="return validar()" > <fieldset> <legend> ALUNO </legend> <br/> <div class="field"><label>Username*: </label><input type="text" size="30" name = "username"/></div> … | |
I want to first say THANK YOU to all of you programmers for your help. You truly live steady to the core of IT and are an inspiration to us newbies! I have a simple utility that starts and stops a timer on a VB4 form. I record the time … | |
I've been fiddling with some boost spirit stuff, and my code seems to start infinitely looping somewhere in the standard library stuff. Any ideas what's wrong? The qi::phrase_parse works very well, but the karma gets me. [code] #include <iostream> #include <string> #include <vector> #include <algorithm> //#include <boost/spirit.hpp> #include <boost/spirit/include/qi.hpp> #include … | |
Hi guys, again, coming to this forum for asking some confirmation of my knowledge confusion. firstly, let's take a look on the code:- [CODE] #include <iostream> using std::cout; using std::endl; int main() { // main process const int value_1 = 1000; const int *pointer_1 = &value_1; const int **pointer_2 = … | |
Hi, I've just learned that Java's 'protected' access specifier has a different effect than that in C++. So is there a way to make a member of a base class visible to its inheritors but not globally? Dean | |
Hi, i have this code: s = "hi john' re.serach(r'j\w+h', s).group() and up to here there is no problem but i want to put the letter h in a str variable l = "h" re.search(r'j\w+'l, s).group() but when i do this i receive an error?? | |
hi i want to write a text in any line inside a rich text box how can i do that ?am now able to append to existing one or insert to the beginning of the rich text box but i want to write to any line inside the text box. | |
I made a test database to store items in a database, but I keep getting an error when trying to import from a txt file. Here is my txt file [CODE] 1,Lánc 2,Fa 3,Csavar 4,Lakat [/CODE] How could I fix this problem? Also is there a reason I need to … | |
I am trying to use a Weka method, crossValidateModel, which is posted in the last. It looks like that the fifth parameter is referred to as varargs parameter. I tried the example usage given in Weka page, such as [CODE]eval.crossValidateModel(cls, data, folds, rand);[/CODE] It works just fine on one system,(eclipse+Ubuntu); … | |
Hi Y'all, I have a RTB which I import with a set of 7 or 9 didit numbers, 7 for Staff and 9 for Students. e.g. Staff numbers 0628189 0628191 0629991 0629850 0804930 and depending on what is selected in a list box ('Student' or 'Staff') will generate a string … | |
Hi! I'm writing a unit test where arbitrary objects have to be created without knowing anything about the objects (with some exceptions). I use reflection to create objects and set their fields to random values etc... I'm almost there but I've come to an issue I can't find a solution … | |
We're having a problem on computing the grade average [CODE]Dim hwTotal, swTotal, quizzes, project, midTerm, totalAverage, Finals, Attendance As Double[/CODE] [CODE]hwTotal = Val(hw1.Text) + Val(hw2.Text) + Val(hw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 * 100 * 0.1 swTotal = Val(sw1.Text) + Val(sw2.Text) + Val(sw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 … | |
How would I find the amount of characters in a string and then use that to print a certain amount of some character that you choose. For example: [CODE=Python] a = 'string' # this holds 6 characters print '*' * # amount of characters in string [/CODE] | |
Hi. I need to retrieve and list out the records from 'expenses' according to the date (eg. January 2011). I used substring to get the month (01 for January, 02 for February, etc.) and year. My date format is DD/MM/YYYY. I've tried echoing out $sql2 and the values obtained are … | |
Hi everyone. I am currently working on a project and I am new to php xmlrpc and openerp. I came across sample codes but I cannot figure out the method being called nor is it documented in the OpenERP xmlrpc definitions. The link for the sample code is : [URL="http://doc.openerp.com/v5.0/developer/6_22_XML-RPC_web_services/index.html"]http://doc.openerp.com/v5.0/developer/6_22_XML-RPC_web_services/index.html[/URL] … | |
i have written following insertion sort program for a doubly linked list completely by myself.The the sort function is giving me Segmentation error and i am unable to figure it out...Plz help me out and forgive me if the code is too wrong to handle.. [CODE] //insertion sort using doubly … | |
Hi Coders, I have a minor problem that I would like to try and resolve. I am pasting data from an Excel spreadsheet and and adding a 0 to the start of each 9 digit string it's it's missing (thanks to the help of Rev Jim. This works great if … |
The End.