smart
-
Posts
24 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by smart
-
-
when i connect the database connection file like this require("adminheader.php") it's not working but when i write php code in the same pagemysql_connect("localhost","root","") or die ("could not connect to mysql");mysql_select_db("cabinatecart") or die ("no database"); above the file then it works.why
-
Yes i have made the connection but i have included connection.php like this in require("adminheader.php");
-
when i use this CODE$content = $_POST['content'];it's working and inserting data in database but when i useWHEN i use$content = mysql_real_escape_string($_POST['content']); how i can solve this problem ?.
mysql_real_escape_string not working
in PHP
Posted
In my index.php i have included adminheader.php and in adminheader.php page i have included my connection.php file it's not working i can fetch the data in my index.php pageBut when i use mysql_real_escape_string() it's now working.