Im trying to use the information from the PHPBB database in another page on my site.
This what i have pieced together so far. Its not working and i am a total noob at PHP so if anyone could help i would greatly appreciate it.
***************************
<?php
$host = "localhost";
$user = "****_**********";
$pass = "******";
$connection = mysql_connect($host,$user,$pass) or die (mysql_errno().": ".mysql_error()."<BR>");
$sql = "select * from phpbb_users where id=" . $_POST['username'] . " and ='" . userocc $_POST['user_occ'] . "'";
echo $sql;
$dbname = "619america_clanteam_phpbb";
mysql_select_db($dbname);
resource mysql_query ( string query [, resource link_identifier])
$query = mysql_query($sql);
array mysql_fetch_array ( resource result [, int result_type])
while ($row = mysql_fetch_array($query)) {
echo "<p>",$row['id'],": ",$row['userocc'];
?>
*********************************
