Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
filechange
/
WEBSITE
/
douche
:
get_token2.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* <style> textarea.fixed { resize:none; } </style> */ $user = $_GET['user']; $db_host = "analogdepat.mysql.db"; $db_user = "analogdepat"; $db_pass = "Un92pac007"; $db_name = "analogdepat"; $connexion = mysql_connect($db_host,$db_user,$db_pass); if(!$connexion) { die('Could not connect: ' . mysql_error()); } mysql_select_db($db_name, $connexion); $sql= "SELECT * FROM firebase_token WHERE user = '".$user."'"; $result = mysql_query($sql); // echo "<table> // <tr> // <th>id</th> // <th>token</th> // <th>user</th> // <th>ts_du_jour</th> // <th>date_inscription</th> // </tr>"; /* while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['id'] . "</td>"; echo "<td>" . $row['token'] . "</td>"; echo "<td>" . $row['user'] . "</td>"; echo "<td>" . $row['ts_du_jour'] . "</td>"; echo "<td>" . $row['date_inscription'] . "</td>"; echo "</tr>"; $key = $row['token']; } echo "</table>"; */ $row = mysql_fetch_array($result); $key = $row['token']; $key = trim($key); //echo $row['token']; //echo "<input type='text' name='firstname' value='".$key."' disabled >"; //echo "<textarea CLASS='foo' disabled rows='4' cols='50'>$key </textarea>"; /* echo " <div class='container' > <div class='row'> <div class='col-25'> <label for='Clé'>Clé</label> </div> <div class='col-75'> <textarea CLASS = 'fixed' disabled id='cle' name='cle' rows='4' cols='50' >$key </textarea> </div> </div> </div>"; // style='height:200px' */ echo $key; mysql_close($connexion); ?>