forked from server/landingpage
Update index.php
This commit is contained in:
parent
beec63a50f
commit
c4da4f6362
@ -4,14 +4,16 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$con = mysqli_connect("localhost", "etherpad", "MyEtherpad17!", "etherpad") or die("FAIL");
|
$con = new mysqli("localhost", "etherpad", "MyEtherpad17!", "etherpad");
|
||||||
|
if ($con->connect_errno){
|
||||||
|
die("FAIL");
|
||||||
|
}
|
||||||
$query = 'select distinct substring(store.key,5,locate(":",store.key,5)-5) from store where store.key like "pad:%"';
|
$query = 'select distinct substring(store.key,5,locate(":",store.key,5)-5) from store where store.key like "pad:%"';
|
||||||
|
|
||||||
$result = $con->query($query);
|
$result = $con->query($query);
|
||||||
|
|
||||||
|
|
||||||
while($row = mysqli_fetch_array($result)){
|
while($row = $result->fetch_row()){
|
||||||
|
|
||||||
echo "<a target='_blank' href='http://pad.wiai.de/p/".$row[0]."'>".$row[0]."</a><br/>";
|
echo "<a target='_blank' href='http://pad.wiai.de/p/".$row[0]."'>".$row[0]."</a><br/>";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user