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')"; Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.