Forum Moderators: coopster

Message Too Old, No Replies

parse error Unexpected t-variable in line 10

         

pinkerton

5:55 am on Jun 17, 2005 (gmt 0)

10+ Year Member



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
include ("conn.php");

if ($_POST['submit'] == 'påmelding') {
$sqls = mysql_query("SELECT * FROM pa where puljetid ='$_POST[tid]' order by id") or die('Error: ' . mysql_error());
$row = mysql_fetch_array($sqls, MYSQL_BOTH)
$tall=count($row)
echo ($tall)
<snipped irrelevant code>
</body>
</html>

Can anyone see the error? Thank you in advance

[edited by: coopster at 1:18 pm (utc) on June 17, 2005]
[edit reason] Charter [webmasterworld.com] [/edit]

grandpa

6:12 am on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Did you receive an error message?

pinkerton

6:17 am on Jun 17, 2005 (gmt 0)

10+ Year Member



Yes.

Parse error: Unexpected T-variable in line 10
(Line 10 is now line 8 I think.
The line which starts with $tall=count

anshul

7:13 am on Jun 17, 2005 (gmt 0)

10+ Year Member



$tall=count($row)
echo ($tall)

Are you not ending PHP lines by ;?

pinkerton

7:16 am on Jun 17, 2005 (gmt 0)

10+ Year Member



that was the error.. Noobie-mistake.. Thank yoU!

coopster

1:19 pm on Jun 17, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Not so new, I still make that mistake now and then --

Welcome to WebmasterWorld, pinkerton.