199,112 Archived Topics
Remove Filter ![]() | |
I am having a small issue with displaying text that has been converted with htmlspecialchars. In the db I have this: &lt;b&gt;Testing:&lt;/b&gt;&lt;br&gt;&lt;ol&gt;&lt;li&gt;it's a test&lt;br&gt;&lt;/li&gt;&lt;/ol&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 | |
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 … | |
#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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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. • … | |
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 … | |
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 | |
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( … | |
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 … ![]() | |
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 … | |
how do I call a .exe file from my perl script? | |
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 … | |
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 … | |
i need a C program to enter user info. and calculate cost ... a program like a point of sale (POS) system | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Does anyone know of a compiler that translates a C++ code to MIPS Assembly Language | |
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 … | |
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 … | |
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 … | |
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. … | |
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: … ![]() | |
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 … | |
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 … | |
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 … | |
Just like the title says, could you give me arguments for it? | |
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? … | |
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 … | |
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 … | |
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 … | |
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] != … | |
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 … | |
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 … | |
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 … | |
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); | |
![]() | 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. |
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 … |
The End.