No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code] Hey guys im not sure how this isset code is working and what each if statement is testing. a clear explanation would help. cheers ****ViewProductDetails.php**** Code: <?php session_start(); ?> <html> <body> <?php if (isset($_POST['submit'])) { if($_SESSION['item']==$_POST['h1']) { $_SESSION['qty'] = $_SESSION['qty'] + 1; } else { $_SESSION['item'] = $_POST['h1']; $_SESSION['price']= … |
|
Hey guys i have the following code below for a shopping cart just wondering what this hidden input text would be used for and the echo at the end of it. I know it reads from a text file with : as delimeters and it as an ID for each … |
|
Hey guys with regards to <xsl:value-of select="Catalog/Product_Type/Name"> how would i put that in a <h1> html tag which is defined in my css file. [code]<h1><xsl:value-of select="Catalog/Product_Type/Name"></h1>[/code] i get errors in xalan when i do that? The results of the value-of select i want it to be in a different font … |
|
Basically im trying to design a dtd that represents a collection of movies Not sure why but when i try validate the dtd it says undetermined element declaration 'Movies' but i have declared it havnt i? could someone take a look at my code give me some pointers ? thanks … |
|
Hi just wondering how i can convert ascii to binary then into hex then print it to the screen. The user will input 5 chars then do the conversion and print |
|
Hey guys just wondering if anybody has any idea how to make some sort of shortcut that will automatically run filemaker pro on the client computer so that it is able to connect to the remote database on the server. Is there a way it can be executed from the … |
|
Hey guys just wondering how i can sort the linked list by categoryName for the drink type list. Iv done the linked list in my code but its not sorted? Could someone help me write an algorithm or sum pseudocode [code] #ifndef GJC_H #define GJC_H /* System-wide header files. */ … |
|
Sorry for posting again guys but i have fixed up teh string copies to copy the data into each struct variable. But still when i traverse through the linked list it does not print out anything after it reads the file. For some reason it may not be copying at … |
|
Hey guys im reading in a text file with several fields iv tokenized the '|' so that it only reads the fields categoryId, drinkType, the categoryName, and categoryDescription. My question is how come when i read the file and copy the reading buffer "temp" into each struct it does not … |
|
Hey guys im having allot of trouble im using a rather modulized solution which is how i need it for my assignment. However when i enter input using a function called getUserInput() that i created it accepts input correctly, but when it validates the input using my validateMonth() function it … |
|
Hi guys inside the double array it holds '?' character. How would i do the format printing to print it like this ithe user input variable is the size variable if 5 is typed in it suppose to print 5 rows and columns and print 2 rows and columns if … |
|
Hey guys im making a calendar program where you enter a month 0 to display all months for that year... 0 - 12.. 1 being janauary etc and then entering the year. Similar to the cal command in unix sun on tue wed thu fri sat 1 2 3 4 … |
|
Im using an ansi c compiler all the errors using gcc -ansi -Wall -pedantic should work without warnings and errors. Running on unix |
|
Hey guys sorry for posting the whole code again.. How i can get my calenda program working from here? Because its not printing anything its only printing the mon tu wed etc but not the days of the month 1 - 31 and im not sure if its worked out … |
|
Hey guys i need to find out how many days there are in a particular month in a particular year. How can i start building an algorithm like that im having some trouble? |
|
Sorry guys i apologize for posting large code but im trying to pass the int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31} variable array to the totalDays function so i can do some calculations. But i keep getting a seg fault. [code] int main(void) { unsigned month; unsigned year; unsigned long days = 0; … |
|
Hi guys im having a slight problem passing the month and year variable to a function that i have created called int totalDays(unsigned year, unsigned month) now when i do a print inside the function it prints 0. Even though i have inputted using a key for example 6 for … |