Search found 29 matches

by Hammer136
Mon May 23, 2005 10:28 am
Forum: PHP - Code
Topic: Operator Problem
Replies: 8
Views: 1325

Oh right i get you. Wat do i need to add to execute it?
by Hammer136
Mon May 23, 2005 10:19 am
Forum: PHP - Code
Topic: Operator Problem
Replies: 8
Views: 1325

The code is executed from a html file with the code <html> <head> </head> <body> <form action="battle.php" method="post"> Privates: <input type="text" name="private" size="20"><br> Conscripts: <input type="text" name="conscript" s...
by Hammer136
Mon May 23, 2005 10:10 am
Forum: PHP - Code
Topic: Operator Problem
Replies: 8
Views: 1325

Thanx but what uve just given me gives out the same results.

It could be the values in the tables but im sure ive got those right

Im multiplying a number which is entered in from a form by a number in a table. Is there an easier way to do this?

Thanx
by Hammer136
Mon May 23, 2005 9:57 am
Forum: PHP - Code
Topic: Operator Problem
Replies: 8
Views: 1325

Operator Problem

Hi I have a problem in which i have a table with some numbers in it and i wish to multiply the number in the table by a number given in from a form so i came up with this $multiplier[priv] = "select Multiplier from Strength where Unit = Private"; $multiplier[cnsrpt] = "select Multipli...
by Hammer136
Thu May 19, 2005 9:17 am
Forum: PHP - Code
Topic: Damn php syntax problems
Replies: 8
Views: 1454

Thanx but now i have error:

Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Documents and Settings\KCHardy\Local Settings\Temp\dzp9B.tmp on line 16

Thanx
by Hammer136
Thu May 19, 2005 9:07 am
Forum: PHP - Code
Topic: Dim statements
Replies: 5
Views: 566

Oh its really that simple!
Thanx
by Hammer136
Thu May 19, 2005 9:03 am
Forum: PHP - Code
Topic: Damn php syntax problems
Replies: 8
Views: 1454

it is asp i think! but how do i get around this?
by Hammer136
Thu May 19, 2005 9:02 am
Forum: PHP - Code
Topic: Dim statements
Replies: 5
Views: 566

Dim statements

Hi

i have converted certain pages from asp to php but i have dim statements still in my php. How do i get around this using php?

Thanx
by Hammer136
Thu May 19, 2005 8:53 am
Forum: PHP - Code
Topic: Damn php syntax problems
Replies: 8
Views: 1454

Parse error: syntax error, unexpected T_STRING in C:\Documents and Settings\KCHardy\Local Settings\Temp\dzp83.tmp on line 13
by Hammer136
Thu May 19, 2005 8:40 am
Forum: PHP - Code
Topic: Damn php syntax problems
Replies: 8
Views: 1454

Damn php syntax problems

If you have read my other posts i am young and a novice to php. So please forgive me if the errors are really obvious to you. Please look at this and help me: <?php include "incdmh.php"; include "incdh.php"; echo $header; $SQLstr = "SELECT Plants, Land, StPlants FROM MainVal...
by Hammer136
Thu May 19, 2005 8:05 am
Forum: PHP - Code
Topic: Converting asp to php successfully
Replies: 10
Views: 777

Thanx-that and another tweak ogt the page up and working Now onto another problem i cant seem to spot the error in this <HTML> <HEAD> <Title>Auth Error</title> <style type="text/css"> <!-- .d { font-family: Verdana; font-size: xx-small; } --> </style> </HEAD> <BODY bgcolor="#006600&qu...
by Hammer136
Thu May 19, 2005 7:16 am
Forum: PHP - Code
Topic: Converting asp to php successfully
Replies: 10
Views: 777

Nope im now getting another code problem.

Parse error: syntax error, unexpected T_RETURN, expecting '&' or T_VARIABLE in C:\Documents and Settings\KCHardy\Local Settings\Temp\dzp3A.tmp on line 5

Thanks for all the help
by Hammer136
Thu May 19, 2005 6:57 am
Forum: PHP - Code
Topic: Converting asp to php successfully
Replies: 10
Views: 777

Can you look at this then and tell me whats wrong with it: <?php @ $Language=$VBScript ?> option explicit; function pgtitle { return "Contact"; } function pgheader { return "Contact"; } function mainbit { echo 'Want to speak to Tom, suggest something, offer a service or something...
by Hammer136
Thu May 19, 2005 6:55 am
Forum: PHP - Code
Topic: Converting asp to php successfully
Replies: 10
Views: 777

Um i would if i could get some posting. Thanx neway
by Hammer136
Thu May 19, 2005 6:47 am
Forum: PHP - Code
Topic: Converting asp to php successfully
Replies: 10
Views: 777

Ive done that and its done a reasonable job but i still get loads of errors, and i would post up the code but there are 40 files and it would take ages. Can i send you the files and you look at them. And if possible write down in a text document where i need to change things.

Thanks

Hammer