... | ... | @@ -102,7 +102,7 @@ in the next step we'll add a Blog_Entry_Class method, a controller and a view fo |
|
|
|
|
|
## getting an individual entry
|
|
|
|
|
|
this is simply a matter of selecting the blog entry who's id matches the one selected.
|
|
|
this is simply a matter of selecting the blog entry who's id matches the one selected by writing a getEntry method.
|
|
|
but we'll be using prepared statements, so your sql will have a placeholder for the actual value
|
|
|
```
|
|
|
$sql = "SELECT entry_id, title, entry_text, date_created FROM blog_entry WHERE entry_id = ?";
|
... | ... | @@ -144,3 +144,4 @@ i.e. inside the $entryClicked loop, you'll have |
|
|
```
|
|
|
|
|
|
check this works ok.
|
|
|
|