Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-type: text/html; charset=utf-8');
- $host='localhost';
- $user='username';
- $password='password';
- $dbname='racheaqui';
- $connection=mysql_connect('localhost:/var/run/mysqld/mysqld.sock',$user,$password) or die ("connection failed");
- mysql_select_db($dbname, $connection);
- $query = "SELECT * FROM store WHERE date >= NOW() - INTERVAL 20 MINUTE;";
- $result=mysql_query($query, $conexao);
- if ($result){
- while($row = mysql_fetch_assoc($result)){
- $email=$row['email_contact'];
- $name=$row['name'];
- $phone=$row['phone_contact'];
- }
- }
- #if (!empty($name)) {
- print_r("The user ".$name." with phone ".$phone." and e-mail: ".$email." has created an account in the system.n");
- mysql_close($connection);
- #}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement