199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zeeshan009

Hi All, I am new in PHP and MySQL. As of now i am building a web application , where i have to get the list of all those clients whose date of joining - current date equals to 30. I have a table in database where there is a …

Member Avatar for diafol
0
154
Member Avatar for Mike Askew

Hi So I have a silverlight 5 front end and some PDF generating code that is not silverlight compatible and so needs to sit server side and is called via WCF. I am struggling to work out how to return the PDF data back to the silverlight application and effectively …

0
90
Member Avatar for kingwash

'database connection class file '------------------------------------------------------- Imports Oracle.DataAccess.Client Imports System.Data Public Class DataBaseConnection Private con As New OracleConnection ReadOnly Property connection() As OracleConnection Get Return con End Get End Property Sub New() con.ConnectionString = System.Configuration.ConfigurationManager.AppSettings("DBconnection") con.Open() End Sub Sub closeConnection() con.Close() con.Dispose() End Sub End Class '////////////////////////////////////// 'staff class file '-------------------------------------- …

Member Avatar for abelingaw
0
297
Member Avatar for Soumya_1

I have a form that need user verifaction from ldap before being submitted. I have an ajax code for the same, to get the value of the field onchange and query ldap so that it returns the name and email id. My code is as below : <input type="text" name="Admin_name" …

Member Avatar for diafol
0
985
Member Avatar for fheppell

I have this function: function (Blobs) { console.log(JSON.stringify(Blobs)); // Make the progress bar here Blobs.forEach(function(Blob) { console.log(Blob); $.post(window.location.href + '/add', Blob); // Increment the progress bar by the correct amount, once above request has completed }); } (This function is passed as an argument, hence no name) I want a …

Member Avatar for fheppell
0
1K
Member Avatar for UK-1991

Tried to create a user validation process using status . I created a condition like if user status is pending it should pull up a message if user status is deactiavated it should pull up any other message and when user status is active it should login though. I created …

Member Avatar for UK-1991
0
225
Member Avatar for DragonMastur

I needed a calculator and I didn't want to use google since my internet is slow. So I made one! Here it is. Working with it is simple. Use the number and operation keys("c" for clear, "p" for pi, and "s" for sqrt) as well as the return and enter …

0
699
Member Avatar for Siberian

I have a question about programming/scripting in general, which I'm still driving over rocky terrian trying to learn. The compiler, regardless what it is; reads though code from top to bottom, does it read though all the lines of code first, or does it stop at functions etc and continue …

Member Avatar for Rashakil Fol
0
347
Member Avatar for vijiglad

[CODE]<?php if(isset($_POST['upload']) && $_FILES['userfile']['size'] > 0) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; $fp = fopen($tmpName, 'r'); $content = fread($fp, filesize($tmpName)); $content = addslashes($content); fclose($fp); if(!get_magic_quotes_gpc()) { $fileName = addslashes($fileName); } include 'config.php'; include 'opendb.php'; $query = "INSERT INTO upload (name, size, type, content …

Member Avatar for diafol
0
709
Member Avatar for Mushfik

Hi. Below is the code which parse data from mysql into json, but for the name column i want to have <a href="http://example.com">column name</a> instead of jst the column 'name'. is it possible in any ways. <?php $link = mysql_pconnect("localhost", "user", "pass") or die("Could not connect"); mysql_select_db("userdb") or die("Could not …

Member Avatar for diafol
0
361
Member Avatar for kumanutiw

class brick { private: int length, width, height;// in mm public: void set(int len, int wid, int hei); int getlength(){return length;} int getwidth(){return width;} int getheight(){return height;} }; void brick::set(int len, int wid, int hei) { length=len;width=wid;height=hei;} #include <iostream> using namespace std; /*After Set() method write main() function which would …

Member Avatar for NathanOliver
0
187
Member Avatar for janicemurby

hi does anyone know anything about oxwall plugins as ive copied a plugin from there and changed the name along with all the files so it goes with the new plugin name and i have asserted a new key for it and when i finished it and went to install …

Member Avatar for cereal
0
339
Member Avatar for Ventech_IT

Hi guys i have simple captcha that seems to working but the only problem i have seems to be with the callback function on the validation have a look at the captcha: function index() { $this->load->helper('captcha'); $this->load->library('form_validation'); //Input field, Friendly name, Attributes $this->form_validation->set_rules('name', 'Name', 'trim|required'); $this->form_validation->set_rules('email', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('number', …

Member Avatar for cereal
0
2K
Member Avatar for Brandon500

Hello everybody I'm doing a program that finds the nth number in the fibonacci sequence. I actually already coded it. What I would like someone to do is maybe you could help me code it another way. The reason is the last assignment I turned in got a zero, because …

Member Avatar for woooee
0
237
Member Avatar for falak_1

Its my controller code <?php class Booking_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('Books_model'); } This is my model code <?php class Books_model extends CI_Model{ public function __construct(){ $this->load->database(); } public function get_restaurants() { $sql = "SELECT id, names FROM restaurants "; $query = $this->db->query( $sql ); return $query->result(); } …

Member Avatar for cereal
0
1K
Member Avatar for abelingaw

I would like to develop a web-based Disaster Management System but don't know where to start. Possible features may include: * Situation Awareness * Missing Person Registration * GIS (or google map) Suggestions and ideas? Thanks in advance.

Member Avatar for abelingaw
0
268
Member Avatar for kumanutiw

class item { public: string name; string code; double price; }; class buyer { public: string name; int count; }; #include<string> #include<iostream> using namespace std; int main() { item item1; buyer buyer1,buyer2; double sum1,sum2,sumTotal; cout<<"enter name, code and price of item:"<<endl; cin>>item1.name>>item1.code>>item1.price; // The data for the first buyer cout …

Member Avatar for richieking
0
146
Member Avatar for yash777

Hello all, I am using Office.Interop.Excel.Application in which i have to save a file using saveas() but before saving it i have to disable the Excel's OverWrite prompt . I did tries Application.DisplayAlerts = false; But it's not working , How to do this??? Pl Help ?

Member Avatar for creiglee
0
4K
Member Avatar for donz365

Hi, I have created cron job that runs a php file once a day. Its working exactly as I want it I am just enquiring where I should save it in my site? Its a wordpress website and while testing it I have it saved in my public_html file. Im …

Member Avatar for donz365
0
369
Member Avatar for Violet_82

Hello all, I decided to open a new thread which I could use to ask questions about how to customize this new MVC application I created https://www.daniweb.com/web-development/aspnet/threads/497464/much-simpler-first-mvc-application, add HTML and change the default look and feel. If the mods are OK with that, I was thinking to use this thread …

Member Avatar for Violet_82
0
277
Member Avatar for ilovearsenal

i copied eclipse and its files of code into a new comp. i installed the latest version of java and went into eclipse. i ran the porgram and the code that worked just fine on my previous computer compiled but the applet was blank and it said "start: applet not …

Member Avatar for stultuske
0
144
Member Avatar for hwoarang69

![year.png](/attachments/small/3/7e8a738796e0d938dcd6d9512b905f5f.png "align-right") first take a look at attachment pic to get a idea. I have two dropDownLists.1st dropDownList ID is cboPrev(oPrev) and 2nd dropDownList ID is cboNext(oNext). These both DropDownList will have the following 4 items (2014, 2015, 2016, 2017). User can click on dropdownlist and pick a year. # …

Member Avatar for Mr.M
0
495
Member Avatar for One more line

I would like to say hello, first of all. I have been attempting to change the color of a character on my program for some time now. The characters in question will represent lava tiles with the letter "L" in my program. I would like to know how I can …

Member Avatar for Maxime_2
0
4K
Member Avatar for getanshub4u

Any good beginner books on python? I want to learn python easy and fast.I have coded some basic programs in c,c++,Java. Wanna learn python for scripting in linux.

Member Avatar for dewhales
0
450
Member Avatar for deepak_30

Server Error in '/MasterPage' Application. Could not find stored procedure 'spSearchPlayers'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure …

Member Avatar for swshurts
0
405
Member Avatar for Nathaniel10

In my continuing quest to improve my understanding of OPP in PHP, I have developed another project. It is closer to my field and a real life project I hope to develop, than my previous post using geometric shapes. This draft program is the simplest version. I want to increase …

Member Avatar for Nathaniel10
0
199
Member Avatar for Slade

How would I go about creating a forum system in ASP .NET similar to that of this site? Did you create this forum system Dani? Any tips for me? Thanks, help is greatly appreciated. Slade.

Member Avatar for Ram_12
0
2K
Member Avatar for DragonMastur

karmstrong ask in the Python chat if any one was farmilar with converting a for loop in C to Python. Here is a program in python that will do it for you! Thank You!

Member Avatar for vegaseat
0
823
Member Avatar for potterrick2

I am new to CSS. I can not get CS code to work in a external file. The code works in the html file. Does any know of a test tool which will tell me if my path to the external file is correct. Thanks

Member Avatar for potterrick2
0
97
Member Avatar for hamzaabid

I have an Access 2007 file that I was working on at my office. I left for the day and the database was still open. When I came back the next day the system had shut off so I rebooted (no issues). I tried to open the database and am …

Member Avatar for elmarrasch
0
991
Member Avatar for Fihlatv

Hi I am trying to use a quickaction bar to parse contact address as a string from an android fragment to the other fragment. Any help?

Member Avatar for peter_budo
0
159
Member Avatar for Oluflourish

I want to create a table with input fields where student records can be inserted. The name of the students are in the first column of the table fetched from the database with a while loop. The other columns contain fields for inputing the student scores. The challenge I'm facing …

Member Avatar for cereal
0
8K
Member Avatar for Satyam_1

In vb.net application I have Form1 & Form2. When user enter data and save it by btnsave event in form1, the Form2 should show msgbox "New entry" in form2 while its still open. How can set this event?

Member Avatar for Mr.M
0
232
Member Avatar for Niloofar24

Hello. There is a text in my Python script that is in Persian language and the letters are from left to right, but in Persian language letters should be written from right to left. What should i do now to fix it and print it in UTF-8 format?

Member Avatar for megaflo
0
405
Member Avatar for anumash

Hello, I am starting out learning Python syntax and in the book that I am reading it is mentioned that objects are assigned by reference and not by value, i.e. foo1=4 foo2=foo1 Now foo2 and foo1 refer to the same object in memory and I even verified this by using …

Member Avatar for megaflo
0
334
Member Avatar for showman13

I had a discussion a few weeks ago regarding getting Swift Mailer to work, and thought I had it all resolved but then got sidetracked. I’m back on it now and realizing that I’m still running into an issue that I haven’t found a solution to. I have a form …

Member Avatar for showman13
0
260
Member Avatar for solomon_13000

I have this codes in a php file (init_js.php): <script> <?php $idx = $_GET['id']; $APP_WEB_PATH = APP_WEB_PATH; ?> var idx = '<?=$idx?>'; var APP_WEB_PATH = '<?=$APP_WEB_PATH?>'; </script> Then I import this file to a php page (branch.php). When I view source I can see var idx = '7'; var APP_WEB_PATH …

Member Avatar for solomon_13000
0
121
Member Avatar for Slavi

Hey guys, i am wondering, if you load a file in basically any language, how much memory does the file occupy. Like there's the case that usually more memory is used rather than the actual size of the file because the data of the file is mapped to data types …

Member Avatar for vegaseat
0
111
Member Avatar for bufospro

Hi, I am new in pl/sql programming and I need your help. I would like to make a procedure. To be more specific, I have tables like the folowing TABLE1 ================================================ |COL1 | COL2 | COL3 | COL4 | COL5 | COL6 |COL7| =============================================== |600 | 140 | 2 | …

0
154
Member Avatar for fredjoe565

I want to make an android app that performs like a C++ commandline calculator. I want the user to have to input 2 different values then choose the operation as add, subtract, multiply or divide, then perform the operation and give the result, also to be able to store the …

Member Avatar for smackthat9876
0
139
Member Avatar for Programmer592

Hey guys, I have this program that I'm making and there's a video playing and when the video is at a certain time it changes the desktop background. It all works but there's one feature I'm missing and it's that I want my desktop background to be on the Fill …

Member Avatar for Santanu.Das
0
320
Member Avatar for cambalinho

i have these function for get the string size: SIZE GetStringSize(string text, HWND hdccontrol=GetForegroundWindow()) { RECT textrect={0}; HDC txthdc=GetDC(hdccontrol); DrawText (txthdc,text.c_str(),-1,&textrect,DT_CALCRECT); ReleaseDC(hdccontrol,txthdc); SIZE a={textrect.right-textrect.left, textrect.bottom-textrect.top}; return a; } the 1st string size isn't correct. then i get the correct one. so why i get, sometimes, the wrong size? something to …

Member Avatar for cambalinho
0
396
Member Avatar for Xia_1

Problem Statement Number-Guessing Game Assignment Write a program for a number-guessing game. Each player will be given 10 attempts to key in a 4-digit number to guess the randomly generated number. All four digits of the computer-generated number MUST be different and the left-most digit cannot be zero. Create a …

Member Avatar for NathanOliver
0
236
Member Avatar for solomon_13000

The following codes can be found in my javascript file (code.js): function addBranch(path, id){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = path + '/branch_manager.php?id=' + id }); } The following codes can be found in my php file (test.php): <script src="<?php echo APP_WEB_PATH; ?>/js/jquery-1.11.1.min.js" type="text/javascript"></script> <script …

Member Avatar for solomon_13000
0
235
Member Avatar for Xia_1

#include<iostream> #include<string> #include <cstdlib> //rand #include<ctime> #include <algorithm> //shuffling #include <vector> using namespace std; int main() { int option,i=0, num_part; vector<string> names; cout << "Welcome to Number-guessing Game !\n\n"; do { cout << "Menu" << endl; cout << "-----" << endl; cout << "1)To register number of participants and name …

Member Avatar for ddanbe
0
128
Member Avatar for solomon_13000

I am getting an error for the line of code included in a js file. $(document).ready(function(){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>"; }); }); The uncaught exception points to window.location.href = "<?php echo APP_WEB_PATH,"/branch_manager.php?id=".$_GET['id'];?>"; Is it because I cannot mix JavaScript with …

Member Avatar for solomon_13000
0
404
Member Avatar for abhi10kumar

I am getting : Warning: pack() [function.pack]: Type H: illegal hex digit s in D:\xampp\htdocs\project\includes\encryption.php on line 139 Warning: pack() [function.pack]: Type H: illegal hex digit s in D:\xampp\htdocs\project\includes\encryption.php on line 139 Warning: pack() [function.pack]: Type H: illegal hex digit s in D:\xampp\htdocs\project\includes\encryption.php on line 139 Warning: pack() [function.pack]: Type …

Member Avatar for diafol
0
2K
Member Avatar for internet_rich

Hi Guys. Hope that you are all well, I need some advice if that is ok? I have my first graduate job and they have given me my first commercial project to do. The client has put on the wireframe that they want a list of countries, when a user …

Member Avatar for mattster
0
154
Member Avatar for UK-1991

Hello, I am trying to create a little bit tricky part I thought I would be sucessfull but it didn't happend. Okay so I created a form having multiple field with the same name like users adds package details so it depends on him how much he would be able …

Member Avatar for mattster
0
348
Member Avatar for Mr.M

Hi Dw. I'm doing a research on how or whether VB.NET has some sort of support to listen to Windows OS events and be able to take over to be the core respond to certain events raised by an OS such as Copying/Moving of file(s) to other locations. What I …

Member Avatar for Mr.M
0
268

The End.