I have this form in my 'index.php'
<form id="form1" name="form1" method="post" target="foo" action="include/database.php">
<input type="text" name="betamount">
<input type='text' name="multipler">
<input type="checkbox" name="hilo" value="High" checked>
<input type="submit" name="submit" value="Bet">
In my database.php:
I connect to my mysql database
Fetch the post values
Upload them to a database and then close the connection
THe thing is, this isn't efficient, someone can try running thousand requests per second and im sure there can be some problems
Is there any way to make it connect once and then only run the queries?