64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lukwagomedia

Hi everyone! I know this problem has already been discussed but I use MYSQLI so I have different issue here. My problem is: I have coded a login page (my testing page) för a forum that I am creating. But it doesn't work. I have spent 4 days going through …

Member Avatar for diafol
0
310
Member Avatar for Amaina

I'm trying to output/write mysql SELECT results to a text file. The SELECT statement results are three records but when i use fwrite to write these results to a textfile, only one record is written. What can i be possibly be doing wrong? Here is the code snippet <?php include …

Member Avatar for Amaina
0
3K
Member Avatar for pyguy25

Hello. I was wondering if anyone could help me with a caesar cipher program I am attempting to create. I was asked to write a caesar cipher encoder program. Ok. No problem. This is what i got: [code] import string def main(): print "This program will encode your messages using …

Member Avatar for FaZeSkwlSh00ter
0
7K
Member Avatar for Cory_1

I am writing a code that reads a user-input text file, and displays all words(excluding duplicates), and displays them in ascending order. My code runs correctly, and displays the words. The only problem are quotation marks. I uploaded a sample from a fanfiction I wrote a long time ago, and …

Programming java
Member Avatar for JamesCherrill
0
597
Member Avatar for cambraydesign

I'm trying to change this soap response into php variables and failing! I am trying this like: $return = $response->DownloadDataByUserStringResult->UserId; But this doesn't work $options = array( 'soap_version'=>SOAP_1_1, 'exceptions'=>true, 'trace'=>1, 'cache_wsdl'=>WSDL_CACHE_NONE ); $client = new SoapClient('http://client.Service.asmx?WSDL', $options); } catch (Exception $e) { echo "<h2>Exception Error!</h2>"; echo $e->getMessage(); } $params = …

Member Avatar for cambraydesign
0
2K
Member Avatar for Amaina

I have two mysql tables namely tableA and tableB. tableA +-----------+--------------+---------+ | tableA_id | title| month| +-----------+--------------+---------+ |1 | malaria| january | |2 | pneumonia| january | |3 | HIV| january | |4 | tuberculosis | january | |5 | dengue fever | january | +-----------+--------------+---------+ tableB +-----------+-----------+--------------------+---------------+-----------------+ | tableB_id …

Member Avatar for Amaina
0
300
Member Avatar for killingmonk

My program is supposed to decide whether a number is an integer or not. I've tried: if ($variable % 1 = 0) and: if ($variable % 1.0 = 0) I know that it can be done with regular expressions, but I'm only on day three of Sams Perl in 21 …

Programming perl
Member Avatar for 2teez
0
307
Member Avatar for NightOwl19

Heya guys, i've been learning python for few weeks now and it's one of the best decisions i have made in my life so far..it's quite an interesting language and very helpful for beginners, i must say..now i tried to do some tickling with django and somehow managed to install …

Member Avatar for Manjunath_3
0
363
Member Avatar for berserk

I dont fully understand this issue at all, it makes no sense to me for several reasons but ill liust the main ones i have code elsewhere that works just fine and is identical in function and setup i dont think the issue is a registry key issue, this i …

Member Avatar for rproffitt
0
663
Member Avatar for ravi_14

Hi All, I am trying to implement generic link list in c++ . But getting below error . Please assist me to correct it. LinkedList.hpp LinkNode<E>* head; errr: unknown tpe name ''LinkNode // LinkNode.hpp // cplus // // Created by Ravi Rathore on 10/12/15. #ifndef LinkNode_hpp #define LinkNode_hpp #include <stdio.h> …

Member Avatar for deceptikon
0
288
Member Avatar for butterflyTee

FROM: ORACLE 9i Give the SQL statements that determine the following: 1. Which customers lives in New Jersey? SELECT * customer FROM customers WHERE state = 'NJ' 2.Which orders were shipped after April 1, 2003 SELECT * FROM orders WHERE shipdate to_date('01/04/2003', DD/MM/YYYY') 3. Which books are not in Fitness …

Member Avatar for Miris_1
0
2K
Member Avatar for pritaeas

Hi. We're looking into building an easy to use audio player to use at parties. BPM Studio works great, but most people don't know it and have trouble using it. So far I've found [NAudio](https://naudio.codeplex.com), which makes playing mp3's easy. I'm looking for something I can use so I can …

Member Avatar for qingshan05
0
439
Member Avatar for scheppy

Ok, so I have a JButton on my program and later on in the program i want to put an image on the JButton I have many buttons that start out with images on them, but Im wondering how to add images to the JButton at a later date so …

Member Avatar for JamesCherrill
0
4K
Member Avatar for SimonIoa

ello i am a bit confused because i asked a couple of programmers but i couldnt get a straight answer. I want to make my website -it is written in PHP, Javascript, Jquery- a multiplatform app. As far as i read flash builder for PHP with ZEND is the best …

Member Avatar for SimonIoa
0
460
Member Avatar for blueguy777

How to remove duplicate mobile numbers from input text box1 and print the result into text box2. Example mobile nos: 7795012345 7795012345 7795012345 7411312354 7411312354 9900454321 9900454321 9632554123 9632554123 output should be: 7795012345 7411312354 9900454321 9632554123 <?php $myarray = array(); $myarray['numbers']=$_POST['numbers']; foreach($myarray as $num){ $numbers=$num; } $unique = array_unique($numbers); $output=implode("<br …

Member Avatar for blueguy777
0
567
Member Avatar for iarpana

import java.io.*; public class testprog { public static void main(String args[]) throws IOException, InterruptedException { String command="find BEL/ -type f | wc -l"; Process p=Runtime.getRuntime().exec(command); p.waitFor(); BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); String line=reader.readLine(); while(line!=null) { System.out.println(line); line=reader.readLine(); } System.out.println("Done"); } } It's return null value. plz help me

Member Avatar for jwenting
0
243
Member Avatar for malatamil

while running the phpunit project am getting error like "cannot open file src/autoload.php". i tried with this reference https://phpunit.de/getting-started.html. In cmd i used the below command line >> phpunit --bootstrap src/autoload.php tests/MoneyTest please anyone help me to solve this issue.

Member Avatar for malatamil
0
980
Member Avatar for shamas195

if top=0 write:"stack is empty" else top__ push(stack,N,top,x) if top=N write:"stack is full" else settop:=top+1 set:stack top[x] if top=0 write:"stack is empty" else top__ push(stack,N,top,x) if top=N write:"stack is full" else settop:=top+1 set:stack top[x]

0
139
Member Avatar for James_43

Hi all, I have a multidimensional array [0]:[0], [1], [2], [3] and I want to try and find the min and max values of each index of that array over the whole array. I am using: for ($i = 0; $i < count($input); $i++) { $string1[] = $input[$i][1]; $string2[] = …

Member Avatar for James_43
0
180
Member Avatar for bLuEmEzzy

Hey guys please help me with my code, I want to disable select drop down if $stat=a, this is my code. Thank You! echo "<select name='name' id='name' 'if ($stat =='a'){ echo ('disabled');}'>";

Member Avatar for bLuEmEzzy
0
2K
Member Avatar for blueguy777

The following table query is not executing properly, what is the correct syntax? $m_query = 'Insert into'.$job_id.'(`mobile`,`routeID`,`status`) values ('$mobile','$routeID','Sent')';

Member Avatar for pritaeas
0
252
Member Avatar for Macko888

Hi I am currently developing a mobile / tablet application and i've run into a stump. I have a webview that loads a form from a website that i have no control over, this website utilises the django platform. So the situation is this: The form on the foreign website …

Member Avatar for Macko888
0
5K
Member Avatar for tiger86

I've decided to write a Website in C++. I am sick of dealing with languages that layer on top of other languages, so I just want to write it in C++. I know about CGI++, but I was wondering if there were any other tools or methods used for writing …

Member Avatar for zelrick
0
3K
Member Avatar for UK-1991

Hello, Created a query for getting users list excluding the logged in user well I thought about creating a simple one but huh that didn't worked for me. Okay so what logic and for what did I created for. I tried to show the users that are friends with each …

Member Avatar for UK-1991
0
432
Member Avatar for JordanAMAN

I tried to make a program that would give the whole factors for an inputed number. When i run it throught the command prompt it gives me a bunch of 1's, how do I make it to print each factor only once? import java.util.Scanner; public class Factors { public static …

Member Avatar for Taywin
0
261
Member Avatar for eman neercs

I'm trying to run a python script from the cron but get the error "No module named requests" Traceback (most recent call last): File "testscript.py", line 2, in <module> import requests ImportError: No module named requests The script will run from the console but not through a cron job. I …

Member Avatar for eman neercs
0
5K
Member Avatar for davy_yg

Hello, I would like to fix this slider: http://www.innovation.web.id/flickity-docs2/ If I scroll the slides it always place the starting picture in the middle, which left some blank space on the left side of the slides. It also works the same way for the ending of the picture. I would like …

Member Avatar for hericles
0
100
Member Avatar for LukeJWhitworth

Hello, I am looking to return all the usernames and SIDs of users on a computer or network. Has anyone got any idea how to do this? I know I can return the SID of the current user using the code below: System.Security.Principal.WindowsIdentity.GetCurrent().User.ToString Any help with this would be great! …

Member Avatar for Teme64
0
944
Member Avatar for blueguy777

How to decode and store the following code values like city, zip, region etc into separate variables in PHP a:14:{s:4:"city";s:7:"Bijapur";s:3:"zip";s:6:"586101";s:3:"lat";d:16.83329963684082;s:2:"as";s:33:"AS9829 National Internet Backbone";s:5:"query";s:13:"59.99.192.232";s:6:"region";s:2:"KA";s:10:"regionName";s:9:"Karnataka";s:3:"org";s:4:"BSNL";s:3:"isp";s:4:"BSNL";s:7:"country";s:5:"India";s:11:"countryCode";s:2:"IN";s:3:"lon";d:75.69999694824219;s:6:"status";s:7:"success";s:8:"timezone";s:12:"Asia/Kolkata";}

Member Avatar for blueguy777
0
218
Member Avatar for ita_info

I am using CodeIgnitor and oracle db at model function add_new_emp_test( $x, $y) { $conn=$this->db->conn_id; // Execute the call to the stored procedure $stmt = "BEGIN emp_pkg.add_account(:x1,:y1); END;"; $lob = oci_new_descriptor($conn, OCI_D_LOB); $lob = oci_new_descriptor($conn, OCI_D_LOB); $stid = oci_parse($conn, $stmt); oci_bind_by_name($stid, ':x1', $x, 100); oci_bind_by_name($stid, ':y1', $lob, -1, OCI_B_BLOB); $lob->writeTemporary(base64_encode($y)); …

Member Avatar for ita_info
0
156
Member Avatar for UK-1991

Hello, I tried to created a social networking system in which I created a part of adding friends so the problem I am having if the firend is not in his are like he searched a friend normally so that friend is not in his system so it show as …

Member Avatar for pritaeas
0
364
Member Avatar for Aditya0025

hello i m writing a program in which i try to write on the frame by mousemotionlistener and mouselistener methods till now i did the writing part and i i want to start that writing by clicking the button Ok then another frame is open in which i can write …

Member Avatar for Aditya0025
0
451
Member Avatar for Ferron

Hello I've found a working script for what I want to do: https://www.daniweb.com/programming/software-development/threads/384778/copy-files-from-a-list-in-excel Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'get the last saved settings btnCopy.Enabled = False txtExcel.Text = My.Settings.ExcelFile txtSrce.Text = My.Settings.SourceFolder txtDest.Text = My.Settings.DestinationFolder SetCopyButtonText() …

Member Avatar for Ferron
0
314
Member Avatar for James_43

Here's a fun one... How would you solve a basic simultanous equation with PHP? I have an array with a range [high,low] of [378,395] and I want to normalise the data in that array between the values of [-1, 1]. From that, using `x => ax + b`you get the …

Member Avatar for jkon
0
620
Member Avatar for rproffitt

I didn't see anyone bring up how VW and other companies have lost their integrity. We know those that code "bad things" may lack a moral compass but when I've worked in large groups or companies not once was there any question about doing the job in a dishonest way. …

Member Avatar for rproffitt
-1
177
Member Avatar for gtel
Member Avatar for diafol
0
152
Member Avatar for Dat One Lefty

I am trying to make a MS-DOS like program like python. I am adding a system to see if a command exists. the file "known.txt" contains: ['catfish', 'cls', 'dl', 'hello', 'help', 'help1', 'help2', 'info', 'logout', 'ping', 'run', 'stop', 'time'] This is the code i am using to run it: if …

Member Avatar for Dat One Lefty
0
163
Member Avatar for James_43

Hi all, I am using a for statement to generate lots of arrays, example: Array ( [0] => 2 [1] => 395.0 [2] => 0.33 ) Array ( [0] => 3 [1] => 394.0 [2] => 0.81 ) But, I want to have them all within 1 array, example: Array …

Member Avatar for James_43
0
304
Member Avatar for James_43

Hi all, I am able to pull data from a CSV file into a string array using the following code. public static string[,] ReadCSV(string filename) { //Read Text string whole_file = System.IO.File.ReadAllText(filename); //Split into Lines whole_file = whole_file.Replace('\n', '\r'); string[] lines = whole_file.Split(new char[] { '\r' }, StringSplitOptions.RemoveEmptyEntries); //Calucluate Rows …

Member Avatar for ddanbe
0
285
Member Avatar for shany0786

I am uploading max 5 images and i want to create the thumbnails of those 5 images i am successful in uploading and saving image name in database but can't able to make thumbnails. //controller $files = $_FILES; $cpt = count($_FILES['uploadfile']['name']); for($i=0; $i<$cpt; $i++) { $_FILES['uploadfile']['name']= $files['uploadfile']['name'][$i]; $_FILES['uploadfile']['type']= $files['uploadfile']['type'][$i]; $_FILES['uploadfile']['tmp_name']= …

Member Avatar for shany0786
0
365
Member Avatar for Dat One Lefty

i keep getting this error: WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'F:/Term/cmdrun/new.log' how can i make the logging module stop loggin to new.log so it can be moved and renamed?

Member Avatar for Dat One Lefty
0
161
Member Avatar for tashiDuks

Hi EveryOne, I have a following controls in my vb.net form: txtID txtName btnAddNew btnSave This form will be storing a values to the SQL Database (SQL Server 2005). In the txtID textbox the auto id should be generated when ever user clicks on btnAddNew. The ID should be generated …

Member Avatar for Syed Hassan Abbas
0
2K
Member Avatar for dtpp

Im coding webapp where user has ability to enter web-addr and script will enter desired webpage. When coding in WinForms, OK no problem Problem starts with ASPX/asp.net. Google showed some stupid webtutorial made by so called dev +/-10 yo. (based on voice). Complete crap. Whats an equivalent of WebBrowser in …

Member Avatar for pritaeas
0
318
Member Avatar for Melon Lord

Hello! I'm new to VB and I'm having trouble finding the correct formula for the Average Discount :'( Option Explicit Dim mcurExtendedPrice As Currency Dim mcurFifteenDiscount As Currency Dim mcurDiscountedPrice As Currency Dim mcurTotalDiscountGiven As Currency Dim mcurBookCount As Currency 'Declare module-level variables Private Sub cmdCompute_Click() Dim intQuantity As Integer …

Member Avatar for zelrick
0
325
Member Avatar for CreatorZeus

So I'm working with time.h for this (copied from msdn): int main( void ) { struct tm newtime; char am_pm[] = "AM"; __time64_t long_time; char timebuf[26]; errno_t err; // Get time as 64-bit integer. _time64( &long_time ); // Convert to local time. err = _localtime64_s( &newtime, &long_time ); if (err) …

Member Avatar for triumphost
0
2K
Member Avatar for Ritesh_4

Hello I have a VB.NET project (using Visual Studio 2015 Pro) currently found on my PC, and would like to make it shared across my LAN with others so that they can pull a copy on their own PC and work on it, and push their changes to the project, …

Member Avatar for gusano79
0
1K
Member Avatar for James_43

I am using a mySQL query in PHP to pull content from rows into an array. A simple for statement is then displaying this data: for ($i = 0; $i < ($num_rows); $i++): //Find Author Name $query = 'SELECT firstname, lastname FROM vd_users WHERE id = ?'; $statement = $mySQL_con->prepare($query); …

Member Avatar for James_43
0
224
Member Avatar for Muhammad_95

Hello i am very new to this form and i have learnt my self. sorry for my poor english! i want setting page as shows in picture but it not showing same relsult i have tried many time :( . [Click Here](http://i.imgur.com/ei1ZVo5.png) . my code is <div id="addcontainer"> <div id="addprimary"> …

Member Avatar for Muhammad_95
0
289
Member Avatar for Ventech_IT

Hi Guys and Gals, Im busy developing a small website for a client but i've hit a little snag, currently when i create a new "property" entry i can upload one picture with it that kind of defeats the purpose because i need to showcase the "property". how would I …

Member Avatar for diafol
0
312
Member Avatar for fonzali

hi , I have two different versions of python on my ubuntu machine : 2.7 and 3.4 . my question is how to tell sys.executable to use python 3.4 ? this is what I get when I run the code : `>>> import sys >>> print sys.executable /usr/bin/python which is …

Member Avatar for fonzali
0
1K

The End.