# PHP Help

**URL:** <https://forum.kirupa.com/t/php-help/242744>\
**Category:** Uncategorized\
**Created:** [October 29, 2007, 11:49pm UTC](https://forum.kirupa.com/t/php-help/242744 "2007-10-29T23:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tejh](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Tejh](https://forum.kirupa.com/u/Tejh)\
**Post date:** [October 29, 2007, 11:49pm UTC](https://forum.kirupa.com/t/php-help/242744/1 "2007-10-29T23:49:34Z")

</div>

I want to create a script that I can use a text box and a query button(just a submit button) to select a character name then bring the stats into respective text boxes.

So If you wanted to look up

Patchwork.

Then hit the submit button

It would output

Patchwork  
HP: [Taken from MySQL table for HP]  
–Stats–  
Str  
etc…

I need to know.

How to select those variables like

$str = [str]  
$agi = [agi]

and so forth.

I dont want the whole code. I just want help with selecting the MySQL variables and outputting them in HTML
