inter4522 Posted January 21, 2017 Share Posted January 21, 2017 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... Quote Link to comment https://forums.phpfreaks.com/topic/302996-php-help-need-code-to-display-data-and-get-rid-of-display-button/ Share on other sites More sharing options...
requinix Posted January 21, 2017 Share Posted January 21, 2017 What code? What data? How is it hidden and shown? What is GetData? How does it work? Is there AJAX? Is the data already on the page? Quote Link to comment https://forums.phpfreaks.com/topic/302996-php-help-need-code-to-display-data-and-get-rid-of-display-button/#findComment-1541761 Share on other sites More sharing options...
inter4522 Posted January 21, 2017 Author Share Posted January 21, 2017 This is php. There is two buttons that you can click on show info or hide info...I want the buttons gone and have it just show the data... Quote Link to comment https://forums.phpfreaks.com/topic/302996-php-help-need-code-to-display-data-and-get-rid-of-display-button/#findComment-1541768 Share on other sites More sharing options...
ginerjm Posted January 21, 2017 Share Posted January 21, 2017 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. Quote Link to comment https://forums.phpfreaks.com/topic/302996-php-help-need-code-to-display-data-and-get-rid-of-display-button/#findComment-1541780 Share on other sites More sharing options...
requinix Posted January 22, 2017 Share Posted January 22, 2017 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? Quote Link to comment https://forums.phpfreaks.com/topic/302996-php-help-need-code-to-display-data-and-get-rid-of-display-button/#findComment-1541811 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.