Inserting PHP code into mysql as part of the query
Posted: Fri Jul 22, 2005 5:28 pm
Hey Guys,
this problem is making me go nuts.
I am trying to do
$query= "insert into page(content) VALUES ('<? include('main.php'); ?> ');
now i know that doesnt work, But i have tried putting in character code for the question mark, the quotes..nothing works.
can you tell me how i can make this work? it works fine on phpMyAdmin
thanks
sincerely,
this problem is making me go nuts.
I am trying to do
$query= "insert into page(content) VALUES ('<? include('main.php'); ?> ');
now i know that doesnt work, But i have tried putting in character code for the question mark, the quotes..nothing works.
can you tell me how i can make this work? it works fine on phpMyAdmin
thanks
sincerely,