-5

I am required to copy and paste several codes on my websites and I just can't do it. the way I am doing it takes a bit more time. is there any alternative to do this more simply? I just need an option for inserting <br> in every line. 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();
palkenas
  • 19
  • 4
micky
  • 277
  • 1
  • 13
  • 39

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,355
  • 3
  • 20
  • 38
0

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

Compa88
  • 31
  • 2