so did it like this [php]if (!isset($_POST[‘name’]) or trim(empty($_POST[‘name’])))
{ $name = ‘welcome’; }
else
{ $name = mysql_real_escape_string($_POST[‘name’]); }[/php] and got following error
[code]Warning: mysql_query() [function.mysql-query]: Access denied for user ‘a9205753’@‘localhost’ (using password: NO) in /home/a9205753/public_html/pages/welcome.php on line 8
Free Web Hosting
PHP Error Message
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/a9205753/public_html/pages/welcome.php on line 8
Free Web Hosting
Access denied for user ‘a9205753’@‘localhost’ (using password: NO)[/code]