Dynamic Head and Footer Information
I need to append some information & tag so that admin user can add meta, title information of page dynamically.
I tried storing information in mysql database with blob, text datatype of column with htmlentities function but seems it is just storing html content not meta information.
HTML Form:
PHP: Save logic:
$head_code = htmlentities($REQUEST['head_code']);
$adb->pquery("UPDATE vtiger_tablename set htmlvalue = ? WHERE fieldname = ?",array( $head_code , $fieldname ) );
//Trying to store content in htmlvalue column
E.g.
If I add below content in textarea then it saved into DB
Go to w3schools.com
But I add below content in textarea then it is not Saving into DB
Please suggest correct way to store meta information so that I can append in head tag of html.
Thank you in advance!
0 comments:
Post a Comment
Thanks