regex
This commit is contained in:
1 parent
b83f3cba5f
commit
5b5a64fdad
3 files changed
+153
-2
No files matched your search
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
$host = 'localhost';
|
||||
$user = 'root';
|
||||
$pass = 'ServBay.dev';
|
||||
$dbnm = 'planner_al';
|
||||
|
||||
date_default_timezone_set('Europe/Warsaw');
|
||||
setlocale(LC_TIME, 'pl_PL.UTF-8');
|
||||
|
||||
+12
-2
@@ -24,10 +24,20 @@
|
||||
<p>Na <?=$date?> zaplanowałem:</p>
|
||||
|
||||
<br>
|
||||
|
||||
<textarea name="plans" id="plans"><?php
|
||||
include('./config.php');
|
||||
$conn = mysqli_connect($host, $user, $pass, $dbnm);
|
||||
|
||||
<textarea name="plans" id="plans">
|
||||
$plany_q = $conn->prepare('SELECT value FROM wydarzenia WHERE `date` = ?;');
|
||||
$plany_q->bind_param("s", $date);
|
||||
$plany_q->execute();
|
||||
|
||||
</textarea>
|
||||
$plany_r = $plany_q->get_result()->fetch_assoc();
|
||||
echo @$plany_r['value'];
|
||||
|
||||
mysqli_close($conn);
|
||||
?></textarea>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
Reference in new issue
Block a user