php - Alternative of using <br> in several lines -


this question has answer here:

i required copy , paste several codes in websites , can't it. way doing takes bit more time. there alternative in simpler way? need alternative inserting <br> in every lines. doing this: inserting <br> in every line.

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

you can use \r\n in php echo.

see post: php - how create newline character?


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -