Hi,
I am trying to write a script that will be viewed by a simple application.
At current it looks like this
<?
echo "connected";
include ("db_connect.php");
$total=mysql_query("SELECT * FROM docs");
echo mysql_num_rows($total);
?>
Which at the moment returns
(because there are 2 items in the database).
However to get the program to read it correctly it needs to be outputted like this
I realise I can use the <br> tag in an echo but this won't help me as it reads the source of the code so would just see it as connected<br>2. So how can I get php to encode a character return which would be outputted and not show up in the source code?
Thanks in advance
Matt