say I am populating a text field in my database and I want to have a hyperlink in the text do I:
A) write it out as follows: this great bar <a href="domain">Sherlock's</a> is in erie
or
😎 <a href=\"domain\">Sherlock\'s</a>
Do I need to escape all my slashes in side of the DB too?
All I want to do is display the text,
Also I would like to display only the fields from that current week
db table is: Events
and it has 4 fields
bar_name | updated | details | for_week |
name | 2006-01-01 | event details | 1
name | 2006-01-08 | event details | 2
I would like to display anything updated within one week of the actual date it is. how can I do this?
Thanks from your neighborhood Noobie!