I am a beginner site builder , I am reading Build Your Own Database Driven Website Using PHP & MySQL 3rd Edition by Kevin Yark.
I have an obstacle, and if you guys look at this code really quick and give me some answers, I safe time and would be really appreciated.
this code does't read the variable "$name" how can I make it read it?PHP Code:
$jokelist = @mysql_query('SELECT joketext
FROM joke, author WHERE name=$name AND authorid=author.id');
it gives this error:" Unknown column '$name' in 'where clause' "
it works if write the name manually.