Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~5K People Reached
Favorite Tags
Member Avatar for gunnerone

Hi, I have this simple program that should draw a cube for the user by reading the data in from a text file which looks like this. 8 100.0 100.0 -100.0 -100.0 100.0 -100.0 -100.0 100.0 100.0 100.0 100.0 100.0 100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 100.0 100.0 …

Member Avatar for Ketsuekiame
0
425
Member Avatar for gunnerone

Hi I am working on Linux and I am trying to create a GUI app to go with my executable I have made. For some reason it unexpectedly ends. There is no error message, it just says in the Qt console window it unexpectedly ended with exit code 0. Can …

Member Avatar for gerard4143
0
183
Member Avatar for gunnerone

Hi I am trying to validate a URL in-putted by the user to check whether it is syntactically correct. [CODE] #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <regex.h> printf("Enter the website URL:\n"); fgets(str, 100, stdin); if (!strcmp(str, "\n")) { printf("Empty URL "); exit(2); } regex_t regex; …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for gunnerone

When a person logs into my site i need to check a value in a database for their roleid, and dependent on that i need to allow/deny access to a page. I have this code but it says that the $_SESION variable 'Access' is undefined, i cant see why? [CODE] …

Member Avatar for Zagga
0
133
Member Avatar for gunnerone

I have this code: [CODE] foreach( $_POST[ 'count' ] as $textBoxIndex => $textBoxValue ) { echo '<br />Textbox ' . $textBoxIndex . ' has value [' . $textBoxValue . ']'; } [/CODE] This loops through a series of text boxes with have been created with this: [CODE] <while($rowequipment = mysql_fetch_assoc($sqlequipment)) …

Member Avatar for Rynkadink
0
86
Member Avatar for gunnerone

Hi, i am trying to take a string from a text area and put it into a variable and split it by carriage returns and then add <li> to the beginning of the line and </li> to the end of a line. While putting <ul> at the beginning of the …

Member Avatar for blocblue
0
95
Member Avatar for gunnerone

How could i create x amount of checkboxes based on how many items are in a database and populate each check box with a php variable containing the data from the database. thanks.

Member Avatar for simplypixie
0
73
Member Avatar for gunnerone

How could i create x amount of checkboxes based on how many items are in a database and populate each check box with a php variable containing the data from the database. I have had a go and come up with the code below: But i cant seem to get …

Member Avatar for as.bhanuprakash
0
120
Member Avatar for gunnerone

Hi, I have this javascript at the top of my php document on my website: [CODE] <script type="text/javascript"> document.getElementById('add').addEventListener('click', function(event) { event.preventDefault(); var select = document.getElementById('select').cloneNode(true); document.getElementById('form').appendChild(select); }, false); </script> [/CODE] In the body of the php document there is a form : [CODE] <form id="form"> <select id="select"> <option>one</option><option>two</option><option>three</option> </select> …

Member Avatar for pritaeas
0
108
Member Avatar for gunnerone

Hi, How would i have a text box where each new line is a bullet list. [CODE]<ul> <li>method line 1</li> <li>method line 2</li> </ul>[/CODE] Can i extract the HTML code tags with the text and insert it into a database with the code and text? So it can be accessed …

Member Avatar for blocblue
0
976
Member Avatar for gunnerone

Hi, I have got 2 arrays; one hold ingredient and the other hold measurement. how would i go through and list the ingredient with its corresponding measurement in the other array until i have listed all the ingredients for the recipe. here is the code i currently have. I have …

Member Avatar for cereal
0
292
Member Avatar for gunnerone

Hi I have a login 'box' up in the top right hand corner of my web page. When someone logs in i want this to disappear and show a message and logout link. I have got this so far, but i cant seem to get it to work. Login form …

Member Avatar for mohamedasif18
0
206
Member Avatar for gunnerone

Hi I am trying to populate a text area based on a value submitted through a drop down box. Below is the code i have written to populate that text area. But i cannot seem to get it to work. All it shows is blank. [CODE] <?php if (!empty($_SESSION['LoggedIn']) && …

Member Avatar for gunnerone
0
326
Member Avatar for gunnerone

Hi, I am just trying to normalize these data here: An initial call is logged by a first line support analyst who assesses the severity of the problem and places the call in a pool. The call is picked up by a problem analyst who in turn allocates it to …

Member Avatar for BitBlt
0
140
Member Avatar for gunnerone

Hello, I am trying to write a C# program that will calculate the minimum number of coins need from X amount of pence entered by the user in the form of £2, £1 etc. I have come up with this so far (Think its right), but how would i print …

Member Avatar for psychomiko
0
162
Member Avatar for gunnerone

Hi, I am trying to create a simple unit converter which reads in the units from a file the file is layout like this: ounce,gram,28.0 pound,ounce,16.0 ... It is read line by line like, 1 ounce is equal to 28 grams. How would i go about comparing what the users …

Member Avatar for geekman92
0
320
Member Avatar for gunnerone

I am trying to create a simple banking system that reads in data from a text file. Attached is a copy of the text file and another text file explaining the layout. How would i read this information in. I need a class for customers, accounts and transactions and an …

Member Avatar for neoic91
0
243
Member Avatar for gunnerone

Hi, I am trying to create a simple program thats reads banking information from a text file. The text file is layout out line by line. I know that there is definitley 14 lines for each customer but the amount of accounts the customer has is dependant on the 14th …

Member Avatar for ddanbe
0
296
Member Avatar for gunnerone

Hi, I am trying to make a program which formats the date for the user and verifies leapyears and checks for invalid dates. Below i have worked out the code to calculate leap years. But how would i go about formating the date so for example: If the user entered …

Member Avatar for gunnerone
0
123