Myabe you should assign "some string to a variable: $string = "some string"; insert into mytable values ($string)
/Just a noob trying to help out "Torkil Johnsen" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a noob php/mysql question... (I suppose) > > When I try just putting php code in my insert queries, it goes like this: > > insert into mytable values('<?php echo "some string"; ?>') > > select * from mytable, returns: > <?php echo "some string"; ?>Some string > > So the insert-query inserts both the code AND the string that the code > echoes... > > Any help would be greatly appreciated! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php