Jump to content

php help need code to display data and get rid of display button


inter4522

Recommended Posts

here is the code

<p style="text-align: center">
<a style="color: #004d99; font-family: Arial;font-size: 16px" onclick="GetData('groups', '{$groups[g].id}','show')" id="show_hyips_{$groups[g].id}"><img src="images/show{$groups[g].name}.png" id="img_show_{$groups[g].id}" border="0" /></a> <a style="color: #004d99; font-family: Arial;font-size: 16px" onclick="GetData('groups', '{$groups[g].id}','hide')" id="hide_hyips_{$groups[g].id}"><img src="images/hide{$groups[g].name}.png" id="img_hide_{$groups[g].id}" border="0" /></a></p>

 

I need this code to display the data right away and not display buttons to click on to show data and hide data...

Link to comment
Share on other sites

Perhaps you could re-post your code in a more readable format? One line per line of code is the norm as well as using this forum's code tags to make it more clear. You should also learn a bit about css and get all that clutter of styles out of your html by just assigning one class to a tag instead of all the stuff you are currently doing.

Link to comment
Share on other sites

Okay...

What is the rest of the code? What data? How is it hidden and shown, technically speaking? What is GetData and what is its code? How does it work? Is there AJAX? Is the data already on the page?

And read this.

 

I'm not asking to be annoying. I'm asking because nobody here is psychic. Nobody knows your application. Nobody knows its code. Nobody knows anything about it except for you, and if even you don't know how to do this then how could we?

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.