php code displying as plain text

I’m trying to create simple registration/login form so users can write into databeses they’ve privilegies… but the php code isn’t runnin it is displaying as plain text, I’ve installed lamp server like this and added some other php modules for html support. But I think it smth in php configuration files ???

You failed to show us an example URL where it goes wrong.

sorry actualy php I tried md5(‘password’) it gives hashed output, but what’s not runnin

require ''; require ''; include ',php';  echo $current_file;  ?> 

  if(!empty($username)) && !empty($passh)) 

gives this error

  syntax error, unexpected '&&' (T_BOOLEAN_AND) 

what I am supposed to put instead && - AND ?

You just messed up the brackets.

It should look like this:

 if(!empty($username) && !empty($passh))

And I hope the file does start with this and you only omitted it here when posting, right?


stupid mistakes solved, but what annoys me is this

 SELECT `id` FROM `users` WHERE `name`='roberto1' 

 PHP Parse error:  syntax error, unexpected '`' in /srv/www/htdocs/ on line 9 

but when I executed that qury in phpmyadmin it queried as breeze. And the database is selected right I’ve another fucntion connect.php and there it si conditioned if it cannot log in and connect to taht database it’ll report error

I am not that fluent in PHP and MySQL, but I never used those ` (back-quotes) in such a statement. And the error also complains about it. I have e.g.

$query = 'SELECT id FROM dia WHERE code = "' . $code .