199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ole Raptor

I am having a small issue with displaying text that has been converted with htmlspecialchars. In the db I have this: &amp;lt;b&amp;gt;Testing:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;ol&amp;gt;&amp;lt;li&amp;gt;it&#039;s a test&amp;lt;br&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt; When I use: echo htmlspecialchars_decode($variable); The page displays: <b>Testing:</b><br><ol><li>it's a test<br></li></ol> I am not sure why this is happening. Any help is appreciated. Thank you

Member Avatar for Ole Raptor
0
238
Member Avatar for nitish.mohiputlall

Here is the question: Write a program that creates a queue of Strings and allows the input of an integer value n, followed by n names to be placed in the queue. Then the program should execute a loop that performs the following: 1 It displays the name in the …

Member Avatar for Moschops
0
139
Member Avatar for Netcode

#include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { char *first, *second, *third; first = malloc(888); second = malloc(22); third = malloc(22); strcpy(first, argv[1]); strcpy(second, argv[2]); free(first); free(second); free(third); return(0); } Like I said before, I need help learning C and trying to figure out my errors. With this …

Member Avatar for deceptikon
0
206
Member Avatar for junaid_5

Hello i am creating a small project. is there any tutorial that could help me . i have image gallery. it has main categories and then sub categories , i want to upload the images to respective sub category under main category after choosing categ and sub categ from list …

Member Avatar for junaid_5
0
201
Member Avatar for net4earning

i using this code to display radio buttons for selection. somehow the its not working correctly, plz guide on this issue. thanks in advance. <div class="register-section" id="user-role-section"> <label for="wp_rar_user_role"><?php echo $this->wp_rar_role_label; ?></label> <?php foreach($this->wp_selected_rar_roles as $role) { ?> <input type="radio" name="wp_rar_user_role" id="wp_rar_user_role" class="input select" value="<?php echo $role; ?>" /> <label> …

Member Avatar for net4earning
0
645
Member Avatar for adamchippy

Hey there. I'm building a project in PHP/MySQL and it is a sort of [FaceMash](http://en.wikipedia.org/wiki/History_of_Facebook#Facemash) project. I am able to call the images (with image name and points) from the database. I have managed to use the MySQL Update query in order to increase the points that each image gets …

Member Avatar for GliderPilot
0
268
Member Avatar for abaddon2031

I am working on a python code that is supose to search a directory and see if a file in the directory has a _add_ or a _update_ and to change a few fields in my code that call the add and updata and change the directory name to match …

Member Avatar for abaddon2031
0
224
Member Avatar for ogsirus

Hi All, I have a game which I'm implementing parallax scrolling which is currently looping infinite. Is there a way I can pause the loop for x amount of time, or even stop the loop completely after x amount of time. Here a bit of my code so far: public …

0
164
Member Avatar for krystosan

I havent done this before, but I want to make a window that plots a graph looking at file structure on different server locations, and in that UI I want to add control like if i want to copy the remote the file to local if missing or if outdated, …

Member Avatar for woooee
0
463
Member Avatar for logicslab

Dear Friends, I am looking for the topic "Virtualization techniques for Security" and got 3 points 1.Isolation and Protection of hypervisor from external entities eg; Privileged management VMs 2. Recursive addition of additional virtualization layers eg: by running commodity hypervisors on top of special "Secure" hypervisors 3. Through hardware trusted …

Member Avatar for logicslab
0
175
Member Avatar for Netcode

Am trying to write a c program to do the following; • Write on the screen: ``Please enter a positive number: ''. • Accept a number from the user. • Keep prompting for more numbers until -1 is entered • Output the sum of all entered numbers excluding -1. • …

Member Avatar for Ancient Dragon
0
168
Member Avatar for Fighter01

I am asking a question about file handling within python. I am capable of creating a text file which can then be read via python. However, i am trying to create a python Recipe storer and therefore i would need to be able to store recipes (entered through python) with …

Member Avatar for Fighter01
0
536
Member Avatar for rpv_sen

Hi I am trying to display the server(system) status ON/OFF with php script. can anyone please help me how we can find the status. for example we are having 3 machine. SRVR01 ON SRVR02 OFF SRVR03 ON

Member Avatar for rpv_sen
0
124
Member Avatar for Netcode

Hi all, trying to read up on C to get acquainted with the language. Got an exercise am trying to answer and i may need your help to know if am right. I have this code as below, and am asked, what lines have buffer length checking errors. int main( …

Member Avatar for Netcode
0
299
Member Avatar for gxs100

Hi there, Im currently designing a Dots and Boxes Game and ive run into a snag,where my Minimax Algorithm will go 4-1 against the AI but not make the next move to win.Any help with this would be great package players; import interfaces.GameState; import java.util.List; import data.Line; public class MiniMax …

Member Avatar for iamthwee
0
2K
Member Avatar for LegendX

I need help with this problem, if someone can help me with this it would be appreciated. Part 1: Write a program that uses a while loop to loop 5 times. Each time it should prompt the user to input an integer and should add it onto a sum. After …

Member Avatar for JamesCherrill
0
144
Member Avatar for samatha.kilaru
Member Avatar for amt_muk

Hello, Please help me to overcome the following confussion. Suppose I have created an array of pointers like, A** l_aAPtr = new A*[l_iTotal]; for(int i = 0; i<l_iTotal;i++) { l_aAPtr[i] = new A(); } Now I want to delete this array. Please advise which of the following way is correct …

Member Avatar for amt_muk
0
237
Member Avatar for chubbyy.putto

I dont no how to fix. Can someone help me out plz. (Please see the picture) [IMG]http://i61.tinypic.com/2r2cfnq.png[/IMG] #ifndef DYNINTSTACK_H #define DYNINTSTACK_H class DynIntStack { private: // Structure for stack nodes struct StackNode { int value; // Value in the node StackNode *next; // Pointer to the next node }; StackNode …

Member Avatar for Schol-R-LEA
0
167
Member Avatar for Jephthah_1

i need a C program to enter user info. and calculate cost ... a program like a point of sale (POS) system

Member Avatar for rubberman
0
77
Member Avatar for happygeek

Feedly app left attack window open for malicious JavaScript hackers according to one security researcher. Security consultant and blogger Jeremy S [revealed](http://breaktoprotect.blogspot.in/2014/04/feedly-android-application-zero-day.html) that the Feedly Android app, or at least the version prior to the update on March 17th 2014, had been subject to a zero-day JavaScript code injection vulnerability. …

0
370
Member Avatar for mxood

ok i am very sorry if this comes off as irritating to some, but i need someone to reassure or direct me. i have learned some programming, very very basic to be exact and i have learned some c# and some C++. the problem is, I like c# because it …

Member Avatar for rubberman
0
245
Member Avatar for ravi_14

IplImage *in; CvMemStorage *storage = cvCreateMemStorage (20506); CvSeq *contours=NULL; CvPoint *PointArray=NULL; for() { //image processing and feature extraction code here cvClearMemStorage (storage); //clear memory area free (PointArray); cvReleaseImage (&in); } At the end of each iteration i ma releasing memory but still i get memory shortage error after # processing …

Member Avatar for rubberman
0
334
Member Avatar for GliderPilot

Getting a little tired of my current host so I've been looking around at some other hosts. It's hard to sort through all the fake reviews out there these days so thought I'd turn to my local DaniWeb community for suggestions :) Anyone have any recomendations for a quality shared …

Member Avatar for pritaeas
0
247
Member Avatar for vishalonne

Hello All Tell me who is correct I or my friend void main() { int GuessMe[4]={100, 50, 200, 20}; int Taker=random(2)+2; for(int Chance=0;Chance<Taker;Chance++) cout<<GuessMe[Chance]<<"#"; } I am testing random() in Turbo C++ 3.5 By this code I am always getting answer 100#50# whenever I am executing this code. My argument …

Member Avatar for vishalonne
0
272
Member Avatar for romdan94

I know I asked this before, so I appologize but I just need to write this program for an extra credit assignment and frankly I don't know a thing about arrays and don't have time to learn since I have another final coming up so if anyone could be so …

Member Avatar for JamesCherrill
0
256
Member Avatar for Mr.M

Hi Dw I'm creating a web app for my future use and now I'm having a problem in calling a button to enable it. The web app start with Default.aspx and that where a user had to fill in 3 text boxs and click a button. So I've removed the …

Member Avatar for Mr.M
0
431
Member Avatar for Belitaross

Hi, I think I might be doing something wrong. I am using Visual Web Developer 2010. I am trying to get a error message to pop up but the program keeps saying that 'Show is not a member of Messagebox' and I really don't know what to do. Here is …

0
106
Member Avatar for ehpratah

Good day everyone Not sure if this is the right place to ask this but im trying to connect to my database online "Control Panel of my hosting site" from my local machine basically the webpage is running locally. but i want the data to be fetch online. my question …

Member Avatar for ehpratah
0
3K
Member Avatar for jamesc205
Member Avatar for mike_2000_17
0
456
Member Avatar for spluskhan

I have prob with my code its working fine bur, i want to add url to Row Name, When i add them it show error. Exapmle and code: <strong><font size="3"> <?php mysql_connect("localhost", "rooot", "123") or die("Error connecting to database: ".mysql_error()); mysql_select_db("Search") or die(mysql_error()); $query = $_GET['query']; $min_length = 3; $max_length …

Member Avatar for spluskhan
0
263
Member Avatar for mooseless05

Hi, I have been working on some code in Tkinter - this is my first ever coding in python and have basically copied chunks of code over to see what is possible but I am stuck on one section - I am trying to create a GUI in Tkinter but …

Member Avatar for woooee
0
262
Member Avatar for nadiam

hey guys, so i want to disable the input button function unless checbox is checked. i found [this](http://forums.phpfreaks.com/topic/41715-solved-submit-button-remain-disabled-until-checkbox-checked/) forum and it sorta worked. the button is disabled when no checkbox is checked but it stays disabled even after checkbox is checked. this is the html: <input type="button" id="del_event" name="del_event" value="Delete …

Member Avatar for nadiam
0
4K
Member Avatar for brittney_2

I need to create a 2D array that holds the number of family members by the highest numbe of titles of one of the family members, and they input on one line. However, I am having trouble when I call the class in my other code in the main method. …

Member Avatar for brittney_2
0
318
Member Avatar for Moderns

I decided to use the stored procedures in MySQL. I am able to retrieve only one row value in OUT paramater, but when the returned result contains more than one row, I get nothing! Please see the simple code below for stored procedure which I add it to phpmyadmin direct: …

Member Avatar for diafol
0
1K
Member Avatar for nouth

my [previous question](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/477450/convert-str-to-var) about this dealt with global vars but unfortunatley the `window` of opportunitys doesn't work with this next example because it alerts 4 times instead of only 1 test("a","b","c"); function test(var0,var1,var2,var3) { for(var i=0; i<4; i++) { if(window["var"+i]===undefined) {alert("test");} } } this may not be very clear so …

Member Avatar for felgall
0
347
Member Avatar for cambalinho

i'm learning win32 from Programming Windows Fifth Edition book, but i need ask something about these code: /*−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− SCRNSIZE.C −− Displays screen size in a message box (c) Charles Petzold, 1998 −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−*/ #include <windows.h> #include <tchar.h> #include <stdio.h> int CDECL MessageBoxPrintf (TCHAR * szCaption, TCHAR * szFormat, ...) { TCHAR …

Member Avatar for cambalinho
0
365
Member Avatar for zahra97

import random #allows a random value to be produced a = input("Enter name for character 1") #variable verified, reports information to user b = input("Enter name for character 2") #variable verified, reports information to user c = int(input("Enter value for first strength for character 1")) #variable verified, reports information to …

0
108
Member Avatar for nhiap6
Member Avatar for chubbyy.putto

I am to make a rev op on linked node but somehow i couldnt get to work. I got an error I am kinda stuck right now. The error is in gray Somehow and somewhere doesnt show the reverse link. Can someone show how to do the search node like? …

Member Avatar for chubbyy.putto
0
206
Member Avatar for manc1976

Hi I am using the following code to give the user a choice of options in a drop down box: [CODE] <?php $query="SELECT location,id FROM area"; $result = mysql_query ($query); echo "<select name=location_id value=''>location</option>"; while($nt=mysql_fetch_array($result)){ echo "<option value=$nt[id]>$nt[location]</option>"; } echo "</select>"; ?> [/CODE] It retrieves all of the options from …

Member Avatar for Syed_2
0
3K
Member Avatar for maurice.tracey.7

hi thier i was wondering if you guys could hep me when i press equall it calculates but when i press equall again it adds the first number added, for example if i was to enter 3 + 2 = 5 if i press enter again it equalls to 8 …

0
187
Member Avatar for surferbloggy

Hi I've wrote a plugin it works but on deactivation it doesn't drop the plugin tables from db this is the code $sql = "DROP TABLE IF_EXISTS 'TABLENAME'"; $wpdb->query($sql); //$e = $wpdb->query($sql); //die(var_dump($e)); and i call that function this way register_deactivation_hook(__FILE__, 'deactivate'); if i uncomment to show message error it …

Member Avatar for Tpojka
0
306
Member Avatar for COKEDUDE

Can someone please explain this error and how to fix it? This worked perfectly on my computer but it stopped working when I transferred it to another computer. int hash = 0; char *strings[100]; if((int)strings[i] != 0) if((int) strings[hash] != 0) while((int) strings[hash] != 0) if((int)strings[hash] != 0) if((int)strings[hash] != …

Member Avatar for Ancient Dragon
0
559
Member Avatar for gxs100

Hi there im trying to create a Minimax player in AI for dots and boxes Following this algorithm Max-Value(state) returns a utility value if Terminal-Test(state) then return Utility(state) v ← MinimalGameValue for s in Successors(state) do v ← Max(v, MinValue(s)) return v Min-Value(state) returns a utility value if Terminal-Test(state) then …

Member Avatar for gxs100
0
241
Member Avatar for COKEDUDE

I know this is how you read from a file. I also want to print my output to the same name of the file plus ".txt". So if my file is called "text" I want to print it to a file called "text.txt". #include <stdio.h> #include <stdlib.h> #include <stdbool.h> int …

Member Avatar for Ancient Dragon
0
336
Member Avatar for zahra97

import random #allows a random value to be produced a = input("Enter name for character 1") #variable verified, reports information to user b = input("Enter name for character 2") #variable verified, reports information to user c = int(input("Enter value for first strength for character 1")) #variable verified, reports information to …

Member Avatar for Schol-R-LEA
0
159
Member Avatar for COKEDUDE

What does creating a pointer of a function do? I'm not used to getValue being a pointer. char* getValue(char* string); I'm used to something like this. char getValue(char* string);

Member Avatar for sepp2k
0
124
Member Avatar for ScottShip

Hi, I have follen behind on my inventory program. If I send what I have, can someone please help me finish it? I am on part 4 but part 3 is not finished as I am lost.

Member Avatar for stultuske
0
159
Member Avatar for moaz.amin.37

i have a problem and i can not solve it. Problem is that for example there is an admission form on internet and a student enter his name in digits no dought it is wrong and now here is a problem how to restrict the student that he/she should not …

Member Avatar for Ancient Dragon
0
130

The End.