lighting if you
haven't one. It would warn you from most of these mistakes.
And an xhtml issue: to use an empty tag, you use and not
De: Fernando Castillo Aparicio
Para: Haig Davis ; php-general@lists.php.net
Enviado: miƩrcoles, 23 de septiembre, 2009
On Wed, 2009-09-23 at 07:18 -0700, Haig Davis wrote:
> echo " ".$row['melID']." name="\".$row['melID].\""/input> ";
You're escaping in the wrong places. The \ escapes the character
following it, so what you are doing here, in line 2, is breaking out of
the string with a regular " and then printing
You missed a double quote here:
echo "
\n";
De: Haig Davis
Para: php-general@lists.php.net
Enviado: miƩrcoles, 23 de septiembre, 2009 16:18:17
Asunto: [PHP] Parse error: syntax error, unexpected '>'
Good morning Everyone,
I'm have trouble wi
Hi All,
sorry, found it. Forgot the ; after $age++. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how about like this
---
$insert = "INSERT INTO age (age_label) VALUES ('$age')";
---
From: Mark Sargent [mailto:[EMAIL PROTECTED]
Sent: Sat 03-Jun-2006 10:02
To: PHP List
Subject: [PHP] Parse error: syntax error, unexpected '}'
Hi All,
can anone see what's w
Quoting Mark Sargent <[EMAIL PROTECTED]>:
Hi All,
can anone see what's wrong with the below code? I get this error,
*Parse error*: syntax error, unexpected '}' in
*/usr/local/apache2/htdocs/moviedata2.php* on line *18
*
$age=1;
while($age<=100) {
$insert = "INSERT INTO age (age_label) VALUES
Mark Sargent wrote:
Hi All,
I get the error for line 15 for this code,
";
18 echo "$_SESSION['text']";
19 echo "";
20 ?>
I have put ' ' quotes around the " " quotes for each font attribute so
that the parser doesn't think the echo is finished too early. Is that
wrong? I know that
Mark Sargent wrote:
Hi All,
I get the error for line 15 for this code,
";
18 echo "$_SESSION['text']";
19 echo "";
20 ?>
I have put ' ' quotes around the " " quotes for each font attribute so
that the parser doesn't think the echo is finished too early. Is that
wrong? I know t
Chris wrote:
Since there aren't actually 18 lines this isn't the real code..
true, as I only posted the php code
The problem is here:
echo $currentValue "\n";
it should be
echo $currentValue . "\n";
or
echo $currentValue , "\n";
thanx to all. The book is Beginning PHP, Apache, MySQL, We
Mark Sargent wrote:
Hi All,
this code,
";
echo "My favourite flavours are:";
foreach ($flavour as $currentValue) {
//these lines will execute as long as there is a value in $flavour
echo $currentValue "\n";
}
?>
gives this,
*Parse error*: syntax error, unexpected T_CONS
On 24/05/06, Mark Sargent <[EMAIL PROTECTED]> wrote:
Hi All,
this code,
";
echo "My favourite flavours are:";
foreach ($flavour as $currentValue) {
//these lines will execute as long as there is a value in $flavour
echo $currentValue "\n";
}
?>
gives this,
*Parse er
Mark Sargent wrote:
Hi All,
this code,
";
echo "My favourite flavours are:";
foreach ($flavour as $currentValue) {
//these lines will execute as long as there is a value in $flavour
echo $currentValue "\n";
}
?>
gives this,
*Parse error*: syntax error, unexpected T_CONS
12 matches
Mail list logo