I just started in this book "Practical PHP and MySQL", and I'm working on creating my first blog.

Anyway, It says that echo n12br($row['body']); ("body" being one of my fields in my table) is suppose to convert any empty lines into legitimate HTML <br /> tags. But I'm getting a fatal error that says: "Fatal error: Call to undefined function n12br() in C:\xampp\htdocs\BlogtasticApp\index.php on line 13".

I understand what that means, but I don't know why that function is undefined for me, but the book says that it is a legite function.

Any help? Thanks!

    The function is [man]nl2br/man, not n12br(), i.e., lowercase "L", not the numeral "one".

      No problem 🙂
      Remember to mark this thread as resolved (if it is) using the thread tools.

        Write a Reply...