hello guys,
i made a small php app for website that i use my self to store programming language eg: php,vb,c++
it works and retrieve data correctly with just one exception.
if insert this code:
[php]
[/php]
when i retrieve it to display on my page i get this:
[php]
<?php# connect to the database here# search the database to see if the user name has been taken or not $query = sprintf("SELECT * FROM users WHERE user_name='%s' LIMIT 1",mysql_real_escape_string($_POST['user_name'])); $sql = mysql_query($query);$row = mysql_fetch_array($sql);?>[/php]
as you can see it lose all the formatting.
so the question how can i retrieve these codes formatted the way i inserted them?
I havent tried yet but i dont think
will help at all.Thanks in advance. :o