64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for abhi10kumar

I am sending email with attachments.. but I did not getting any extention in the email.. all the attachments having name **noname** without extention, if I attach mutiple files then the attachmment also have only one file named **noname** without extention too.. <?php if(isset($_POST['send'])) { include('db.php'); $strTo = $_POST["email"]; $strSubject …

Member Avatar for LastMitch
0
139
Member Avatar for imBaCodes

The default print area is upto cell H how can i extend it to I? Can anyone here help me .. thank you.

1
104
Member Avatar for nah094020

Just wondering how do i get all the nessecary files for my project on netbeans because, when i use the add existing item, i tend to forget where i got it from and have trouble organizing it. Is there a way to find where the file is located at?

Member Avatar for nah094020
0
196
Member Avatar for G_S

Hello people. I need an explanation about inheritance I got a little confused in class: This is the modelling problem: There are two objects: doctors and patients. They are expected to have only the following attributes: Doctors have: name, age, id, and salary Patients have: name, age, id, and disease …

Member Avatar for G_S
0
197
Member Avatar for Begginnerdev

Hello my fellow Daniwebers. I am to ask for some ideas for a challenge. I want a good challenge for my skills, and even help expand my skills Please post your challenge below. Thanks, Begginnerdev

Member Avatar for Begginnerdev
1
177
Member Avatar for haze man

I have putten together this code for searching a text file for a users string (User's ID), how every i am aving some error that i dont knw how to fix and was hoping someone could help me. Thanks in advance. #include<stdio.h> #include<string.h> #inlcude<stdlib.h> int main() { FILE *fpcust; int …

Member Avatar for Ancient Dragon
0
228
Member Avatar for Ashenvale

Hi, my problem is that I can't insert the value of $branch to my database, because it returns a null value. I'm still new to PHP and only started using it a couple of days ago, I still don't get much of the functions. Here's my whole code: <?php session_start(); …

Member Avatar for EvolutionFallen
0
138
Member Avatar for somjit{}

i basically need mySQL for learning JDBC connections. will be thankful to any information regarding this matter. didnt find anything concrete on the net...

Member Avatar for somjit{}
0
167
Member Avatar for Koljik

stupid title i know :) But anyways, is there a way to "go to" a previous line. something like this: 1. something 2. something 3. something 4. if a<b: (go to) / (do) third line ty

Member Avatar for Koljik
-1
240
Member Avatar for Suzie999

Hi. I'm having trouble debugging a rather large project. The first issuse is not knowing how to track the bug down. Here is the text from Assertion Error popup while running in debug mode Debug Assertion Failed > Program...nga Path\file.exe > File: f:\dd\vctools\crt_bld\self_x86\crt\src\xtoa.c > Line: 105 > > Expression: sizeInTChars …

Member Avatar for Suzie999
0
378
Member Avatar for enkitosh

I'm trying to strip only path from a c string char *path = "~/folder/sometext.txt" so I would get only "~/folder/" Anyone got a hint on how to achieve this? I was thinking of something similar to std::string find_last_of so I could just indicate the last "/" or "\" in the …

Member Avatar for enkitosh
0
119
Member Avatar for murtazamzk

[CODE]#include <stdlib.h> #include <stdio.h> #include<conio.h> void main() { int ch; clrscr(); printf("\n\n~~~~~~~~~~~~~~~~~SHUTDOWN MENU~~~~~~~~~~~~~~~~~~~\n"); printf("1.Shutdown\n2.Restart\n3.Logoff\n4.Hibernate\n5.exit"); printf("\nEnter choice : "); scanf("%d",&ch); switch(ch) { case 1:system("shutdown -s"); break; case 2:system("shutdown -r"); break; case 3:system("shutdown -l"); break; case 4:system("shutdown -h"); break; case 5:exit(1); break; default:printf("Invalid choice"); } getch(); }[/CODE]

Member Avatar for deceptikon
1
467
Member Avatar for ppstyle

Dim Data1 As String Dim Data2 As String Dim sFinal As String Dim sLeft As String Dim sRight As String Dim quote As String quote = """" Data1 = rtb.SelectedText 'original string Data2 = "<font color=" + quote + codenumber + quote + ">" 'string to insert sLeft = Microsoft.VisualBasic.Left(Data1, …

Member Avatar for G_Waddell
0
166
Member Avatar for l.worboyz

**Task:** "pass these four variables (x,y,w,h) into the getSubimage method of the original_image object." That method returns a BufferedImage, which i need to directly return from my getImageRect method. I have not included my whole code, but i was wondering if anybody could help me out with this? If you …

Member Avatar for JamesCherrill
0
2K
Member Avatar for pooran.c

import java.text.SimpleDateFormat; import java.util.Date; public class StringtoDate { public static void main (String args[]){ String inputDate = "04.11.2013 11:14:45 GMT 00:00"; Date dat = convertStringToDate(inputDate); } public static Date convertStringToDate(String inDate){ SimpleDateFormat sdf = new SimpleDateFormat("mm.dd.yyyy hh24:mm:ss"); Date date = new Date(); try { date = sdf.parse(inDate); } catch (Exception …

Member Avatar for pooran.c
0
2K
Member Avatar for hirenpatel53

hi all i am creating web site accidently i am facing one bug like i didn see pagging on grid after doing same thing on another form it works perfect Please look into my pronlem i am posting my Code here Please Help ASAP Thanks In advance This is my …

Member Avatar for hirenpatel53
0
3K
Member Avatar for Deeksh
Member Avatar for Deeksh
0
156
Member Avatar for nova37

i write one windows service working perfect , but when i check it in windows services list then its description tab is empty so i thought to add description to it , but do not know how to add description to it , so any body have any idea how …

Member Avatar for nova37
0
221
Member Avatar for LeNenne

Hi I am going to be crazy I have a txtbox with 1950-04-23 How can I extract just 1950 from that box and take the pc's date ( as today is 2013-04-23) to a label.caption and the result shall be 63 years in the labels caption. Lenny

Member Avatar for LeNenne
0
132
Member Avatar for keeleyb

Any ideas please on where should I look for help with making a site (lecaff.fr) that includes phpmyadmin, work on the remote server. It works fine on the testing server and through various browsers using Dreamweaver cs6 and phpMyAdmin 3.3.9. It also responds when I comment out the php script.

Member Avatar for keeleyb
-1
233
Member Avatar for dusto

Ok, me again. When I add the records into the database, I am getting the aryFields(#) instead the called index in the array. I look at everything and can't see why I'm not getting the desired data instead of the aryFields() written into the database. Uugh. Private Sub btnLoadFromText_Click(ByVal sender …

Member Avatar for dusto
0
117
Member Avatar for dusto

Ok, so this will be longwinded, but I'll try and explain what I'm trying to accomplish. Our form has 3 buttons. 1. Clear Database (Working) 2. Load database from Text File 3. Load listbox from database (I have this working) Our project has 2 forms, one being the form which …

Member Avatar for dusto
0
193
Member Avatar for GeoEqual

xlWSheet.Range("C19:K19").Merge xlWSheet.Range("C20:K20").Merge xlWSheet.Range("C21:K21").Merge xlWSheet.Range("C22:K22").Merge up to 54, thanks

Member Avatar for imBaCodes
0
154
Member Avatar for VIPER5646

Hi all I'm trying to write a Procedure to subtract days from a data but Ignoring weekends. This is what I have so far but I have a Syntax error Unexpected END, Expecting `;` I have put a ; after the last END but still get the same error. DELIMITER …

Member Avatar for IIM
0
200
Member Avatar for game06

i am drawing two rect in paint method. 1st rect i want to rotate it but 2nd rect i dont want to rotate it. the code i have should rotate only 1st rect but the problem is that when it rotate it missup the x, y postion of rect. this …

Member Avatar for Ezzaral
0
185
Member Avatar for Tarwit

I have two colums. Both include 8 digits numbers with shorter numbers between. I want to calculate how many rows between two 8 digits numbers have first one and the second one and then I need to add second column next to the first one but with adding missing rows …

Member Avatar for TnTinMN
0
289
Member Avatar for Sammys.Man

Hi guys, im having trouble summing up the column in my (unbound) datagridview, i can add to the DGV fine, but when trying to sum up a column it says "Input string was not in a correct format." heres my code Private Sub btn_Add_Click(sender As System.Object, e As System.EventArgs) Handles …

Member Avatar for TnTinMN
0
148
Member Avatar for alyssa.wilkins.77

I am trying to style my ordered lists and unordered lists to appear the same in Firefox. I have all my text centered. In firefox, the bullets and numbers appear right next to the items. I have done some css styling but it requires for teh text to be aligned …

Member Avatar for alyssa.wilkins.77
0
190
Member Avatar for Squidge

Evening all. I am goign through my Image upload script and found it looks messy, would you recommend an cleaner way of doing this: move_uploaded_file($_FILES['file']['tmp_name'], 'photos/' . $_FILES['file']['name']); try { $fileName = $_FILES['file']['name']; $resizeObj = new resize('photos/' . $fileName); // *** Resize options: exact, portrait, landscape, auto, crop $resizeObj->resizeImage(225, 150, …

Member Avatar for Squidge
0
116
Member Avatar for bibiki

hey there, I have two classes with a one-to-many relationship. For ilustration: public class Customer { Business business; Date created; } public class Business { } Now, when I do the following: new StringBuilder().append("SELECT business FROM ").append(Customer.class.getName()) it works perfectly fine. However, when I include filtering based on created field …

Member Avatar for bibiki
0
142
Member Avatar for Begginnerdev

Hello my fellow DaniWebers! I have a question for you! I have an ASP.Net website that I am currently working on. The problem that I am having is that I want to render the Master page's menu differently for the user types. Here is the catch. I can't use roles, …

Member Avatar for Begginnerdev
0
349
Member Avatar for G_S

Hello I am a little confused. I had always thought that a class can have objects from other clases as attributes. My teacher recently told me that this is not true... so I am confused now: if one of the attributes of my class is a String, would that be …

Member Avatar for G_S
0
196
Member Avatar for dhani09

I have the following code that gets input from users on a button click and draws on a canvas but when i click the button nothing works. Here's the code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="mycss.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js.js"></script> <title>CANVAS</title> </head> <body> <canvas …

Member Avatar for dhani09
0
159
Member Avatar for saurabh.mehta.33234

I have the following code.According to this the values of pointers p[0] and p[1] remains unchanged since the swap is made to local variables in swap function.Now my doubt is how can I swap the pointers p[0] and p[1] inside the function swap?? #include<stdio.h> int main() { char *p[2]={"hello","good morning"}; …

Member Avatar for Schol-R-LEA
-1
197
Member Avatar for Wolxhound90

Hi Guys, I have a problem using the sqlsrv_connect function (in that it's failing!). I have been using mssql_connect on a server with an older verison of PHP where my connect string worked fine. But putting the information into the sqlsrv_connect doesn't let it connect. Here's my code that I …

Member Avatar for Wolxhound90
0
427
Member Avatar for aisha.edris1

hi everyone i have problem in my code i'm create datbase and table by write in php code but in my phpmyadmin it insert the database only the table dose noe exit here my code <?php $connect = mysql_connect("127.0.0.1","root",""); $db = mysql_select_db("login"); mysql_query("CREATE DATABASE login"); mysql_query("CREATE TABLE users ( id …

Member Avatar for pritaeas
0
122
Member Avatar for MasterHacker110

I made this very simple applet just for fun but it doesn't work: package applet; import java.awt.*; public class Applet extends java.applet.Applet { public void init() { } public void paint(Graphics g) { g.drawOval(0, 0, 250, 100); g.setColor(Color.RED); g.drawString("First Applet", 10, 50); } } And heres my HTML code: <html> …

Member Avatar for JamesCherrill
0
186
Member Avatar for chdboy

I have Class called ConnectionDB and in this class I have Main method and another function in the class ConnectionDB,That is private static Connection DBConnectionstring() In this function I have Connection URL ,Drivers inside this function . I want this function to be used in another class (GUILogin) with main …

Member Avatar for chdboy
0
207
Member Avatar for ivanichi

$char = '3'; $string = '101131110|101131110|'; $positions = array(); $pos = -1; while (($pos = strpos($string, $char, $pos+1)) !== false) { $positions[] = $pos+1; } $result = implode(',', $positions); print_r($result); The position of '3' in our string was 5,15 I want to get a second position of '3' in position …

Member Avatar for annaharris
0
448
Member Avatar for Ismatus3

Hello , When i call a window from the main one , how to hide this one , after calling the second , and define it as a main window , this is the code of the two windows : def InterfaceDeps(): global interf1 interf1 = Toplevel() interf1.geometry("500x400") interf1.title(' Base …

Member Avatar for Ismatus3
0
139
Member Avatar for joseph.lyons.754

Hey Guys, So I was doin a tutorial and I incorporated it into my code and it works for the most part. The program gives you a list of town names you pick one and hit search. All good so far then the program goes into the database and pulls …

Member Avatar for joseph.lyons.754
0
284
Member Avatar for nik701a

**Window1.xaml** <Canvas x:Name="mycanvas"> <Button Width="100" Height="50" Canvas.Left="350" Canvas.Top="50" Click="Button_Click">Click to Display</Button> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="470" Name="cc1" Template="{StaticResource DesignerItemTemplate}"> <Grid x:Name="g1"> <Ellipse Fill="LightGray" Stroke="Black" Stretch="Fill" Name="myElli" IsHitTestVisible="False"/> <TextBlock VerticalAlignment="Center" TextAlignment="Center" Height="61.96" Margin="10,35.02,10,33.02">Simple Ellipse</TextBlock> </Grid> </ContentControl> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="150" Template="{StaticResource DesignerItemTemplate}"> <Grid> <Path Fill="LightGray" Stroke="Black" Name="myPath" Data="M 0,5 5,0 …

Member Avatar for nik701a
0
3K
Member Avatar for ralph.d.abernathy.1

Hello everyone! So I wrote a program that simulates a dice game, almost like the game of Craps. I want to turn this normal console app into a dialogue based MFC. So I would create a button labeled "Roll" and the window would show two die being rolled. Here is …

Member Avatar for ktsangop
0
455
Member Avatar for dhani09

Hi, I have the following tables **tbl_user** - id, username, password **tbl_userprofile** - id, userid, name, surname, gender, nationality,address, mobile, department, email, question, answer. userid is a foreign key in **tbl_userprofile** referencing id in **tbl_user** I'm trying insert a new user into **tbl_userprofile**. But i'm not sure how to go …

Member Avatar for dhani09
0
218
Member Avatar for ferdinandmucos

I have 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. …

Member Avatar for ferdinandmucos
0
460
Member Avatar for 123mehran
Member Avatar for ftangpos
-1
183
Member Avatar for Hazuan Nazri

Hello Friends, i want to try and learn about how to make android apps, can any tell me how can i make it? what tools i need to use? where can i learn about making android apps?

Member Avatar for peter_budo
0
274
Member Avatar for fatalaccidents

Hello all, I'm having trouble writing a spell checker as my recursive function isn't returning what I would like it to. It is meant to chop off the ends of words likes "baker" to bake and check against a predined dictionary. I used recursion for words like "baker's". I have …

Member Avatar for bguild
0
180
Member Avatar for old_apache

i have 2 files, one file created on Windows and another was made on Ubuntu, i want to use this command: comm -12 file1 file2 how do i do that?

Member Avatar for old_apache
0
186
Member Avatar for ahudson

Hi guys, basically, I've been stuck on this problem FOREVER! *When I open the webpage, I get this error.* Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in C:\Program Files (x86)\EasyPHP-12.1\www\Creative Landscapes\functions.php on line 83 **Line 83:** `else if (isset($_POST['submit'] && empty($_POST['username']) or empty($_POST['password']){`

Member Avatar for pixelsoul
0
186

The End.