Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("lib/adodb/adodb.inc.php");
- $db = NewADOConnection('mysqli');
- $db->Connect("moodle-snapshot-a.ucl.ac.uk", "database_user", "password", "moodle_archive_1415");
- $result = $db->Execute("SELECT * FROM mdl_user limit 2");
- if ($result === false) die("failed");
- while (!$result->EOF) {
- for ($i=0, $max=$result->FieldCount(); $i < $max; $i++)
- print $result->fields[$i].' ';
- $result->MoveNext();
- print "<br>\n";
- }
Add Comment
Please, Sign In to add comment