199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for a.dhamumca

hi, i want to store date time whan i click radio button(name login time)in mysql. if i click logout radio button it should store logout time. ples help me... php and mysql code ...

Member Avatar for pritaeas
0
255
Member Avatar for mmcdonald

Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete …

Member Avatar for Atli
0
478
Member Avatar for flynismo

Hey guys, here is the table structure: Table name: globalsettings column names: setting, value, description An example query could be this: $query = "SELECT * FROM globalsettings WHERE setting = 'name'"; Okay, so here is what I am trying to do (I am using PDO for DB activity, but just …

Member Avatar for pritaeas
0
193
Member Avatar for Cameronsmith63

Hi everyone, It might sound simple but I am having nightmares with this function What is the best way to delete a file without the machine complaining that i cannot acces the file because it is in use by another process? Is this a bug in the .net framework? Is …

Member Avatar for Cameronsmith63
0
408
Member Avatar for cgull

Hello, I am developing a web site with codeigniter 2.1.3 I am using an ajax call to post data to my controller, but for some reason the data is not being sent. I am using ajax calls all over the application and they all work well just not this one. …

Member Avatar for cgull
0
3K
Member Avatar for mesbahuk

For my **Java to C#** conversion project, I need to use something equivalent to Java's `Calender` class. I have some codes like: Calender cal = Calender.getInstance(); long time = Calendar.getInstance().getTime().getTime(); long time2 = System.currentTimeMillis(); which returns some random values at different times. I have come to know C-sharp's `DateTime` is …

Member Avatar for ddanbe
0
990
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to limit users on how many database entries they can insert then once they have reached 100 (Max entried) entries it will delete old entries. So if the user has reached 100 entried and they try to insert another entry …

Member Avatar for joshl_1995
0
395
Member Avatar for murali2489

Hi All, Im still finding it hard to understand Paint method, Almost all websites i had gone thru, they are showing examples of how to use it in an applet. I just cant understand on how to use it in a GUI application by extending Jframe object. Here is one …

Member Avatar for murali2489
0
1K
Member Avatar for stealthless

Hello, I'm trying to get my program running but I ran into an error. When I want to type a block of text on a new line, I get this error below: AttributeError: 'str' object has no attribute 'append' What am I suppose to adjust in order to fix it? …

Member Avatar for PsychicTide
0
240
Member Avatar for stealthless

Hi, I'm trying to prompt the user to enter a block of text until he/she types EOF on a separate line by itself. After that, the program should present him/her with a menu. When I go to Option 1, it only prints out EOF and not everything that was typed …

Member Avatar for PsychicTide
0
420
Member Avatar for robotakid

Hello everyone, I just started with the book 'Learning Python the hard way' by Zed A. Shaw,and I have to say that it is really fun to learn code. I thought that it would be a problem because I'm 15,but I'm understanding it pretty well so far. Anyway,enough of the …

Member Avatar for TrustyTony
0
371
Member Avatar for eldiablo1121

hello, I just had a quick question on my program. I'm trying to perform an elevator class program to simulate an elevator that has 3 stops. The only problem is that I can't figure out how my floors increase or decrease, it just increases by one. Here is my code: …

Member Avatar for eldiablo1121
0
223
Member Avatar for zawpai

Hi all, Could someone please explain me why "Listview.Selected" alway retuns a value? After I upload data into list view, system will highlight first line in list veiew. Although I dehighlight it and my UI will not see any selected item, but my softwre always get "return value = 1" …

Member Avatar for zawpai
0
128
Member Avatar for stealthless

I'm a Python noob trying to make a program where the user will enter as many integers as they want and have the program calculate the total sum. They have to type the word "done" to execute the sum calculation. When I ran my program, I tped in 'done' and …

Member Avatar for edward.okech.5
0
228
Member Avatar for Jake.20

Greetings fellow developers, can you guys give me a hint on how to check if the datacolumn or datarow on the database has a value or null value what i want to happen is if the column1 has a value then the button is disabled. Dim Str As String Str …

Member Avatar for kRod
0
267
Member Avatar for stealthless

This is **Python** language. Hello, I'm trying to make a program where the user enters his/her initials followed by a block of text. After that, the program will print out the number of times his/her initials showed up in the block of text. For example, if my initials are VKL, …

Member Avatar for edward.okech.5
0
256
Member Avatar for waqas.zafar.125

Hi there! I have to read data from a file and load it into an array: here is the data of the text file: Team Creative 6 100 Anwar Khan 201 Belal Ahmed 150 Sara Amjad 400 Nida Khawar 342 Rehan Sheikh 341 Nadia Kanwal My code is: class Player …

Member Avatar for Unimportant
0
192
Member Avatar for overwraith

Hello, I got some code from: http://stackoverflow.com/questions/1859201/add-seconds-to-a-date this is the code: #include <time.h> #include <stdio.h> int main() { time_t now = time( NULL); struct tm now_tm = *localtime( &now); struct tm then_tm = now_tm; then_tm.tm_sec += 50; // add 50 seconds to the time mktime( &then_tm); // normalize it printf( …

Member Avatar for Unimportant
0
169
Member Avatar for udorngrul

I need help printing 5 Fibonacci numbers per line. The user is asked how may numbers would they want printed and if the user indicates they want 15 numbers printed then it should look like this: 1 1 2 3 5 8 13 21 34 55 89 144 233 377 …

Member Avatar for Unimportant
0
3K
Member Avatar for L-D

Hi again, I have a cash gifting script that I converted to advertising instead of "gifts". So no host should have issue with it. I went thru the session is registered thing but I don't know how to insert the newer coding. What exactly do I replace? I know about …

Member Avatar for Zagga
0
264
Member Avatar for adil.ghori

Hi All I just want to know the following thing; When SQL Functions are used? Provide a couple of examples of situations in which they are necessary. Awaiting response... Also can anyone refer me a ebook for SQL for beginners in which Functions is desscribed detailed...

Member Avatar for adil.ghori
0
194
Member Avatar for Adnan671

Hello. I'm going through LazyFoo.net's SDL tutorials and right off the bat I got stuck. I am using Visual Basic and it is giving me an error saying that the identifier 'args[]' in the main function (line 5) is undefined. Anyone have a solution? //Headers #include "SDL.h" #include <string> int …

Member Avatar for phorce
0
507
Member Avatar for erinkay528

For some reason the program is not reading the if and else statements. Please help The assignment: Assignment: The city zoo charges the fees shown in the table below. General Admission Price Adult $18.00 Child (age 5 to 13) (Under 5 years of age: free) $7.50 Extra Events Train ride …

Member Avatar for Moschops
0
1K
Member Avatar for pmark019
Member Avatar for Ne0nx3r0
0
755
Member Avatar for bobtutos

Hi everybody! I would like to ask for your help if it possible, I have a long sting and I want to chop it to small pieces. My string is:- $longstr = “Str1.htmlstr2.htmlstr3.html”; And I want the result to be like; $firstchoppedpiece = “Str1.html”; $secondchoppedpiece =”Str2.html”; $thirdchoppedpiece =”Str2.html”; Is it …

Member Avatar for bobtutos
0
113
Member Avatar for vinnitro

This is my ScreenManager class which is used for getting the perfect DisplayMode & setting the screen to fullscreen import java.awt.*; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import java.lang.reflect.InvocationTargetException; import javax.swing.JFrame; public class ScreenManager { private GraphicsDevice vc; //give vc access to monitor screen public ScreenManager() { GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); vc …

Member Avatar for vinnitro
0
283
Member Avatar for piczim

I have recently started learning to program in c. I have written a very basic program its a currency converter. I would like to know how to put an icon into my program so when its on the desktop it looks nice. I am sure there are more important things …

Member Avatar for piczim
0
268
Member Avatar for qstar2010

Hello all, here's my issue, I've created a wonderful app from scratch which is basically a form that passes all of its info via PHP into beautiful html which then goes nicely in a easy to read email. The problem is that I don't have a clear concept on how …

Member Avatar for Zagga
0
123
Member Avatar for andrew12s

Please help me to translate this code from c to c++ #include <stdio.h> #include <conio.h> void main() { int n,i,j,a[20][20],ok=1,grade=0,aux=0;ok=1; FILE *f=fopen("c:\graph.txt","r"); fscanf(f,"%d",&n); for(i=1;i<=n;i++) for(j=1;j<=n;j++) fscanf(f,"%d",&a[i][j]); fclose(f); for(i=1;i<=n;i++) if(a[1][i]==1) grade++; for(i=1;i<=n;i++) { for(j=1;j<=n;j++) if(a[i][j]==1) aux++; if(aux!=grade) ok=0; aux=0; } if(ok==0) printf("graph is not regular."); else printf("graph is regular."); getch(); clrscr(); …

Member Avatar for rubberman
0
293
Member Avatar for strRusty_gal

int index = 3; map<int, Class> list; std::map<int, Class>::iterator test = list.begin(); std::advance(test, index); for(map<int, Class>::iterator it = test; it != list.end();++it) { cout << it->first << " " << it->second.GetPrice() << endl; } Hi Everyone, Please help me on this issue. I know how to start at a certain …

Member Avatar for vijayan121
0
207
Member Avatar for epicSHOOTER236

How would i make python read a text file and find something then read a certian number of lines below it i.e if you had: card 1: ball red it need to find card 1:, then it needs to read the line below (ball) and set it to a string …

Member Avatar for epicSHOOTER236
0
281
Member Avatar for newbie14

Hi All,We have a java application which does deal with lots of insert,update and select statement.We are using bonecp. So we took some sample heap and analyse it with MAT and its pointing to jdbc leaking. Thus we went into the codes and ensure that all resultset,statement and connection are …

Member Avatar for newbie14
0
949
Member Avatar for stealthless

Hello, I'm a starter in Python and I need help. I'm trying to ask the user to input as much text as he/she likes until he/she types EOF (end of file) on a separate line. Once he/she does, the program should end. I started on my code and below is …

Member Avatar for slate
0
543
Member Avatar for MWEB

Hello ! This code below should display me all the alert boxes but , unfortunetly it display only 3 ( without the alert inside the $.post function ) and i really don't see a problem in my code .. What is wrong? JS var uname = name.val(); alert( uname ); …

Member Avatar for MWEB
0
206
Member Avatar for pradap.adwani

For me getting same result (all the text box are null value is filled) after move the textboxes after calling request.getParameter() also... What i need to change it? Where i need to edit? # **First Jsp Page** # <%@ page import="java.sql.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <HTML> <HEAD> <TITLE>Fetching Data From a …

Member Avatar for peter_budo
0
2K
Member Avatar for nadiah.izzati

my code can't seem to find the maximum price. program Mobile; uses winCrt; type Mobilephone=record brand:integer; model:String; price:real; end; var hp:array[1..100] of Mobilephone; count,m,MobileNum:integer; max:real; PROCEDURE read_data(var newMobile:Mobilephone); begin writeln('Brand:(1:Samsung 2:iPhone 3:Nokia)'); readln(newMobile.brand); writeln('Model:'); readln(newMobile.model); writeln('Price:'); readln(newMobile.price); end; PROCEDURE displayexp(var exp:Mobilephone); begin if(exp.price>max) then begin writeln('THE MOST EXPENSIVE HP:'); writeln('Brand: …

Member Avatar for ddanbe
0
161
Member Avatar for alienwave

How can write these fuctions differently ? def computeVoltages(Vs, TC, tValues): return [Vs * (1 - e ** (-t / TC)) for t in tValues] def computeTimeValues(TC, intervals): time = [] width = 5 * TC / intervals for i in range(intervals + 1): time.append(i * width) return time

Member Avatar for alienwave
0
146
Member Avatar for markjames2012

im currently working on listview and i think i need help :) all i need to do is when i click the button it select the items and so on up to the last item and set back to beginning bu im my code its just up to the first …

Member Avatar for markjames2012
0
167
Member Avatar for blitznck_1

I am trying to get Ajax to load a form which is created in PHP and assigned a variable $copen. In Ajax how do I go about placing the variable in the URL part of Ajax to open and retrieve the JSON data. The code in my Ajax script: $.ajax({ …

Member Avatar for blitznck_1
0
405
Member Avatar for suncica2222

I need a way to check if tweet exists. I have link to tweet like https://twitter.com/darknille/status/355651101657280512 . I preferably want a fast way to check (without retrieving body of page, just HEAD request), so I tried something like this function if_curl_exists($url) { $resURL = curl_init(); curl_setopt($resURL, CURLOPT_URL, $url); curl_setopt($resURL, CURLOPT_BINARYTRANSFER, …

Member Avatar for suncica2222
0
592
Member Avatar for london-G

Hello, When I am running my page I get this error: Fatal error: Call to undefined method WC_Cart::get_fees() in /var/sites/m/mysite.co.uk/public_html/wp-content/themes/mio/woocommerce/checkout/review-order.php on line 53 Here is my review-order.php <?php /** * Review order form * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) …

Member Avatar for Atli
0
396
Member Avatar for avarionist

I spent about an hour or so googling but no luck. I want to program for hardware(which apparently people seem to think is obsolete for some reason) however i can find no tutorials on it period i suppose i could always use Assembly but my knowledge isn't that great. Is …

Member Avatar for DeanMSands3
0
3K
Member Avatar for aVar++

Here is my code, the problem I have is the alert just isnt showing, however if the alert is put in the while loop it shows but outside the loop it doesn't could someone explain why? <script> function GetText() { var name = document.getElementById("name").value; var age = document.getElementById("age").value; var house …

Member Avatar for Unimportant
0
177
Member Avatar for L-D

Hi! Got neat ad posting thingy but Deprecated: Function ereg() is deprecated in /home/content/13/11394913/html/ads/index.php on line 34 is repeated all the way down page, and then some. Index.php is SO LONG I can't get it on here! So I'll post enuf to cover ln 34. <?PHP include "inc/global.php"; include "temp.fun.php"; …

Member Avatar for L-D
0
202
Member Avatar for hg_fs2002

I would like to know how is it possible to pass registers as function arguments in C. Let's say I have something like this: int main() { register a,b; a = b; register c = a; return 0; } I want to extract a = b as a new function. …

Member Avatar for Unimportant
0
388
Member Avatar for valipour

hi how i can use ILMerge for making my c# program portable? you can see it's web site [here](http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx) and download it [here](http://www.microsoft.com/en-us/download/details.aspx?id=17630) thanks

Member Avatar for rubberman
0
301
Member Avatar for simirnov

Hi All, I am a beginner in php and working on admin side of a small website. I have attached a PHP CKEDITOR to the admin page so that the admin may edit the pages text. Here, i am a bit confused about one thing and that is about how …

Member Avatar for Qaalid
0
2K
Member Avatar for andrew12s

I am a beginner with programming and I really need to resolve this problem. So, I need to implement the following class that represents this type of crowd and operations with those : class Crowd { int* element; int number; public: Crowd(int m_number, int* m_element); Crowd(Crowd&); ~Crowd(); Crowd& operator= (Crowd& …

Member Avatar for rubberman
0
148
Member Avatar for ghosthunter1

Hi there, I finished my program and want to sell however I learnt that its pretty easy to decompile programs. A friend is using TNTLicensing to protect his programs and said me its doing well but when i researched I saw its a new company. Did you hear this company …

Member Avatar for ghosthunter1
0
99
Member Avatar for LeNenne

dim x as integer dim myday as string myday = format$(now,"mm") for x = 0 to 11 image(x).picture = image(index).picture next if myday = myday then image1(index).picture= app.path & "\*.jpg" ' that's okej Now is the question when I have in app.path 12 pictures numbered from 01 to 12 How …

Member Avatar for Klahr_R
0
141

The End.