Skip to content
Advertisement

INSERT value by adding URL and file name

I want to to insert value into my single column with website URL and upload path. But I’m really don’t doing that. Here I have 2 columns into my table. And I want to insert the website URL and upload path into 2nd column $website_logo. Need to be output like this: https://website.com/uploads/image.png below provided my code:

$sitelink will get the website URL with HTTP. But it’s not working for me. How I can do that?

Advertisement

Answer

Considering ‘tbl_category’ is MySQL table name and $website_logo holds value ‘image.png’:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement