searls03 Posted May 25, 2011 Share Posted May 25, 2011 how do I make the $image piece so that it inserts "images/$image.php" into the database? VALUES('$name', '$id', '$image','$event')"; Link to comment https://forums.phpfreaks.com/topic/237450-value-for-database-insert/ Share on other sites More sharing options...
cssfreakie Posted May 25, 2011 Share Posted May 25, 2011 I hope for you the stuff below is what you want otherwise be a little more precise. $image = 'fatmonkeys'; echo $image; //outputs fatmonkeys $image = "images/$image.php"; // i am assigning $image again here echo $image;// outputs images/fatmonkeys.php I assume that if you seen above you should be able to do as you like. Link to comment https://forums.phpfreaks.com/topic/237450-value-for-database-insert/#findComment-1220239 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.