![]() |
|
#1
|
|||
|
|||
calculatorHi to you all. I am a new member and am seeking some help please!!!
I currently trying to create a calculator that performs calculations for tax, quantity and price. I am having a problem with a message which comes up saying: Parse error: syntax error, unexpected T_VARIABLE in /home/ogl09b7/public_html/includes/calculator.php on line 10 I have included the code for which I am to do. As you csn see it is all there,but I cannot see what is wrong with the line of code it is saying. look at calculate the results. Here it is: PHP Code:
Please can you help me on this. thanks oggie Last edited by LuciWiz : 11-Nov-2007 at 10:54.
Reason: Please insert your Php code between [php] & [/php] tags
|
|||
|
#2
|
|||
|
|||
Re: calculatorQuote:
Usually in programs the errors are not on lines the error messages point at. The error message is generated when the interpreter / compiler cannot "put together" into a sensible statement what it has previously read and what it is reading right now. So, instead, look at the previous lines and see if your parentheses match. Use an editor with syntax highlighting. Notepad++ for example is an okay choice, with support to multiple languages. |
|
#3
|
|||
|
|||
Re: calculatorThank you for replying will have a look now and let you know how i get on
![]() |
|
#4
|
|||
|
|||
select date form. Please help!! thanksHi Kimmo, I have another problem which I have encountered. Hope you can help me. I am trying to produce select a date. I have the days,years working but not the months. It all comes out in a line and not as a <select>. I have used a foreach loop. I have copied into here so can you or anyone else have a look, as I cannot see where the problem is.
PHP Code:
oggie Last edited by LuciWiz : 11-Nov-2007 at 10:55.
Reason: Please insert your Php code between [php] & [/php] tags
|
|
#5
|
|||
|
|||
Re: calculatorif you run the code and look at the source you will see that you have a line such as:-
<form action="dateform.php" method="post"<select name="month"><option value="1" notice the form tag has not been closed. In your code find where <form action="dateform.php" is being generated and put a > after "dateform.php" |
|
#6
|
|||
|
|||
Re: calculatorThanks filth. i did not see that tag missing. Looks good now. Hope I can be of use some time to you in the future. Oggie
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flex, bison multifunction calculator | annatsos | C Programming Language | 6 | 03-May-2007 11:50 |
| Try to post the code of this program plzzz..Calculator is hard to solve!!! | albert_123 | C Programming Language | 3 | 21-Sep-2006 03:41 |
| Simple Calculator Application | MOHAMMEDALI1989 | Java Forum | 1 | 06-Oct-2005 18:00 |
| C (not C++) calculator | conghaile | C Programming Language | 0 | 18-Apr-2005 12:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The