64,152 Solved Topics
Remove Filter ![]() | |
Hi guys, I am not sure this is right or not. If I have one variable whose value is true or false and I want to use it in an if statement I could easily do if(variable1){ //do this and that } but I want to check 2 variables I … | |
I haven't had to do Php in about 5years and I'm having some trouble doing the simplest task. I use Javascript to send some parameters from a querystring to my page and so some may be 'undefined' I want to build a mySQL query based on these parameters, therefore need … | |
Hi! I need help with sending html email with all the records from two tables. I tried joint tables but it doesnt work as it should... Here is what i have session_start(); if(!@$_SESSION["UserID"]) { header("Location: login.php"); return; } ?> <?php $con=mysqli_connect("..."); // Check connection if (mysqli_connect_errno()) { echo "Failed to … | |
Hey all im working on a program that has gives you the option of converting a message(string) into 3 different schemes: Prime Shift Encoding scheme, Shifty Encoding Scheme, and a Reverse Encoding scheme. I have figured out how to encode and decode the prime shift scheme and reverse scheme, but … | |
Hi! Long time no post, mostly because I've had to put the mobile coding aside for my real job. Plus some home brewing. And lots of pinball. I have run into a problem. I am developing an application where an Excel spreadsheet (or tab-delimited text file) can be read in … | |
how i can implement php code in my blogspot website name [text free](http://text-free.blogspot.com/). how is is it possible? i want add little programme in my blogspot site ![]() | |
How do I Change the select option to check boxes in the following code: foreach($qas as $k=>$v) { echo "<input id='text' style='width:40%' type='text' value='".$v['question']."' name='questions[]' >"; echo "<select name='selected_answers[]'>"; foreach($v['answers'] as $answer){ echo "<option value='".$answer."'>".$answer."</option>"; } echo "</select>"; echo "<br/><br/>"; } | |
Having a text file: $string = '1) The most important feature of spiral model is: requirement analysis. risk management. quality management. configuration management 2) The worst type of coupling is: Data coupling. control coupling. stamp coupling. content coupling 3) One of the fault base testing techniques is: unit testing. beta … | |
Hi, All, I am just wondering is this is doable. I've tried searching it in google but still no luck. I want to merge my 2 CSV files by column. For example: File: coded.csv "Header A","Header B","Header C" "Data A","Data B","Data C" "Data A","Data B","Data C" "Data A","Data B","Data C" … | |
i have problem about while loop. this my code, error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); function multiexplode ($delimiters,$string) { $ready = str_replace($delimiters, $delimiters[0], $string); $launch = explode($delimiters[0], $ready); return $launch; } function my_replace($srch, $replace, $subject, $skip=1){ $subject = explode($srch, $subject.' ', $skip+1); $subject[$skip] = str_replace($srch, $replace, $subject[$skip]); while (($tmp = array_pop($subject)) … | |
visualbasic assignment how to draw a multicolored worm! pliz help | |
The two arrays does not compare and compute by adding one for every similar and 0 if otherwise I don't know what is wrong with the codes, but to me is seems fine. What might be the problem? <html> <head> <title>Chosen answers</title> </head> <body> <pre> <?php //Posting of the chosen … ![]() | |
Hi, when I started to look into programming, one of the things I remember many programmers are quite keen on are setters and getters. I totally understand the importance of them but there is one thing that isn't really clear to me. If I have a class with some private … | |
Chaps, I am having some problems with a return statement in a function. I have this situation: public boolean isFine(){ for( int i = 0; i < myarray.length; i++ ){ for(int j = 0; j < myarray[i].length; j++ ){ if( myarray[i][j] == myEnumeration.FRIDAY ){ return false; } else{ return true; … | |
I am opening a tab-delimited file in Excel 2010; the delimited file displays correctly in Excel but when I do a save as, to save it as a native Excel 2010 format, the resulting saved file is empty. The resulting saved file generates no errors when debugging and saves with … | |
here is the full page code sorry its bit long but i have no clue where i went wrong all i get when i run this is the page with its background and an empty text area basicly i am trying to get the info from a table in my … | |
I have the following tables **tbl_cat** -- id(pk), category (PRODUCT CATEGORIES) **tbl_subcat** - id, catid, subcat (catid is a foregin key referencing id in **tbl_cat** ) - SUB CATEGORIES I want to prepopulate my tables with categories and sub-categories of products. it's quite straightforward to insert categories in **tbl_cat** but … | |
Hi all, I am trying to get the Mouse Coordinates that are relative to my form. At the moment I am using: [CODE=c#] xs = Cursor.Position.X; ys = Cursor.Position.Y; [/CODE] However this doesn't get the "local" form mouse coordinates. My form is x = 640 y = 480. And I … | |
Hi and thanks. I am wondering if there is a way to clear the screen before the program is loading. Lenny | |
.ConnectionString = "Driver=MySQL ODBC 5.2a Driver; SERVER=localhost; UID=asdsadafg; PWD=sadsadsJFKSKF9; DATABASE=SampleDB; PORT=3306; OPTION= 1 + 2 + 8 + 32 + 2048 + 16384 can anyone explain the OPTION, what this connetion string will do... i have no idea.. please explain | |
Hello Friend, i hope someone can help me to solve my problem, i already put my database on datagridview, but my boss dont want it in standard color, so now i dont now how to change it, can i change the color using datagridview or i need to use another … | |
Using Visual Basic 10, and I am trying to identify min/max statistics and display the results. My calculations are working, but the display is not (line 68 & 80). With the way the code is written now, I don't get the error but my results are displayed as "The minimum … | |
I am attempting to learn Python, to add to my collection of languages and to get at least one programming language under my belt. So far I've only done the basics, and to test what I've learnt I made an extremelly simple calculator: #PyCalc Version 1.0 Loop = 0 print("-------------------------------------") … | |
Chaps, sorry I have a silly question. I am not quite sure if this is right, but what is the differenct between the two below: public class myclass{ public static void main( String args[] ){ boolean variable1 = false; boolean variable2 = false; ... System.out.print(variable1 + " and " + … | |
I have a very simple class for date display: class timing { public $today; public $year; function __construct() { date_default_timezone_set('GMT'); } function now() { return $this->today = date("D j M Y"); } function year() { return $this->year = date("Y"); } } I am pulling in using: $x = new timing(); … | |
I am developing an application for a client. What i need is, send updates with changed records to clients where the email that needs to be used is extracted from the database. What is weird is that i cant send it to all email addresses... Note that i dont have … | |
I am trying to set "myimage" as the background for my GUI but having problems with self.canvas.create_image(myimage,750,450) def __init__(self): self.root=tk.Tk() # The number of times the GUI is updated self.ctr = 0 #creating the Canvas self.canvas = tk.Canvas(self.root, width=750, height=450, bg = "black") #Sets the background as an image myimage=PhotoImage(file='world.gif') … | |
hey i am working with python 3 and i am trying to set a gif file as my GUI background. The canvas.configure(bg=myimage) does not work. Any ideas? width, height = 800, 500 canvas = tkinter.Canvas(width=width, height=height, bg="black") canvas.pack(fill=None, expand=False) #Sets the backround image myimage = PhotoImage(file='world.gif') canvas.configure(bg=myimage) | |
Hi all: I'm trying to pull from a table all values of a specific row (accountids) and would like to iterate through each query result while perform a specified task with each value. Example: The following q-- $get_acctids="select accountid from company_info"; $result = mysql_query($get_acctids) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $id_num= … | |
Hey Guys, I am working on a search that takes in a value via textfield. Once taken in it should display another Jframe with the info but the searchbox crashes the second I run it. Its some stupid mistake I have made or i have gone about it the wrong … | |
I'M wanting to write my own command/script for compiling my c++ files. I use g++ -g -Wall filename.cpp -o filename I'M trying to figure out how I can trip of the last four characters (.cpp) from a string. Any ideas? | |
It is possible send an e-mail from a remote .exe/.aspx through Outlook Web Access? | |
Hello Everyone, I need your help, can you please tell me how to create a text field for file upload with HTML ? I presently have this code in my form for file upload to the webserver; `<input name="userfile" type="file" size="50">`, this allows someone to browse file from their computer … | |
Hi all. I need to fix a bug in a code, it is not displaying properly (it appears in the upper-left corner and when I try to click on it, the page reloads). I cannot figure it out myself. Please help. <div class="btn_center" style="padding: 0 0 10px;"> <fieldset> <div class="edit_entry … | |
I am using sqlserver 2012. i want to convert nvarchar value from a table in to an integer. How can i do it? i am using it in a stored procedure. and nvarchar value only contains numbers. What i want to do is to multiple that nvarchar value and assign … | |
Hi all, I'm writing a simple application in C# but I'm having an annoying ArgumentOutOfRangeException thrown by Invoke() saying "Text length must be less than 64 characters long.". Is this usual that strings passed through delegates have to be shorter than 64 characters? What's the usual neat way around it? … | |
Group, I'm trying to write the commands to update a row within a SQL table. I've written the following: USE DATADESIGNSOLUTIONS SET IDENTITY_INSERT LocationID ON INSERT INTO LOCATIONS_SETUP(LocationID, LocationNumber, LocationName, LocationAddress1, LocationAddress2, LocationAddress3, LocationCity, LocationState, LocationZipCode, LocationZipCodeExt, PhoneNumber, FaxNumber, BillToAnswer, BillToLocation) VALUES(10, 1, 'Traditions in Tile / Buford RDC', '4325 … | |
I have been working on a project that requires arrival date, departure date, number of nights, price per night and total price. I have everything working somewhat but can not seem to figure out how to get the last three items to display in the text boxes instead of a … | |
Hello. I was reading http://xkcd.com/287/ while bored and thus decided to write a program that would solve such np complete problems. Here is what I got: #include <iostream> #include <vector> using namespace std; template <typename T> T NPMenuProblem(T desired, vector<T> options, vector<T> &ret) { vector<T> save=ret; T remainder; T min=desired; … | |
I am working on a password project for school, and I am stumped on one part. I know how to test if a string (or file) contains a digit, or a letter, but in this case we have to verify that there is at least one character that is not … | |
Group, I'm working to use a second for to do task that will be populate texts boxes in the first form. However I'm getting an error that says, "An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an … | |
I thought I was finished with my code until I tried to compile it and came out with an error that I really don't know where it's coming from. Can anyone look over and see if they can find the source of the error? Please and thank you! These are … | |
I have a table with several columns, the two relevant columns for what I need to do are invoiceNumber and stockNumber. The scenario here is that it's a table of invoice information, so each invoice can have and will most likely have multiple rows in the table which represent each … | |
I was writing a data structure but suddenly after a little coding a strange error gives that no operator">>" matches these operends and also no operator"=" matches these operends . its just after if (right==1) in the cin>>a[i] and a[i]= mininfinitive the code : #include <iostream> #include <iomanip> #include <fstream> … | |
I am doing a math research on mathematcians. I searched up Lady Ada Lovelace on wikipedia and many other websites and all it says is, "Lady Ada Lovelace made the first computer" If you know nything about her contributing to math please respond. Please help if you can Thanks | |
Hi I have tried evrything in a list box. The listbox contain this 04-25 ene and I will deselect 04-25 when I am going to dbclick on that item the name "ene" shall I display in a book Any Help Lenny | |
I have this text file that contain questions and their respective four multiple answers, when I try to display them in html form, the diplay only contains three multiple answers and not four. this are the codes: Text file: $string = 1) The most important feature of spiral model is: … | |
Assuming i have $a='1024,1025,0000|1020,0000|'; $b='1024,1025,0000,1020,0000,'; i want replace commas (,) in $b with (|) so that $b is equal to $a like this $b='1024,1025,0000|1020,0000|'; if i use $ob=str_replace("0000,","0000|",$b); echo $ob; output works : 1024,1025,0000|1020,0000| But, how to make it with PHP where did i put that this refers to the … | |
hello there thanks for help mke in many questions, I've learened a lot from this great community I have question about creating visitor counter,daily,monthly,yearly I've created a counter depending on IP address but all my costomer are in the same IP so this counter will not be accurate, So I … | |
Hi iam using sql server 2008 to deal with my DB, i have a column with 'int' data type when i insert number inside that column like "0025648" it return it to me "25648" without zeros why ? and how to solve this problem ? Best Regard IT_Techno |
The End.