-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creating-a-blog-from-scratch-with-php-part-4-categories #10
Comments
Trying to access array offset on value of type bool on this line: if($row3['catID'] == $row2['catID']){ i tried using ?? and ??= but didin't work using them i got all checkbox selected |
you could try wrapping that in an isset if (issset($row3['catID']) && issset($row['catID'])) {
if($row3['catID'] == $row2['catID']){
}
} |
Undefined variable: checked on line: And this is how i put the code:
|
This is how i fix this problem in PHP 7.4.9 😎 |
Hi, there is a problem with the php code concerning the categories which are not applied to the new/edited posts in the database. Like a user reported here about the issue: dcblogdev/simple-blog-part-4-categories#5 Do you have the time to fix this problem? Would be very nice. Cheers, |
The "blog_post_cats" table doesnt get filled with any info. |
Creating a blog from scratch with PHP - Part 4 Categories - DC Blog | Development Tutorials
This part will cover adding categories to posts.
https://dcblog.dev/creating-a-blog-from-scratch-with-php-part-4-categories
The text was updated successfully, but these errors were encountered: