<?php require('./adodb5/adodb.inc.php'); if (!empty($_GET["song"])) { $db=NewADOConnection('mysql'); $db->Connect('localhost','u449949546_pesni','25945852','PESNI'); $db->debug=false; $record['Title']=$_GET["song"]; $record['time']=date("Y-m-d H:i:s"); $insertSQL = $db->AutoExecute('songs', $record, 'INSERT'); $db->close(); echo "Received"; } else { echo "ERROR"; } ?>
<?php require('./adodb5/adodb.inc.php'); $db=NewADOConnection('mysql'); $db->Connect('localhost','u449949546_pesni','25945852','PESNI'); $db->debug=false; $list=$db->GetAll("SELECT title FROM songs ORDER BY id DESC LIMIT 10"); foreach($list as $msg) { print $msg['title']; } $db->close(); ?>
Deprecated: Assigning the return value of new by reference is deprecated in /home/u449949546/public_html/adodb5/adodb.inc.php on line 889 ERROR