Code:
[COLOR=#000000] [COLOR=#0000BB]<?php
$link [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_connect[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"localhost"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]"mysql_user"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#DD0000]"mysql_password"[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000BB]mysql_select_db[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"database"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]$link[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000BB]$result [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"SELECT * FROM table1"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]$link[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000BB]$num_rows [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_num_rows[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$result[/COLOR][COLOR=#007700]);
echo [/COLOR][COLOR=#DD0000]"$num_rows Rows\n"[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000BB]?>[/COLOR] [/COLOR]
is it the php version?