Welcome Guest, Not a member yet? Register   Sign In
Save php code in database
#1

Hi,

I am a newbie in codeigniter and web development in general. I am developing a blog, and I am saving the posts ocntant in the database. The problem comes when the post content has links with php variables inside it: 

Code:
<a href='<?=base_url()?>/blog/post-lug'>text in link</a>

I wonder which is the best practice to save posts with this kind of links inside it. One optoin would be to go one by one and hard-code them. But, what if i still don't know the base_url?

(maybe a very stupid and basic question, but I can't find a solution)

Thank you in advance!
Reply


Messages In This Thread
Save php code in database - by guerreroretirado - 11-22-2020, 12:33 PM
RE: Save php code in database - by ojmichael - 11-22-2020, 09:21 PM
RE: Save php code in database - by sammyskills - 11-23-2020, 02:26 AM
RE: Save php code in database - by egranty - 11-23-2020, 09:59 AM
RE: Save php code in database - by InsiteFX - 11-24-2020, 06:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB