Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'echo'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 3 results

  1. This statement works fine as it is echo '<p>'.$query_row['name'].'</p>'; But how would it be possible to turn '<p>'.$query_row['name'].'</p>' into a variable that could be called back by a print or echo statement ? A not working example $myvar = '<p>'.$query_row['name'].'</p>'; echo $myvar; Does anyone know how this is possible?
  2. Since I'm such a newbie I must be looking at this incorrectly... On page 50, in Chapter2, line 46 it says "echo '<p><b>Good day, Sir!</b></p>';" thus showing an echo statement. But at the top of page 52, in step 6 it says "$greeting = '<p><b>Good day, Sir!</b></p>';" thus assigning a variable. It's the same with "Madam" below it. What am I missing? Thanks for any and all help! Perry
  3. Hi, I'm new to this forum and new to PHP so forgive me if this is a silly question. I was just going through the first chapter and came upon the print language construct. I did some looking around when it was said that echo was another option to achieve the same result and wanted to find out why one would use print over echo or vise versa. I came upon a number of articles that said that echo could be insignificantly faster than print because it doesn't return anything whereas print returns a 1. Moving along a little bit I came to the point in chapter 1 where we have to escape some double quotations that are within the html code. I also found another source that has seemingly a much better way to do this. The book instructs us to type print "<a href=\"page.php\">link</a>"; why couldn't we just use echo '<a href="page.php">link</a>'; This is my source for the reason to use single quotes as opposed to double quotes on the outside: http://wolfprojects.altervista.org/articles/output-in-php/ Again, I am new to all of this and that is why I'm coming here to ask whether this is more appropriate than what is offered in the book. Thanks, Chris.
×
×
  • Create New...