-5

I am required to copy and paste several codes in my websites and i just can't do it. the way i am doing takes a bit more time. is there any alternative to do this in simpler way? I just need an alternative for inserting <br> in every lines. What i am doing is this: inserting <br> in every line.

    <br>$db = new mysqli("localhost", "root","","learndb");
    <br>$stmt = $db->prepare("select * from admin where username = ?");
    <br>$stmt->bind_param("s",$first);
    <br>$stmt->execute();
    <br>$result=$stmt->get_result();    
    <br>$myrow=$result->fetch_assoc();
micky
  • 425
  • 1
  • 12
  • 37

2 Answers2

2

You can use the \r\n in a php echo.

See this post: PHP - how to create a newline character?

Community
  • 1
  • 1
Dirk Jan
  • 2,197
  • 3
  • 16
  • 33
0

You can use \r \n....echo '\r'

Compa88
  • 31
  • 2