micky February 2016

Alternative of using <br> in several lines

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();

Answers


djl February 2016

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

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


Compa88 February 2016

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

Post Status

Asked in February 2016
Viewed 2,662 times
Voted 6
Answered 2 times

Search




Leave an answer