199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nandomo

Is there any way I can make this select case more efficient? Select Case cboBoard.SelectedIndex Case 0 To 1 If intDaysRented = 0 Then If intHoursRented > 3 Then lblCost.Text = FormatCurrency(arrDailyRates(cboBoard.SelectedIndex), , TriState.True, TriState.True) Else lblCost.Text = FormatCurrency((arrHourlyRates(cboBoard.SelectedIndex) * intHoursRented), , TriState.True, TriState.True) End If Else If intHoursRented > …

Member Avatar for Reverend Jim
0
172
Member Avatar for subbu_1

I have code like below <?php if(true){ global $search; $search = "hello"; } elseif(true) { echo $search; } ?> I am unable to access $search value from if() block to elseif() block, is my approach is wrong? please anyone tell me any other way to access variables from one block …

Member Avatar for bnmng
0
264
Member Avatar for brandon66

Hello everyone~! I have a text file with integers on every line like: 2397 4013 9382 5995 4961 9961 1535 146 8153 3877 5872 2690 9731 8060 8452 7873 1109 4152 7256 2437 6815 2032 2473 1090 5674 6096 7868 422 My problem is: Im not sure how to store …

Member Avatar for brandon66
0
192
Member Avatar for Niloofar24

Hi friends. With `datetime.datetime.now()` or `datetime.datetime.today()` i can get the current date (English calendar) for my program but what about if i want to get the current date (from Persian calendar) for my program; then what should i do? As my pc os date is set to English calendar so …

Member Avatar for Niloofar24
0
342
Member Avatar for mjb925

I have 4 different dynamic variables that change per user (age, gender, country, approval rating) What I need to do if create a conditional if statement where it checks to see if all or any are correct. I can get it to work with all, and can get it to …

Member Avatar for Squiva
0
177
Member Avatar for Niloofar24

Hello. I want to learn python urllib. I have installed it and now looking for a good tutorial, any suggestion?

Member Avatar for Niloofar24
0
281
Member Avatar for Niloofar24

Hi friends! import urllib url = 'http://www.python.org' text = urllib.urlopen(url).read() I have typed the code above on the terminal and in the next line with `print text` an html file printed there. I want to send it to a text file, how can i do that?

Member Avatar for Niloofar24
0
297
Member Avatar for Niloofar24

I want to exchange line 18 text with line 23 lable text, but here line 18 doesn't work in my code? Any idea?! from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label def timer(): delta = datetime.datetime(2015, 3, 21, 2, 15, 11) - datetime.datetime.now() days = delta.days …

Member Avatar for Niloofar24
0
3K
Member Avatar for complete

How do I edit a project template used in Visual Studio? I am using Visual Studio 2008 with C# and C++ I am doing some development on some code. The project uses an SDK that was put together by a 3rd party company that, when run, adds content to the …

Member Avatar for gusano79
0
223
Member Avatar for jonlloydd

I am trying to create a PHP PDF uploader that prints the filename type and size. However when I click the upload button it says "Upload failed with error". If anyone could help with this I would really appreciate it! <?php $allowedExts = array("jpg", "jpeg", "gif", "png", "pdf"); $extension = …

Member Avatar for registerers
0
262
Member Avatar for surya777

#include<iostream.h> void main() { int i=o; i=400*400/400; cout<<i; } i am getting a wrong output

Member Avatar for NathanOliver
0
144
Member Avatar for Andrae
Member Avatar for Andrae
0
421
Member Avatar for kellnerq

Hi together i need your help... again for my lab work. The question is the following: Use a single-subscripted array to solve the following problem. A company pays its salespeople on a commission basis. The salespeople receive £200 per week plus 9 percent of their gross sales for that week. …

Member Avatar for Victim_1
0
3K
Member Avatar for OMER AHMED

Dear All i want to design a software in which i play a role of server and all users in my office will be a clients. whenever IT department want to send any message to all i will write in server app and msg will appear on everyone's screen and …

Member Avatar for AleMonteiro
0
158
Member Avatar for subbu_1

html form // This is the dynamic drop down menu <form action="search.php" method="post"> <?php $select_query = "Select distinct category from books"; $select_query_run = mysql_query($select_query); $select_query_array = mysql_fetch_array($select_query_run) ; $cat = $select_query_array['category']; echo "<select name='name'>"; while ($select_query_array= mysql_fetch_array($select_query_run) ) { echo "<option value='".htmlspecialchars($select_query_array["category"])."' >".htmlspecialchars($select_query_array["category"])."</option>"; } echo "</select>"; ?> // search field …

Member Avatar for minitauros
0
235
Member Avatar for akane.mikazuki

#include<stdio.h> #include<conio.h> main () { clrscr(); int a=1,b,sum; while (a<=100) { sum=0; for (b=1; b<=a+9; b++) { sum=sum+b; printf("Sum is %d.\n", sum); } a=a+20; b=a; } getch(); return(0); } -This code is supposed to print the sum of the first 100 words. Getting the sum of the first ten, skipping …

Member Avatar for jaduong
0
109
Member Avatar for mattyd

I am recieving a notice(s) multiple times when running a file: Notice: Undefined index: Telephone in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 111 Notice: Undefined index: eMail in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 112 I have researched this and the ways to solve it. Most ways involve isset it seems, but none of my code …

Member Avatar for pritaeas
0
1K
Member Avatar for tentrabyte

Enter five scores and display the lowest score and the difference of each score from the highest score. I'm so confused. I don't know if i'll use array or looping. Need you help. Thanks

Member Avatar for David W
0
820
Member Avatar for cool_irfan

Hi friends, I'm developing the online exam application and strucked. below is my code to display the records randomly each time, but the problem is these questions are repeating and also the answer of the next question(that is about to display) is saved as the answer selected for present displayed …

Member Avatar for cool_irfan
0
3K
Member Avatar for bikash_2

` #Author : Bikash Guragai #versione : 1.0 #email : bikashguragai@gmail.com or bikashguragai@programmer.net import random print ("Hello and welcome") Name = input("What is your name: ") print ("Nice to meet you",Name) ok = input("Click enter to move on") play = input("Lets play a game") b = input("Think of any Any …

Member Avatar for DragonMastur
0
201
Member Avatar for Smoking Bros

Hello everyone! I got a series of C++ tutorials and a series of Blender tutorials and 1 tutorial on how to get free Windows Vista look on your Windows XP on YouTube.. So I thought I would so some PHP tutorials too... And as always I wanted to check if …

Member Avatar for J. M. P.
0
811
Member Avatar for DragonMastur

This is a PyEditor I made because I couldn't get a IDLE working on windows 95.

Member Avatar for DragonMastur
0
427
Member Avatar for robertlaar

What is the reason to use PHP frameworks when we have wide range of Content Management Systems available in the market.\

Member Avatar for cilla
0
280
Member Avatar for rhodoscoder

I'm trying to work with the codeigniter CMS BONFIRE.I've used codeigniter before, I actually have an installation of both pure codeigniter and bonfire on my local server.First off I've been having trouble with my .htacess files on my xammp server but that's a topic for another day.My Bonfire installation for …

Member Avatar for cereal
0
444
Member Avatar for mbowenitj

Hi guys, I need coding help in printing contents that are inside the groupBox only. I have a form with two groupBoxes, and would like to print contents on only 1 groupBox. Thanks.

Member Avatar for Minimalist
0
861
Member Avatar for mattyd

I am working with two seperate files which contain similar code - One throws a parse error for an identical line, the other does not. I do not understand why this would be. **The error on the file that will not run is**: Parse error: syntax error, unexpected '2' (T_LNUMBER) …

Member Avatar for mattyd
0
422
Member Avatar for michael.james.90475

public void rotate(double theta) { // this is the matrix to multiply by.. //x*cos(theta) , y* sin(theta) // x* -sin(theta) //y * cos(theta) vertices[0][0]= vertices[0][0]* Math.cos(theta)+ Math.sin(theta)*vertices[0][1]; vertices[0][1]= vertices[0][0] * (-Math.sin(theta)) + Math.cos(theta)*vertices[0][1]; vertices[1][0]= vertices[1][0]* Math.cos(theta)+ Math.sin(theta)*vertices[1][1]; vertices[1][1]= vertices[1][0] * (-Math.sin(theta)) + Math.cos(theta)*vertices[1][1]; vertices[2][0]= vertices[2][0]* Math.cos(theta)+ Math.sin(theta)*vertices[2][1]; vertices[2][1]= vertices[2][0] * …

Member Avatar for michael.james.90475
0
256
Member Avatar for programmingman

I am having difficulty using phpmailer. I get connection errors. The most recent error is: Connection: opening to smtp.gmail.com:587, t=300, opt=array () Can someone tell me what is wrong?

Member Avatar for jstfsklh211
0
123
Member Avatar for methuselah90

I would like to update a variable and array item after a record array search, and wanted to know what would be the best way of carrying it out in Javascript. In this case, if a match is found between the variable and area item, then the postcode item should …

Member Avatar for jstfsklh211
0
274
Member Avatar for ashalatha

Hi Can any one help me how to to get the records in between the dates by using from and to dates using php,mysql,ajax

Member Avatar for jstfsklh211
0
180
Member Avatar for jonlloydd

PDF file uploader is spitting out an error, could anyone help? Parse error: syntax error, unexpected T_VARIABLE in /home/stylecraft/domains/stylecraft-yarns.co.uk/public_html/dev/_cms/upload_pdf2.php on line 37 <?php $allowedExts = array("jpg", "jpeg", "gif", "png", "pdf"); $extension = end(explode(".", $_FILES["file"]["name"])); if ($_FILES['file']['error'] !== UPLOAD_ERR_OK) { die("Upload failed with error " . $_FILES['file']['error']); } $finfo = finfo_open(FILEINFO_MIME_TYPE); …

Member Avatar for jonlloydd
0
265
Member Avatar for Gl753

I'm working on a programme that's supposed to accept input of doubles from an array however it's not quite working out for me. It takes in Integers alright but not the double values. Could someone point me in the right direction Any help is much appreciated double array[] = new …

Member Avatar for samson.dadson.3_1
0
229
Member Avatar for Priti_P

Hello, Am new @angularjs. I am using progressbar in angular bootstarp. but for my requirement its little bit tricky. I am using progressbar for DB migrations. OnClick of button my migration process starts and bar should show progress. What I was thinking to do is : onclick call function which …

Member Avatar for Priti_P
0
231
Member Avatar for jonlloydd

I am trying to print a table of reviews based on the date they were written. I set the dates and hit search and nothing happens? There are record in the database. Any help would be appreciated! <?php include_once("includes/session.php"); confirm_logged_in(); include_once("../includes/functions.php"); include("../includes/dbopen.php"); include("../includes/mysql.php"); ?> <?php $pageTitle = 'List Orders'; $pageSubTitle='Orders'; …

0
119
Member Avatar for Markyboy

Help. I've been tasked with writing a program that calculates the average temp for a week, getting user input for daily temps, calculating the average and printing out the results. I got that part. The second part is asking me to print out a message (Too hot!) if the avg …

Member Avatar for samson.dadson.3_1
0
225
Member Avatar for codingin

I have connected to database link below $db_host = "localhost"; $db_username = "root"; $db_password = ""; $db_name = "db"; $sql = new mysqli($db_host,$db_username,$db_password,$db_name); And I refered to it on a different page like: function user_exists($username){ $username = sanitize($username); $query_user = $sql->query("SELECT COUNT(`user_id`) FROM `users` WHERE `username` = '$username'"); return (mysqli_result($query_run,0)==1)? …

Member Avatar for codingin
0
562
Member Avatar for hardikpatel

hi . plz help me i want to convert html page to pdf file how can i do that can you tell me the code for it or send me the link which help me reply soon thnks

Member Avatar for Select_1
0
611
Member Avatar for Ant695

` This is the code /*Practice Assessment 2 - Question 5 Program to calculate how many days and weeks in a given month 24/2/15*/ import java.util.*; public class calender { public static void main (String []args) { Scanner keyboardIn = new Scanner (System.in); String month; int days_in_month, weeks, days; System.out.print …

Member Avatar for michael.james.90475
0
236
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Member Avatar for Shane-dev
0
221
Member Avatar for zaxo311

I have to write program in c linux for operating systems class - communicator using fifo which has to work like that: ./Speak create name (to create user) ./Speak send from to (to send msg from user to user) ./Speak history name (to read all msgs sent to user Every …

Member Avatar for kdusyared
0
171
Member Avatar for lexd

I cannot write Assembly code to save myself can someone write this for me please I want to make a fast case statement as a standard case statement is way too slow for my project. my project hangs on this centail peice of code. Hear below I see how to …

Member Avatar for Schol-R-LEA
0
205
Member Avatar for Stefce

Hello everyone i have a little problem over here im making share button so i want to update the database on the column 'isShared' with value `1` so here is my code but it doesnt work, all the time is showing me `Already shared ticket!` Here is the code: if(isset($_POST['share'])) …

Member Avatar for diafol
0
298
Member Avatar for amogh.max

I would like code to display ms access database dynamically in a jframe . here is my database.**[img]http://i.imgur.com/PtuGLnX.png?1[/img]**.I tried searching a lot but i think i need personal help in this area as this is a suppose to be dynamically updated Jframe.on the other hand i am open to suggestion …

Member Avatar for JamesCherrill
0
420
Member Avatar for fireburner29
Member Avatar for fireburner29
0
117
Member Avatar for chimagreat

![Please I need a help on this. I am working on a C# bible projection application like easyworship (www.easyworship.com). I have a challenge, I want to be able to create a replica of their bible search textbox. It can search bible book, chapter and verse in a single textbox. When …

Member Avatar for ddanbe
0
296
Member Avatar for fireburner29

how to make active in dynamic multi level css drop down menu with php mysql ? i given my html and php code. <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html">SB …

0
158
Member Avatar for Magic8Computing

Hi, I am new to programming and have attached my code so far, i need to insert the code to read data from serial port but havent a clue where to put it or how any help would be great Imports System Imports System.IO.Ports Public Class Form1 Private mySerialPort As …

Member Avatar for ddanbe
0
849
Member Avatar for PulsarScript

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CompareLab { abstract class Person { public string Name { get; set; } public string Id { get; set; } public Person( string name,int ID) { Name = name; Id = ID; } public abstract void DisplayDetails( ); } …

Member Avatar for pritaeas
0
140
Member Avatar for jonlloydd

Function is called in my functions file. function Get_Favourites($fields){ $member = $fields['fv_member']; $sql = "SELECT * FROM favourites "; $sql .= "WHERE FV_MEMBER='" . $member . "' "; $sql .= "ORDER BY FV_PRODUCT"; return FetchSqlAsObjectArray($sql); } Functions file is called in my header and is working with other functions. <?php …

Member Avatar for jonlloydd
0
9K
Member Avatar for Priti_P

Hello, Am trying to fetch data from one table of one DB and put it into another DB's table. I wrote below connection code for this: <?php $date = date('Y-m-d H:i:s'); /* OLD EIMS connection values */ $old_host= "localhost"; $old_uname="root"; $old_pass="ABC"; $old_database ="EIMS_OLD"; /* NEW EIMS connection values */ $new_host= …

Member Avatar for Priti_P
0
163

The End.