PHP - How can i insert a "fixed" string into database? -
i want that:
when insert post:
<input type="text" name="name" /> <?php $name = $_post['name']; $string = "m"; //code insert $name , $string database table ?>
i want put fixed string in front variable, , want query read this:
$name + m
lets imagine name george, want insert name george database, m
like this: george m
how can that?
$name = $_post['name']; $string = "m"; $full_string = $name . " " . $string; //code insert $full_string database table
Comments
Post a Comment