199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I'm new to PHP and was wondering if someone could help me... I need to write something so that when row "expire" (this is the date the account expires) is 5 days from expiring, a message shows up. I can format everything myself, I'm just drawing a blank … | |
I dont know where to save curl libraries downloaded from [URL="http://curl.haxx.se"]http://curl.haxx.se[/URL].can any one tell me.I have followed instructions given on the page [URL="http://devzone.zend.com/160/using-curl-and-libcurl-with-php/"]http://devzone.zend.com/160/using-curl-and-libcurl-with-php/[/URL] for installing curl. | |
how can i filter records based on dates especially when the option is for weekly basis?? and then the report will be generated in crystal report. any query or syntax??? i badly need this.. tnx in advance.. im using vb6 and crsytal report 8 and my database is MYSQL | |
hi guys i have existing column in datagridview sample column name (Student ID, Last Name) now i have mysql table column name sample(STUD_ID,LNAME) STUD_ID = int Type, LNAME= varchar Type. i used these code to display mysql table in datagridview if their is no Existing column [CODE] void dlist(string sqlQry, … | |
I am getting this error. But i cant find out the reason why i am getting this error [COLOR="Red"]Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding … | |
Hi, i have a client which reads from the socket: [CODE] for (index=0;index<SCALERS;index++) { read(my_socket,vectorScalerPointer,BUFLEN); read(my_socket,resultScalerPointer,BUFLEN); sum+= atoi(vectorScaler)*atoi(resultScaler); }[/CODE] and a server program which writes to it. [CODE] for (index=0;index<SCALERS;index++) { sprintf(ascii,"%d",(*matrixStruct)._vector[0][index]); write(fd,ascii,BUFLEN); sprintf(ascii,"%d",(*matrixStruct)._mat[atoi(whichRow)][index]); write(fd,ascii,BUFLEN); }[/CODE] now the problem is the programs are in a "race condition" usualy the server … | |
Hey, I'm running a mysql query, and would like to run a script if the query returns no results. But what do I use to test for no results? Something like: [PHP] if (!$query) { do this } [/PHP] But just not sure how to implement it. Little help? | |
Hello what im looking for here is to get the next addition in the database to drop below the first set of tables. at the moment it is only showing the last persons submission it does create the tables with the data but with only the last persons. when the … | |
Hi guys I have a bit of a problem here about the alignment no what I try it always end up like that, the 2nd-3rd row course and sexcode column is what I want to fix >.< package studlist; here's my code: public class StudList { public static void main(String[] … | |
Overview So I've got this site I've been working on for months. I thought I had it all figured out. But then I Google'd for my site, and clicked a link, and the same functionality does not work. Details Site: [url]http://whentoplant.com/[/url] Walkthrough - Everything seams to work Ok, lets walk … | |
Hi again!And happy new year to all.Just got to attained an interview and was asked about some c questions.Would like to know what does these lines means?Can anyone tell me? [CODE]int main() { int k=printf("Hello"); return 0; exit(10); } [/CODE] I got answeres like [QUOTE]You're outputting "Hello" on the screen … | |
Hello, I'm a newbie in vb :D however with all the information and help this forum had provided i reach this far with my code BUT i can't proceed anymore. I'm trying to make a small software which will help me in my work. I can't get it to work … | |
hi! another query! i want to insert values into the table 'employee' for the 'adddress' field in such a way that the large address comes in two or three lines like this [code] empid empname address mobile grade basic Joyban1 Joy banerjee 5/67, 1234567890 2000 10000 nehru colony, kolkata 700045 … | |
i have seen that some amount of the memory like my 8GB pendrive on linux PC which has one unit = 1000 which is exactly same used by the pendrive sellers.....is somewhat less than 8GB. it is 7.9 GB, why ? also on windows, my 500 GB HDD should be … | |
I wanna know what type of parser is used in the gcc and turbo c++ compilers. whether a top-down or bottom-up parser is used..... ? | |
I wanna know what type of parser is used in the javac compiler. whether a top-down or bottom-up parser is used..... ? | |
Hi, i need to write a recursive function which gets a list and an integer k and returns a list of all the possibilities of creating sub lists to the length of k with the elements from the original list. i hope i was clear enough.. here are some examples: … | |
After a few months working on another website, I am back finishing a list of coding tasks on my TAXA Wood Knowledge Base. One of the most important pages in the site is the one that lists (so far) over 15,000 different botanical names of woods. Each single name listing … | |
I have a program that reads from a database, and then displays the results in a TextArea. Then when the user hists upload the file will be saved to a .txt file, and then uploaded to the database. But currently I am getting the original which looks like this in … | |
Hi guys, I'm writing a weasel program and needed a random character generator, I used a random number generator to give an ascii code for each character, and made a sequence of them, then I realized I needed to include the "space" symbol, but upon inclusion of the new code … | |
![]() | Sorry for the basic silly question. But I really dont have any idea on solving this. I have ASP controls (One Text Box and One Drop Down List). Now I need to access [B][I]value [/I][/B]property of TextBox as well as [B][I]SelectedIndex[/I][/B] property of dropdown list. This should be as simple … |
I am having some trouble with this code. I want have an onclick function on a div and I want to call this function. Only the 'if' section of the code works. If the #about opacity is anything other than 0.47, it still executes the 'if' code, but not the … | |
I am in an 11th grade computer science class learning C++ and I feel that the class is going to end before I learn how to apply C++. What I want to know is what do I need to learn to start applying C++ into tasks like software development, game … | |
I am having trouble setting up these classes. I need to set up a customer collection class that has one function GetCustomer(ByVal customerNumber As Integer) As Customer The customer class reads a file and returns 5 fields and x number of records. My question is do I set up the … | |
I have created an XML schema that holds flights and i want to use to be able to create an XML document that contains all the flights. However, i can only write single flights to the XML file. So can anyone tell me how i can add multiple flights to … | |
Hi, I dont know, what mistake i made in my code. [CODE][B]test1.php[/B] <?php namespace MyNameSpace; class A { public function B() { echo "san"; } } ?>[/CODE] [CODE][B]test2.php[/B] <?php include('test1.php'); $test=new MyNameSpace::A(); $test->B(); ?>[/CODE] [B][url]http://localhost/test2.php[/url] Error: Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in C:\xampp\htdocs\MyNameSpace\test2.php on line … | |
Hello. I need some help with variable types. I am currently an 11th grader taking my first Computer science class. I am learning C++ and I would like to know how I can make 10/3 3.33 rather than 3 in C++. For example, a member on the forums updated my … | |
I have a very simple wish, to dump all databases so I can lock up a backup of the databases, tables, users and so on. It looked like [CODE]mysqldump -v --all-databases -u root -p secret > "${directory2}""$h"_mysql_dumpall.sql[/CODE] worked, however the file contained a little error message telling me I had … | |
Im writing a java system for some one, and no contract has been established so far. Im just wondering, if i dont sign any contract, to whom does the source code of my project belong to? Is it mine? do i sell it to him? does he just get it? … ![]() | |
I read that using a policy class for a function that will be called in a tight loop is much faster than using a polymorphic function. However, I setup this demo and the timing indicates that it is exactly the opposite!? The policy version takes between 2-3x longer than the … | |
is it possible to move a database from one machine to another? maybe like copying the tables... | |
I'm trying to make a camera app using AVCaptureSession. For now I just want to see if the video input works or not. But it looks like there is no input and I can't seem to understand why. - (void)viewDidLoad { [super viewDidLoad]; session = [[AVCaptureSession alloc] init]; [self addVideoPreviewLayer]; … | |
Hi I have a database of information and the code to get that data out of the database based on the url, it will be some like [url]www.website.com/thekooks[/url] and then will display the information in the database for them. The bit I am struggling with is where do I put … | |
Hello all, I am looking for a bit of code to make an input field into a calculator. The main difference from most scripts is I want it with no buttons. I am hoping to use the number pad on the keyboard. So, for example, I would like an input … | |
I'm trying to set up a timeout test on a selection of files. The files run the test via an include, which contains the following: [CODE]$inactive = 20; /* check to see if $_SESSION['timeout'] is set */ if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); … | |
hi everybody, the double type is 8B, right ? So if i use this code : [CODE]double pear[500000000];[/CODE] it will use 4GB of Ram ? or there's a limit for arrays ? thanks | |
I want to insert values into 3 different tables with auto_increment of primary key. My code below creates 2 records for the first table and 1 each for the second and third AND a Failure 'duplicate entry xxxx for key PRIMARY' for the second and third. The ADD RECORD does … ![]() | |
Hi, I am trying to make a link based on info stored in MySQL, the code I have got so far is [CODE] if (isset($_POST['search_now'])) { $result = mysql_query("SELECT * FROM bands WHERE BandName LIKE '%$BandName%'"); $page = "<a href=\"http://www.website.com/$row['PageName']\">$row['BandName']</a>"; while($row = mysql_fetch_array($result)) { echo 'Band Name: '; echo $row['BandName'] … | |
Hello first sorry for my english... my problem is when creating xml from dataset in my dataset i got tables with relations. here is my xml sample that i have created.. but i dont want this. in this one column orders are wrong <ozel> <vergiToplami>1107.46</vergiToplami> <kismiVergiToplami>0</kismiVergiToplami> <toplamKDV>1107.46</toplamKDV> <toplamIadeEdilebilirKDV>0</toplamIadeEdilebilirKDV> <tecilEdilecekKDV>0</tecilEdilecekKDV> <tevkifatUygulanmayanlar> … | |
i am creating a table employee which looks like this [code]use employeemaster; drop table if exists employee; create table employee ( serial int unsigned NOT NULL auto_increment, empid tinytext NOT NULL , empname varchar(255) NOT NULL, address text NOT NULL mobile bigint unsigned NOT NULL, grade char(2) NOT NULL, basic … | |
So I'm having this weird issue, where I can do SELECT statements and INSERT statements just fine, but when I do this UPDATE statement, it sorta works. It runs without errors, and even outputs that 1 row is affected. But when I check the MySQL, nothing is updated. I've echo-ed … | |
When you want to draw something on a form you need a Graphics object. But a Graphics constructor isn’t public and if that is not enough the Graphics class is also sealed! This means you can’t create a Graphics object via the new keyword nor can you derive from the … | |
Greetings! I have a win32 native dll (perhaps that's not the correct term - it's basically a C compiled dll) that I'm accessing in C#. The method signature of the C code (not the actual signature in the dll): [code=C++] char* TestMethod() [/code] I'd like to access the [B]char*[/B] as … | |
I have to sort a large array of numbers wherein the numbers are random and range from 1 to 9,99,999...till the time the length of array is less than 2,00,000, all sorts work fine (i tried selection, insertion and quick sort)...but when the length of array is increased to 3,00,000 … | |
Hello dude. Happy New Year. I want to asking about generating primes algorithm. Can you advice tell me what the fast generating primes algorithm except Sieve of Eratosthenes algorithm? thank you. i want to apply the algorithm to my cryptographic system.. | |
Hi, I am having trouble echoing something into a url. The code I've got is: [CODE] <?php $code = "kooks"; echo '<a href="http://website.com/'$code'">The Kooks</a>'; ?> [/CODE] But I get the message: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /hermes/web11b/b146/moo.3finking/unsignedgigs/test.php on line 3 Thanks for your help | |
Hey guys. Im try to write a program with 3 major things which are two lists and a random. what i want to do is say whatever values are in those lists then produce so many random value if you get what i mean. so say list one value is … | |
I have the code below but it does not do what i want it to do. [CODE] "UPDATE products SET quantity = quantity - 1 WHERE product = $'product'"; [/CODE] I have a data base called products with field quantity, now i do not know how to code such that … | |
All right. So i have child, parent, activity and register table and i want know how much money a parent will pay for his child if the child have 1 or more activities. So i came out with this code: [CODE]SELECT CONCAT_WS (' ', parent_title, parent_fname, parent_sname) AS 'Parent/Carer Name', … |
The End.