Results 1 to 6 of 6
Thread: mysql_query() string?
May 12, 2009, 14:49 #1
- Join Date
- Apr 2009
- 0 Post(s)
- 0 Thread(s)
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.
$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.
Last edited by MertTheGreat; May 12, 2009 at 15:23.