zonerdck Posted June 20, 2009 Share Posted June 20, 2009 Sorry if i am posting in the wrong thread but my topic deals with Mysql and php. in my php form I am calling some text and an ahref link from my mysql database. The problem I am having is that I want to be able to put a PHP variable in the text of the database call. Right now when the page renders it just prints out the variable because PHP has already rendered the page. Below is the code now the variables for the hrefs work fine but I dont quite understand how. The variable for the font color is what just prints out. Does anyone know of a way for me to do this. I know there is because some of the stuff in the database are variables that look like this... <a href='profile.php?user=%1$s'>%2$s</a> and <a href='profile.php?user=%3$s'> <font style="color:{$rep->cred_usercolor({$content.action_vars[1])};"> %4$s </font> </a> have added each other as contacts. 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.