Jump to content

contiw

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

contiw's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. How to extract the last row a query and store it in a variable ? Thanks for helping. Noob apppreciate.
  2. In an .html, before : <!-- BEGIN myquery --> I need to stop output and check the content of "myquery" Is there a command for that ? Thank You.
  3. Joel, now I am really confused : The file is an .html. This is php code inside the html: <!-- IF not S_DISPLAY_RECENT --> <!-- INCLUDE portal/block/recent.html --> <!-- ENDIF -->
  4. Thanks Joel. No, /*... */ and //, do not work. The file is an .html, but I don't think there is a difference. I have been told that some code do not work well when using IIS server instead of Apache, for example (I am working on local). Could it be the case ?
  5. Short of deleting, how do I comment out code like this : <!-- IF not S_DISPLAY_RECENT --> <!-- INCLUDE portal/block/recent.html --> <!-- ENDIF --> Nesting <!-- --> /*...*/ // do not work. Thanks
  6. So I define this constant in my index.php and it works ok. define("UU_M_TERMS", append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms')); echo UU_M_TERMS; echo constant("UU_M_TERMS"); When I open another page the constant is not available any more. Should it be present in all pages and for the duration of the session? ThankYou
  7. I need the following three variables to be available globally, that is to every page. (An common header.html uses them at every page). Please teach me how to initialize them. (inside the header.html maybe?) 'U_M_CODE' => append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode'), 'U_M_TERMS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'), 'U_M_PRV' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'), Thank you.
  8. Thanks much everybody. Yes we are talking about a polls digest, a all bunch of tables.
  9. The intention is to alternate table rows background color between classes "row0" and "row1" defined elsewhere. Is this code valid ? <?php $rowclass = 0; ?> <table ... > <!-- BEGIN poll_option --> <tr class="row{ROWCLASS}"> ............ tried also : class="row<?= $rowclass ?>" <td> .......... </td> </tr> <?php $rowclass = 1 - $rowclass; ?> <!-- END poll_option --> </table> In the source I cannot see any value for "$rowclass". Thanks for helping.
  10. ThankYou Dezkit.http://www.phpfreaks.com/forums/Smileys/nrg_alpha/happy-02.gif
  11. Please bear with me. In an html file there is an <!-- BEGIN poll --> ..... <!-- END poll --> I need to draw a separation hr between all rows escept the first one. I believe I need a counter. Please show me how to do this. Thank you.
  12. Simple and, better, free if it is possible. Kindly advice.
  13. In php I am loading an html $template->set_filenames(array( 'body' => 'program_m5s_body.html') ); which contains these three lines : <!-- INCLUDE overall_header.html --> <iframe src=",/../pdf/program_m5s.pdf" width="100%" height="100%"> </iframe> <!-- INCLUDE overall_footer.html --> Is it possible to merge the html into the php, to eliminate the html alltogther ? Noob here. Please bear with me and thank you.
×
×
  • 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.