Hey guys.. i have been having trouble with this script:
$con = mysql_connect("localhost","XXXXXXXXX","XXXXXXXX");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("XXXXXXX", $con);
echo "<table class='viewuserprofiles'>";
echo "<tr>";
echo "<td>שם האתר</td><td>סוג</td><td>קישור</td><td>משתמש</td><td>סיסמה</td><td>תיאור</td>";
$query = "SELECT * FROM ProfilesWebsites, ProfilesAccounts ".
"FROM ProfilesWebsites LEFT JOIN ProfilesAccounts ".
"ON ProfilesWebsites.ProfileWebsiteName = ProfilesAccounts.ProfileWebsiteName";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result))
{
echo "</tr><tr>";
echo "<td>" .$row['ProfileWebsiteName']. "</td>";
echo "<td>" .$row['ProfileWebsiteType']. "</td>";
echo "<td><a href='" . $row['ClientWebsiteUrl'] . "' target='_blank'>קישור לפרופיל</a></td>";
echo "<td>". $row['ProfileWebsiteUser'] ."</td>";
echo "<td>". $row['ProfileWebsitePass'] ."</td>";
echo "<td>". $row['profileWebsiteInfo'] ."</td>";
echo "</tr><tr>";
}
echo "<br style='clear: both' />";
echo "</table>";
if (!$result)
{
die('Could not connect: ' . mysql_error());
}
got MySql 5+..
Can Anyone Spot the problem?