199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for persianprez

So I have a text file with sets of 4 items I want to go in different arrays. I've tried the following but without success. <?php $urls="list.txt"; $page = join("",file("$urls")); $kw = explode("|", $page); $count = 0; $links = array(); $images = array(); $widths = array(); $heights = array(); for($i=0;$i<count($kw);$i++){ …

Member Avatar for Bachu
0
183
Member Avatar for sym366

I upload my test_maze.txt so you can see my problem. I have some 3 unwanted $ that went up and 1 unwanted $ that went down on my path on the maze from P to T. I think the problem is in line 20 in the def main(): of my …

Member Avatar for Xantipius
0
1K
Member Avatar for TonyG_cyprus

For my project, these two queries don't work. The sqlite manual says to use 'qualified-table-name' but if I do (flist.fdata) an error is returned 'no such table'. As they are below no errors are returned, but the database table is not affected. if (isset ($_POST['del'])) { $id = $_POST['id']; $titl=$_POST['titl']; …

Member Avatar for TonyG_cyprus
0
208
Member Avatar for aabbccbryanmark

case 2: System.out.println(); ctr2=1; System.out.println("Select products and add to cart"); for(ctr=0;ctr<nList;ctr++) { System.out.println(ctr2 + ". " + itemArray[ctr] + " " + priceArray[ctr]); ctr2++; } System.out.println(); System.out.println("Enter the number of item you want to purchase: "); int itemPur = Integer.parseInt(a.readLine()); System.out.println("Choose the product you want to add to cart"); for(ctr1=0;ctr1<itemPur;ctr1++) …

Member Avatar for aabbccbryanmark
0
3K
Member Avatar for losh177

Hi, I'm having problems with line 37 in my Driver class. I know that I get that error because, according to Java, the variable Task, in the Driver, has not been initialized, but I do not see how I'm not initializing it. Thanks [CODE]import java.util.Scanner; import java.io.*; public class Driver …

Member Avatar for dimasalang
0
311
Member Avatar for mozala

I have a problem with search function by name ,could anyone help me? This my code so far!! Thanks in advance. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; class phonebook { public : phonebook() : MobilNumber(0), lastName(""), firstName(""), pcode(0),Email(""),city(""),Street("") { } void setMobilNumber( …

Member Avatar for Ajexa
0
569
Member Avatar for lulu79

Hi, i have a dataset with 2 columns. 1 column is in String datatype and another one is in Timespan. Now i want to generate a chart from the dataset. While i'm trying to generate the chart, it has error: *"Series data points do not support values of type System.TimeSpan …

Member Avatar for lulu79
0
2K
Member Avatar for superchica08

Combining queue and stack link list? hello so here is my question i ave to connect a link lists together, one who behaves like a stack the other like a queue.the numbers used are 11 22 44 77 33 99 66. so the stack link list looks like this 66 …

Member Avatar for Lerner
0
1K
Member Avatar for mtho

Hi guys. Im trying to write a php Read More script for my blog. What I want is to be able to render the first two paragraphs and then give a Read More link for the rest of the article. I've tried doing it myself and failed. If someone can …

Member Avatar for LastMitch
0
131
Member Avatar for superchica08

How to display odd and even numbers from a queue link list? hello everyone i really need some help right now on this program. what this program is supposed to do is copy 11 22 44 77 33 99 66 into a linked list that behaves like a queue. the …

Member Avatar for chaau
0
4K
Member Avatar for maurices5000

Suppose I have a multiLine textbox such as this one. I type SELECT [tablename] dot....(for example: tblEmployee.FirstName) Do you think it is possible to get a list that will show a list of possible attributes for the table? All the intellisense textboxes I've seen are single line. I would like …

Member Avatar for maurices5000
0
153
Member Avatar for nitin1

x^2 + S(x)*x - n=0 where n can be till 10^8 interger . and s(x) is the sum of the digits of the x integer. we have to print the value of x for which this equation holds otherwise print -1. my answer is taking too much time with brute …

Member Avatar for Gonbe
0
128
Member Avatar for holosoft

Hi, This is a part of my code..I'm making a Post form if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ print "<tr><th>Email1: </th> <td><input name=\"email\" type=\"text\" class=\"textfield\" id=\"email\" /></td> </tr>"; print "SESS not set"; //////////////////for test } if(isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) !== '')){ $memberEmail = $_SESSION['SESS_MEMBER_ID']; print $memberEmail;/////////////////for test print "<input name=\"email\" type=\"hidden\" value=\"{$memberEmail}\"class=\"textfield\" …

Member Avatar for LastMitch
0
129
Member Avatar for geneh23

Hey everyone, Forgive me if this is a dumb question but I can't figure out why my data that I've typed in or selected in the form doesn't show when I actually send out an email once I click the submit button. I get an email stating the subject of …

Member Avatar for LastMitch
0
232
Member Avatar for nicoalmighty

please help me on my project on how do i make this upload music files also help me on making the upload path i don't know how to start. i really do need your help guys :( this the controller <?php if(!defined('BASEPATH')) exit('no direct script access allowed'); session_start(); //we need …

Member Avatar for LastMitch
0
266
Member Avatar for 9tontruck

Hi, After I make a GUI program on my computer nicely, every object in the form often changes in its location and size in different computer. I know it is because the monitor resolution is different and there are several solutions on the web but none of them actually works …

Member Avatar for 9tontruck
0
191
Member Avatar for BigPaw

I would like to write Python 3.3 code on my Android Mobile Phone. Are you using any particular app to do this? Is it also possible to compile?

Member Avatar for BigPaw
0
132
Member Avatar for andyy121

$name = $_FILES['myfile'] ['name']; $tmp_name = $_FILES ['myfile'] ['tmp_name']; i wont to know why the variable $name, is begin with name can somebody explain me this variables and parameters.

Member Avatar for andyy121
0
152
Member Avatar for yanivlt777

Hi, I have a table with date column where the date data is represented by a number. I would like to view this data in a date format (dd-mm-yyyy) after running the sql statement. Appriciate if you could let me what is the code for it. Thanks. Y

Member Avatar for relalimarmo
0
765
Member Avatar for nUmbdA

I am in a Fundamentals of Programming class which we are using Python. In the book was a simple code to solve a problem where a cook knows in cups how much he needs but we are converting it to ounces. I was playing around with that and trying to …

Member Avatar for glenwill101
0
593
Member Avatar for t0kipot

hi, my command button sets its function to get the sum of my daily income. And when i click it again the sum will become double (EVERY CLICK) so i want to my command button to WORK by only 1 CLICK. example 10 + 10 = 20 when i click …

Member Avatar for AndreRet
0
139
Member Avatar for heshanm

Hi, I want to display current date and time in my system..Therefore i have created following coding. <?php $today= date("F j, Y, g:i a"); echo $today; ?> This generates time based on GMT..But i want to convert the time to our country's local time which is more than 05:30 hrs.How …

Member Avatar for heshanm
0
180
Member Avatar for poppo

I have a vb.net 2005 project that is writting an audit trail to a text file. I would like to format the file name so that it includes the date and time it was created. Such as myfile_030707_1645.txt I am not having much luck doing so. I am new at …

Member Avatar for Prashant_Y
0
2K
Member Avatar for porkie.mcpork

Hi all, Requirement: - I have a perl script that I need to run for several hours, for a performance test. - I would like to create a second script in ANSI C to call the perl script. The C script should be able to parse any of the text …

Member Avatar for porkie.mcpork
0
271
Member Avatar for SHAHAB UDDIN
Member Avatar for Rishabh876

so i was trying to make a binary tree program. just inserting and deleteing. some how i messed up. i think insertion is ok till level 1 after that stays on level 1 only. also the function to delete the whole tree is not working. it only deletes node at …

Member Avatar for Rishabh876
0
316
Member Avatar for Dili1234

I want to send crystal report as email Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports System.Web.Mail Public Class Form1 Dim cryRpt As New ReportDocument Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Dim cryRpt As New ReportDocument End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Member Avatar for Begginnerdev
0
1K
Member Avatar for love.emeter

I've tried to change to yellow, then pause for 4 seconds before changing to green but it doesn't work. public TrafficLight() { // Construct the circles red = new Circle(); yellow = new Circle(); green = new Circle(); // Set their color and make them visible red.changeColor("red"); red.makeVisible(); red.moveHorizontal(200); red.moveVertical(200); …

Member Avatar for love.emeter
0
295
Member Avatar for Diogo Martinho

Hello, i'm currently struggling to solve a very annoying issue that appeared when I was programming my HTML page I'm getting an error in this function function Tags() { if ( xmlHttpObj.readyState == 4 && xmlHttpObj.status == 200) { var docXML = xmlHttpObj.responseXML; var tagsElem= docXML.getElementsByTagName("name"); alert("check"); var tags = …

Member Avatar for adam.adamski.96155
0
206
Member Avatar for shhh

` <? error_reporting(0); require_once ('settings.php'); include 'siteHeader.php'; include_once( 'adodb_connect.php' ); date_default_timezone_set("Asia/Manila"); function formatDateForTimeclock($timestamp) { if ($timestamp == "0000-00-00 00:00:00") return '<span id="open">Open</span>'; else return date("M j 'y - h:i:s A", strtotime($timestamp)); } function getDurationClockedIn($start, $stop) { if ($stop < $start) return ""; else return number_format( ( ( strtotime($stop) - strtotime($start) …

Member Avatar for diafol
0
194
Member Avatar for wallstr33t

The cell values in excel are all formatted as text. Each value in the source array is not a String but to a proper data type based upon its value but I want the cell formatted value as it would appear on the screen in excel. Some of the cells …

Member Avatar for wallstr33t
0
555
Member Avatar for arcticM

I have a form with 1 textfield, on pressing tab the value in input is saved and the form refreshes. the first time I open the form there's a focus on the input text (I have this jQuery('#input_x').focus(); when creating the form code) but when the form refreshes the focus …

Member Avatar for arcticM
0
121
Member Avatar for johnef_sh

hay how is everybody here, I have this form which should sign up users and send email to them to confirm they emails the users sign up OK but the Email don't go at all to the users email see my code and please need help on this. <?php if(isset($_POST['submited'])) …

Member Avatar for johnef_sh
0
254
Member Avatar for asaidi

Hi i have an html output and send to the folder using ob_start and file_put_contents('xxx.html', ob_get_contents()); my problem is save automatically this file after converting to pdf using html2pdf is it possible to do that:auto save the html to pdf using html2pdf cheers

Member Avatar for asaidi
0
3K
Member Avatar for david.f.smith.351

Hope someone can help... Im no programmer and it will no doubt show in my questions... I have an iframe with the source of: email.php?ID=[email] The ID is passing an email address which will be different every time, I would like to use this variable as the address to submit …

Member Avatar for adam.adamski.96155
0
1K
Member Avatar for JuliaCplus

I need to write a program to enter 3 names then display the name is aphabetical order. Example Jessie, sam, and chris. the program should display: chris Jessie sam Please help

Member Avatar for NathanOliver
0
923
Member Avatar for PhilEaton

Sorry, I am very new to AJAX, and I while there are tons of examples out there, it is hard for me to understand. If you could please help me out with my specific example I'd much appreciate it. The AJAX syntax is just very strange to me. Anyway, I …

Member Avatar for goldentuna
0
346
Member Avatar for johnpaul.denton

Hi I'm quite new to Python and am trying to figure out where I'm going wrong, I'm trying to use a bisect search to find :- Monthly payment made to clear loan amount using :- Monthly interest rate = (Annual interest rate) / 12 Monthly payment lower bound = Balance …

Member Avatar for johnpaul.denton
0
72
Member Avatar for fred999

Hi all, how would you adjust the height of an iframe based on its src content? I want to integrate a forum (phpbb) inside my custom made website. The problem is that there is no way to dynamically adjust the iframe height... im pulling out my hair here... I thought …

Member Avatar for goldentuna
0
2K
Member Avatar for DavidB

Hi, folks. I have written some pretty complicated programs in Javascript (in terms of the code itself), but I haven’t experimented much with the nuts-and-bolts of Javascript. In particular, I have written all my programs as single blocks of code. For example, I have written several programs to solve for …

Member Avatar for goldentuna
0
284
Member Avatar for Alexandro

I know that I can import an css file in other css file with @import Ex: @import "style.css"; and i use this in allcss.css Can I do something like this in javascript, import a javascript in other javascript ;

Member Avatar for goldentuna
0
696
Member Avatar for A0110

Hi guys, I have a long running process called as the balancing process. This process updates the records in the database. I have 2 radio buttons 1: Show all records 2: Show only imbalances These radio buttons are used to fetch the data fromt he database and display them on …

Member Avatar for A0110
0
178
Member Avatar for HunainHafeez

with a lil bit of change in code ,it's functioning, but I want it to function with data members being private :-/ #include<iostream.h> #include<conio.h> class account{ public: int account_number; float balance; int passw; public: void display() { cout<<"Account number is:"<<account_number<<endl<< "Account balance is:"<<balance<<endl; } void user(int acc, float amou, int …

Member Avatar for HunainHafeez
0
187
Member Avatar for taylor.mitchell.353

My Text file is below. The bounds should be 0-2 for letter A or D then 2-15 for StateName(these are new states being added to a stack) and 15-25 for what should be the capital, but not all of them have capitals and for those I am getting an out …

Member Avatar for JamesCherrill
0
158
Member Avatar for ayushcr7

Help me out pls...i dont understand why am i getting sigsegv error for many of my problems on spoj.This is one of them: http://ideone.com/B7KFW http://www.spoj.pl/problems/COINS/ I mean i know that i am accessing data outside the array but where?

Member Avatar for nitin1
0
105
Member Avatar for ronnel09_1

#include<stdio.h> #include<conio.h> void main() { int a[20],i; clrscr(); printf("enter 20 numbers: "); for(i=0;i<20;i++) scanf("%d",&a[i]); for(i=0;i<20;i++) printf("%d\n",a[i]); getch(); }

Member Avatar for Adak
0
227
Member Avatar for prince26121991

I just want to enter of 5 students data in structure but this loop is not running. pls help me out #include<stdio.h> #include<conio.h> #include<string.h> struct student { char name[20]; int age; float marks; } a[5]; main() { int i; clrscr(); for(i=0; i<5; i++) { printf("Enter the name of student"); gets(a[i].name); …

Member Avatar for prince26121991
0
121
Member Avatar for SimonFrance

Hi, Can anyone develop alibaba clone website in PHP? something like www.superbscripts.com ? Features like them, We want work from scratch. Thanks. Best Regards, Simon France

Member Avatar for SimonFrance
0
108
Member Avatar for nheziscute22

hi please help me make a username with number .. im using stdio conio ctype and string as include thanks in advance

Member Avatar for NathanOliver
0
312
Member Avatar for noahjonesnoah

Im curious if anyone knows if its possible to write a program to generate a regular expression given a finite automation. To make things less complicated I want to limit the number of states to about 4, assume the FA is in minimal form and that the FA has only …

Member Avatar for Gonbe
0
300

The End.