Jump to content

Search the Community

Showing results for tags 'names'.

  • 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 2 results

  1. Hi all, I have a query.... have to get all the attribute names as well as values of textbox in json format. Below is the sample example how can i need to get the output... <form action="" method="POST"> <input type="text" name="someName" id="someId" maxlength="12"> <input type="submit" name="submit" value="Submit"> </form> When i click the submit button, i nedd to get all input types whether it could be textbox / textarea / checkbox / radio button in json format. Example: When i click on submit button, the output will be like these..... {"type" : "text", "name" : "someName", "id" : "someId", "maxlength" : "12"} If any body knows, Please give me some suggention with examples. Thanks in advance....! :'( :'(
  2. trying to write a code that will repeat a name until it gets to the number on the database. Database Information Name Number Mike 2 Oscar 2 Robert 1 Wanted to look like Full Name Mike Mike Oscar Oscar Robert Here is my Code <?php $result = mysql_query("SELECT * FROM `people`"); echo "<table border='1'> <tr> <th>Full Name</th> <th> </th> </tr>"; for ($i = 1 , $row = mysql_fetch_array($result) ; $i <= $row['Number'] ; $i++ ) { echo "<tr>"; echo "<td>" . $row['Name'] . "</td>"; echo "<td> </td>"; echo "</tr>"; } echo "</table>"; ?> When i run the code it will only show the result like this Full Name Mike Mike and when i put the "for" again in the bottom of the first one it will show like this Full Name Mike Mike Oscar Oscar <?php $result = mysql_query("SELECT * FROM `people`"); echo "<table border='1'> <tr> <th>Full Name</th> <th> </th> </tr>"; for ($i = 1 , $row = mysql_fetch_array($result) ; $i <= $row['Number'] ; $i++ ) { echo "<tr>"; echo "<td>" . $row['Name'] . "</td>"; echo "<td> </td>"; echo "</tr>"; } for ($i = 1 , $row = mysql_fetch_array($result) ; $i <= $row['Number'] ; $i++ ) { echo "<tr>"; echo "<td>" . $row['Name'] . "</td>"; echo "<td> </td>"; echo "</tr>"; } echo "</table>"; ?> i need something to repeat "For" until it finishes all the Names
×
×
  • 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.