Created
May 3, 2018 14:55
-
-
Save slick2/ad0a844a4f22342d1b7a15a9f579270e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* pconnect for newbies */ | |
mysql_pconnect('localhost', 'root', '') | |
or die(mysql_error()); | |
mysql_select_db('mooddatabase') | |
or die(mysql_error()); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$result = mysql_query("select * from users"); | |
while($users=mysql_fetch_array($result)){ | |
echo $users['username']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment