# Help me install this php thing... please?

**URL:** https://boards.straightdope.com/t/help-me-install-this-php-thing-please/591889
**Category:** Factual Questions
**Created:** [August 8, 2011, 1:06am UTC](https://boards.straightdope.com/t/help-me-install-this-php-thing-please/591889 "2011-08-08T01:06:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)
#### Post date: [August 8, 2011, 1:06am UTC](https://boards.straightdope.com/t/help-me-install-this-php-thing-please/591889/1 "2011-08-08T01:06:22Z")

</div>

[http://www.sim-php.info/users-online-script.php](http://www.sim-php.info/users-online-script.php)

I’ve done step 1 and put the table stuff in my mySQL database. I can’t figure out step 2. Step 3 looks pretty obvious.

I’ve filled out the blanks in step 2 ([http://www.sim-php.info/mysql-connection-tutorial.php](http://www.sim-php.info/mysql-connection-tutorial.php)) for user/pass/database but I don’t know what I’m supposed to do with this resulting chunk of code. Nor the one below it. Do I save them as files and put them somewhere? How do I reference them? Do I put them inline in the page? that seems bad as they contain passwords. What do I do? Halp!

Thank you in advance.

---

<div class="post-metadata">

### Author: ![tellyworth](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@tellyworth](https://boards.straightdope.com/u/tellyworth)
#### Post date: [August 8, 2011, 1:27am UTC](https://boards.straightdope.com/t/help-me-install-this-php-thing-please/591889/2 "2011-08-08T01:27:05Z")

</div>

Please don’t. It has an obvious SQL injection vulnerability.

---

<div class="post-metadata">

### Author: ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)
#### Post date: [August 8, 2011, 1:58am UTC](https://boards.straightdope.com/t/help-me-install-this-php-thing-please/591889/3 "2011-08-08T01:58:50Z")

</div>

Do you know of any other X many people are on this site" scripts that don’t? That would work on a php site? Actually, I’ll start a new thread for that.
