Skip to content
Advertisement

How to take input of full line from mysql in html php

My database field contains a sentence as a varchar suppose “Hello I am online” I want to show that field as a input placeholder. I write the following code but it shows only “Hello”. but if I place echo command then if shows the full sentence. I think i am making some silly mistakes but could not find what is that. please help.

JavaScript

it showing “hello” in the input section but”Hello I am online” on the next echo command.

Advertisement

Answer

Your mistakes is here

JavaScript

Replace this

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement