Jump to content

Search the Community

Showing results for tags 'scrap'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hi friends I use this php code in order to create a simple html table from my data $start = 0; $end = $howmanyItemsOnArray; $split = 2; print "<table><tr>"; for($i = $start; $i < $end; $i++) { print "<td><a href=\"../../pages/".$pagesArray[$i]."\">".$clearPagesArray[$i]."</a></td>"; if(($i) % ($split) == $split-1){ print "</tr><tr>"; } } print"</tr></table>"; After the execution of the script i get this code <table><tr><td> <a href="../../pages/file01.html">File Title 01</a></td><td> <a href="../../pages/file02.html">File Title 02</a></td></tr><tr><td> <a href="../../pages/file03.html">File Title 03</a></td><td> <a href="../../pages/file04.html">File Title 04</a></td></tr><tr><td> <a href="../../pages/file05.html">File Title 05</a></td><td> <a href="../../pages/file06.php">File Title 06</a></td></tr><tr><td> <a href="../../pages/file07.html">File Title 07</a></td><td> <a href="../../pages/file08.html">File Title 08</a></td></tr><tr><td> <a href="../../pages/file09.html">File Title 09</a></td><td> <a href="../../pages/file10.php">File Title 10</a></td></tr><tr><td> <a href="../../pages/file11.html">File Title 11</a></td><td> <a href="../../pages/file12.html">File Title 12</a></td></tr><tr><td> <a href="../../pages/file13.html">File Title 13</a> </td></tr></table> Now what i want to for an application is store this html code to a string. Is this possible? I'm waiting for ideas.
×
×
  • 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.