NYCPHP Meetup

NYPHP.org

[nycphp-talk] print parsing confusion

Scott Mattocks scott at crisscott.com
Thu Apr 13 12:17:30 EDT 2006


Alberto dos Santos wrote:
> You must set the value on the input.
> 
>  while( $row = mysql_fetch_array( $category ) )
> {
>  echo(
>     "<tr><td>" .$row['expenses_cat_desc'] ."</td><td><input type=text
> name=expense_cat value=" . $row['expenses_cat_number'] . " /></td></tr>");
> }
> 
> And learn your syntax too...

And by that I am sure you meant to say, "Don't use parenthesis with 
echo" right?
http://us2.php.net/manual/en/function.echo.php

-- 
Scott Mattocks
Author of the soon to be published: Pro PHP-GTK
http://www.crisscott.com



More information about the talk mailing list