Jump to content

Mysql Variable


zonerdck

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.