199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for veledrom

Hi, I'm having problem with reading xml file because there are invalid chars like & sign. How can I evaluate this problem and read the file with simple_xml or DOM? **php** $xmlDoc=simplexml_load_file('items.xml'); $doc = new DomDocument; $doc->load('items.xml'); //Both of these don't work **xml** <?xml version="1.0" encoding="ISO-8859-1"?> <store id="AMZ-0101-STR"> <items> <item> …

Member Avatar for pritaeas
0
252
Member Avatar for phpDave

Hi, I trying to user 3 AND operators in one Select Statement. It's not working. Is this even posable. If not, any suggestions? Here is the code: $query_Recordset1 = "SELECT * FROM user JOIN message WHERE message.user2 = '$user2' AND message.user_id = '$user2' AND email = '$email'"; Thanks!

Member Avatar for pritaeas
0
88
Member Avatar for santhini

Private Sub DataGridView1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged Dim con As New SqlClient.SqlConnection("data source=GOLDA2\GOLDA;initial catalog=school;Integrated Security=True") Dim sql As String = "Select * from fees where particulars=" & "'DataGridView1.Rows(0).Cells(1).Value'" & "" Dim dataadapter As New SqlDataAdapter(sql, con) Dim ds As New DataSet() con.Open() dataadapter.Fill(ds, "fees") con.Close() …

Member Avatar for hericles
0
441
Member Avatar for heheja

Hey, Do any one know how to get only Lang ID from Google chrome site ("view-source:https://www.google.com/chrome?hl=en-GB") using this regex "<option value=""([a-zA-Z]*)"">[&#0-9; a-zA-Z()]*</option>" ?

Member Avatar for heheja
0
164
Member Avatar for matthewkeating

I am writing a script that solves a Quadratic equation. What I am doing wrong and why? The error I get is: [COLOR="Red"]Traceback (most recent call last): File "/home/matthew/Desktop/QuadraticSolver.py", line 5, in <module> c1 = (b * -1) + math.sqrt(((b*b) - 4*a*c) / 2*a) ValueError: math domain error[/COLOR] Here is …

Member Avatar for Gribouillis
0
614
Member Avatar for jwenting

The latest from Microsoft research: a new language based on O'Calm, called F#. Read about it and download the compiler and documentation to try it for yourself. Make your colleagues scratch their heads wondering what the heck you're writing in :cheesy: [url]http://research.microsoft.com/projects/ilx/fsharp.aspx[/url]

Member Avatar for julieandrews
0
245
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { char a[50]; int n; printf("enter the string : "); gets(a); n=strlen(a); printf("%d",n); for(i=n;i>0;i--) { printf("%c",a[i]); } } the error is at i=n why cant we use i=n;

Member Avatar for WaltP
0
206
Member Avatar for daino

Could anyone recommend some reading material to help be better understand the ADOBE SDK C++ API. I'll need it for parsing pdf's and other things. Is there a book written on this or are we restricted to what is on the adobe developers website? Thanks danny2000

Member Avatar for daino
0
305
Member Avatar for HibaPro
Member Avatar for vincent5487

This Is my Question : Using loop statement, write a VB .NET program that prompts an integer in the range of 1 to 10 (both inclusive) from the user in an input box, and prints a multiplication table of the integer entered. For example, when the user enters 8, your …

Member Avatar for hericles
0
759
Member Avatar for Perry31

Hi geeks, I'm using visual studio to write and execute programs. I want to create breakpoint not like software breakpoints(F9 for debugging). I want to build the project in release mode and want to have breakpoint. I heard something like _asm int 3 to create breakpoint. Can anyone explain _asm …

Member Avatar for Ancient Dragon
0
339
Member Avatar for newbie1234

jebkharcha.net84.net/smart/index.php please tell security flaw in this site

Member Avatar for newbie1234
0
105
Member Avatar for vincent5487

Hey guys, when i doing my VB, i get stuck on the try catch end try...i dono where should i put the try catch end try for the question..this is my question Using loop statement, write a VB .NET program that prompts TWENTY (20) integers in the range of 1 …

Member Avatar for vincent5487
0
175
Member Avatar for vegaseat

The computer is a binary beast. We want to go from the one-fingered digital box to the ten-fingered human being and convert binary to denary(base 10) numbers. This is how it works, for instance, binary 10010 is calculated as 1*16+0*8+0*4+1*2+0*1 = decimal 18. Just because it's easy, let's throw in …

Member Avatar for soorajshaji
0
2K
Member Avatar for Amiet Mhaske

Hey guys hello, I am new to programming language. I have some suggestions about **Ditto Clipboard manager**. For that i would like to edit some part of ditto clipboard manager. Can you guys please help me **how can I edit it's source code**. It's available free at here, please [Click …

Member Avatar for ertthewer
0
356
Member Avatar for phorce

Hello, I'm trying to develop an algorithm/program that calculates the distance between two points. These values are stored inside a 1D array, which, acts as a 2D array (I think you know what I mean!) The values are: 150 50 15 20 The calculation should therefore be: d = √(150 …

Member Avatar for phorce
0
209
Member Avatar for 3e0jUn

I have a very tough problem- how do you make an icon/character move across a console screen? For example, if I press W, +++++ ++E++ +++++ Then I press D +++++ +++E+ +++++ And I want it to be like the CHOICE command in CMD- Without requiring the user to …

Member Avatar for 3e0jUn
0
99
Member Avatar for Behseini

Hi, I am trying to create a simple GUI which let user to populate a list box base on a click event in wxpython. Can you please point me into a simple tutorial or example which has a sample? For example I have a list of colors: Red, Green, Blue, …

Member Avatar for Behseini
0
150
Member Avatar for MasterHacker110

I have the following code: #include <iostream> #include <fstream> #include <string> #include <ctime> #include <windows.h> #include <cstdlib> enum ERR_CODE {SUCCESS, ERROR}; But as soon as I compile it it gives this error: C:\Users\User\Desktop\Program.cpp|8|error: expected identifier before numeric constant C:\Users\User\Desktop\Program.cpp|8|error: expected '}' before numeric constant C:\Users\User\Desktop\Program.cpp|8|error: expected unqualified-id before numeric constant …

Member Avatar for MasterHacker110
0
6K
Member Avatar for muralibobby2015

hello, our site have 1000 users.here i have to give unique numbers from '000' to '999' to each user. now i am adding from starting '000'. how can i give unique numbers to users when adding and updating users? Thanks

Member Avatar for diafol
0
107
Member Avatar for Mereo

I'm currently reading the book "C++ primer plus 6th edition" and it says the char pointer needs to be a constant. I don't really understand the explanation so I did some tests. I don't understand why when I use cin to an already used char pointer, it crashes. But when …

Member Avatar for Mereo
0
163
Member Avatar for dlmagers

This is the code that I have and for some reason it is not given me that I need. #include <iostream> #include <iomanip> using namespace std; int main () { // variables double salary = 0.0; int RATE = .03; // enter salary cout << "Salary (-1 to stop): "; …

Member Avatar for dlmagers
0
197
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { char str[10],str1[10],str2[20]; int i,j,k; printf("enter string1: "); gets(str1); printf("enter the string 2: "); gets(str2); for(i=0,j=0;str1[i]!='\0';i++,j++) str[j]=str[i]; for(i=0,k=j;str2[i]!='\0';i++,k++) str[k]=str2[i]; printf("%s",str); } not producing correct output

Member Avatar for Sokurenko
0
228
Member Avatar for aianne

Hello everyone! I am a student and I am currently working for online voting system for my school. I am having a hard time how to prevent users/students from multiple votes. Could please give me some example that users can only vote once using their ID number? I have a …

Member Avatar for titosd
0
566
Member Avatar for techy23

Hi! Guys. I want to make a game in C++. I don't know anything about game programming at the moment, but will make it one day. :) could you suggest me , great game ideas in C++. game that is presentable and interesting. Please give your best ideas and suggest …

Member Avatar for DeanMSands3
0
241
Member Avatar for latooplat

I have a special problem over in terms of sorting out those words like a keyboard type. For example: the user inputs these words into the textarea HOUSE DOLL KITE NICE Then, the result should be DOLL HOUSE KITE NICE this is sorted out according to the qwerty order. <?php …

Member Avatar for pritaeas
0
1K
Member Avatar for Se7Olutionyg

I am trying to run the code that was run on Jboss already from the command line. Now i want to make it as a Tomcat project running from the IDE. Don't know how to deploy the WAR file and EAR file to get it run.. .. To code compile …

Member Avatar for SagarSe7en
0
194
Member Avatar for digda

Hello i am currently picking up jsp to extend my knowledge of web languages. I am currently trying to connect to a database but i keep getting a weird error on the index page where i verify conditions for the authentication.jsp page. Parts of Code Below: index.jsp <div id="sidebar"> <% …

Member Avatar for SagarSe7en
0
256
Member Avatar for prnjn

Hi . i am a final year computer science engineering student , Recently i have learned Java Servlets , JSP and Struts 2 framework . I am looking for help regarding my major project . I am in dark what (which application) i should develop for my major project using …

Member Avatar for SagarSe7en
0
274
Member Avatar for ak47carbon

my website page url is mysite/use.php?v=123(it is dummy entry basically it come from another page) i want to convert my url into mysite.use-123.html. i got a code for this purpose from http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html but problem is that when i paste below code in .htaccess it is not working Options +FollowSymlinks RewriteEngine …

Member Avatar for ak47carbon
0
201
Member Avatar for bipi09

i have this code in main.jsp <html> <head> <link rel="stylesheet" href="/bipi/css/bp.css" type="text/css" media="screen"/> </head> <body> <div class="navigator"> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Add</a> <a href="/bipi/display.jsp">Delete</a> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Main</a> </div> <%--<% String fname = request.getParameter("f_name"); String fage = request.getParameter("f_age"); if (fname != null && fage != null ) { com.test.gerrard.Insert(fname, fage); } %>--%> <form …

Member Avatar for SagarSe7en
0
3K
Member Avatar for selfmastery

I am running easyphp12 running mysql as a local db server for a some software. This software can also connect to a remote db where it doesnt give this error while performing the exact mysql query, so I only get the error when using the local db. Ive tried increasing …

Member Avatar for smantscheff
0
484
Member Avatar for cubalibras

Hello all, I'm trying to set up an add contacts page but when I click submit then check the database there is nothing there. I ran my sql query in phpMyadmin and got an error but for the life of me I cannot figure out what is wrong. I can …

Member Avatar for scaiferw
0
249
Member Avatar for taskeef

**downloading file form specifice site using php+curl** Hi ervery one this is my question is here i hope you will help me I am trying to download file form this site http://www.emobilez.com/apps/app-samsung-i8520-beam-381-tawkon-2.0.1.9-115963.htm and my link is that file i want to download ` http://www.emobilez.com/apps/download.php?image_id=115963` using this tutorial http://www.daniweb.com/web-development/php/threads/78356/creating-cookies-using-curl-php but no …

Member Avatar for almostbob
0
283
Member Avatar for DarkMonarch

this is more of a career questions thread. my situation: 15 years plus in marketing management, career change for programming. i concider myself as a Jr. programmer, been programming since november 2011. hoping from PHP to C to Java, back and forth, depending on what im ask to do. i …

Member Avatar for Florinmoc
0
425
Member Avatar for mzeewashooo

i am using c# and i have radion buttons that i want to check them, then when i click ok button it takes me to the required form corresponding to the text on the radio button. thanks

Member Avatar for Mitja Bonca
0
199
Member Avatar for Danny159

Hi! I have the following table: <table width="63%" border="0" align="right" cellpadding="0" cellspacing="0" class="findUsResults"> <tr> <th align="left">Company</th> <th align="left">Location</th> <th align="left">Products offered</th> <th align="left">Distance</th> </tr> <tr> <td rel='1'>Company Ltd</td> <td>Town</td> <td><a href="/stockists/ajax.php?id=3" class="various fancybox.ajax">Click to view</a></td> <td>0.9 mil</td> </tr> <tr> <td rel='2'>Company Ltd</td> <td>Town</td> <td><a href="/stockists/ajax.php?id=5" class="various fancybox.ajax">Click to view</a></td> <td>11.56 …

Member Avatar for Danny159
0
180
Member Avatar for chris283

Hi, i am trying to pass the value of a text box to a sql statement, the only thing is that the sql statement is located in a different file to where the text boxes are. i have had some trouble in the past with this, as when i call …

Member Avatar for gusano79
0
247
Member Avatar for Steini_Ey

Hello, I have a bit of a problem. In C# I am doing an Windows Form Excel Addin using Visual Studio 2010. In my form I have a DatagridView that is connected to an Access databe and by pressing a button the user can send data to an Excel spreadsheet …

Member Avatar for Steini_Ey
0
157
Member Avatar for HTMLperson5

Is there any way to remove an imported library? `Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32` `Type "copyright", "credits" or "license()" for more information.` `>>> dir()` `['__builtins__', '__doc__', '__name__', '__package__']` (Currently imported packages) `>>> import time` `>>> dir()` `['__builtins__', '__doc__', '__name__', '__package__', 'time']` …

Member Avatar for HiHe
0
416
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { int a=5,b=10,*ptr,*pt1; ptr=&a; pt1=&b; b=*ptr; a=*pt1; printf("%d \n %d",a,b); } producing same values not swapped

Member Avatar for WaltP
0
103
Member Avatar for 9tontruck

Hi guys This is a question about C++ setting you dont even need to know about the library I am trying to use. I am coding C++ in VS2010 right now and I am trying to use 'icclib' which was downloaded from http://www.argyllcms.com/icclibsrc.html I made a new project, added an …

Member Avatar for gusano79
0
227
Member Avatar for TheQuestor

I am trying to read through a text file and pull out bits of information I need. I have it 1/2 working but need to figure out how to loop through it to get the other 1/2 Sample log file '-------------------------------------------------------------------------------------------------------------- [01:32:18.281] [@Flos'tok] [@Flos'tok] [Force Valor {875503313485824}] [ApplyEffect {836045448945477}: Force …

Member Avatar for Reverend Jim
0
172
Member Avatar for I_m_rude

hi.... int x=30, *y,*z; y=&x; assume x address is 500 and int is of 4 bytes z=y; *y++=*z++; x++; printf("%d %d %d",x,y,z); i want to ask that how the value of y is 504 here ? firstly value of z is assigned to value of y. then z is incremented …

Member Avatar for I_m_rude
0
204
Member Avatar for xzajox

Hi, This is a problem googled easily, but no solution helped me. Locally I am trying to open a PowerPoint application to read and import a ppt (or pptx) file. this is the command where exception is thrown (ASP.NET VB): [CODE] objApplication = New Microsoft.Office.Interop.PowerPoint.Application [/CODE] the exception text is …

Member Avatar for kemaltaskin
0
2K
Member Avatar for crazyvonzipper

Dear Daniweb members. I am having quite a troublesome time here with OleDb. What I am trying to achieve is to allow my users to connect to an uploaded Excel workbook, then to be able to select data from the sheets. I have a query designer in the front end …

0
188
Member Avatar for dstoltz

I'm curious - if a production web page is removed for whatever reason, I've read that a permanent redirect should be used for SEO continuity. So, if I'm using ASP for my server side code, what is the best option: 1) Keep the actual ASP page there, and just add …

Member Avatar for dstoltz
0
148
Member Avatar for annette_arpana3

> > Quoted Text Here i am doing a snmp monitoring tool using java.. how can i insert a word rather that inserting the object indentifier value in the text box. it will be more user friendly if users only need to insert the word rather than inserting the long …

Member Avatar for annette_arpana3
0
165
Member Avatar for zachattack05

The application I am working on uses SQL to store data. Most of the data is fine the way it is, but one of the tables contains information that would be very tempting for some users to alter. My original plans were to have the application check the identity column …

Member Avatar for zachattack05
0
170
Member Avatar for jnbradl

I am trying to create a "simple" c# windows application for adding data from textboxes to a MS Access database on the local machine. I am new to C# and have not found a good tutorial on how to do this. I have viewed multiple sites and this is my …

Member Avatar for samsylvestertty
0
966

The End.