Jump to content

admin page


mrdeleigh

Recommended Posts

Hi All

i have some html below that i would like to make an admin page to control it. I need a page that will have 6 lines for me to fill in a href link and a href image for each line. is that possible?

thanks
mrdeleigh

[code]<div id="slider1" class="contentslide">

<div class="contentdiv">
  <div align="left">
      <a href="[color=red]http://www.xxx.com[/color]" target="_blank"><img src="[color=green]http://www.yyy.com[/color]" width="161" height="94" border="0"></a></div>
</div>

  <div align="left">
      <a href="[color=red]http://www.xxx.com[/color]" target="_blank"><img src="[color=green]http://www.yyy.com[/color]" width="161" height="94" border="0"></a></div>
</div>

  <div align="left">
      <a href="[color=red]http://www.xxx.com[/color]" target="_blank"><img src="[color=green]http://www.yyy.com[/color]" width="161" height="94" border="0"></a></div>
</div>

  <div align="left">
      <a href="[color=red]http://www.xxx.com[/color]" target="_blank"><img src="[color=green]http://www.yyy.com[/color]" width="161" height="94" border="0"></a></div>
</div>

  <div align="left">
      <a href="[color=red]http://www.xxx.com[/color]" target="_blank"><img src="[color=green]http://www.yyy.com[/color]" width="161" height="94" border="0"></a></div>
</div>
</div>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/29672-admin-page/
Share on other sites

Well you'll need to be drawing those values from something, and saving them to the same place. Lets say a database in mysql. You'll need to change the href/src to values coming out of some loop of a database result.
lets say you set up a DB 'Links' with three fields: id, href, image
each line would have respective values, and you would be able to add, change lines.

Then you could just have a while() loop listing those links with the respective values.

You'll need to know some basics before doing all this though
Link to comment
https://forums.phpfreaks.com/topic/29672-admin-page/#findComment-136185
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.