I have a piece of code that I'm trying to get to work. I am attempting to compare my Key field (ArticleKey) to a variable generated by my php script ($editItem). (The ArticleKey field is the auto_increment field which assigns a unique number to each row).
I know the below code doesn't work, but is there any way to pull just the one row of information by comparing it to the Key?
WHERE ArticleKey = $editItem
$resultID = mysql_query("SELECT ArticleKey, AuthorFirstName, AuthorLastName, ArticleTitle, ArticleBody, Subject, Origin FROM articles, WHERE ArticleKey = $editItem", $linkID);
I get a Parse error with this code.
Thanks,
Mark