Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Include bedos

Parašė Rytis· 2007 Lap. 2 10:11:33
#2

o čia į fusion meti?
Jei ta pati duom. bazė, tada panaikink jungimasį. Jei ne, tada

mysql_close();
// Make a MySQL Connection
mysql_connect("dd", "asdffa", "vava") or die(mysql_error());
mysql_select_db("dvavava") or die(mysql_error());

// Get all the data from the "example" table
$result = mysql_query("SELECT * FROM vsvsvs")
or die(mysql_error());

echo "<table border='1'>";
echo "<tr> <th>Name</th> <th>Age</th> </tr>";
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
   // Print out the contents of each row into a table
   echo "<tr><td>";
   echo $row['emailas];
   echo "</td><td>";
   echo $row['numeris'];
   echo "</td></tr>";
}

echo "</table>";



Redagavo Rytis· 2007 Lap. 2 13:11:03