I have a strange question !
I made a simple create/delete notes form and a script to query them all.But it will not be beautiful if someone inserts a 100KM note and the table shows it all.
I please you to suggest me a script that shows only some content of the row, and the rest when you press something like “view all”.
For example :

You need to look into truncating the content string, there’s a load of answers available here for both JavaScript and PHP based solutions:
JavaScript: smart way to shorten long strings with javascript
PHP: Shorten string with a "…" body
So you show the truncated string to begin with and then on the full view use the original string.
Depending on how your table in the example is setup you could also try using CSS to truncate and have it add the elipses as well.
CSS: http://css-tricks.com/snippets/css/truncate-string-with-ellipsis/