Parašė kiskiss· 2007 Lap. 2 01:11:49
#1
index.php<?php
// 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>";
?>
Atidarius ši index.php pamatai emaila ir skaičiu, tačiau aš niekaip nesugalvoju kaip reikia ši dalyka includinti i
php faila?
meginau include komandas bet nepadejo, o jei meginu visa scripta ikišti meta klaida. Gal kas turit sumanymu?
Redagavo ozzWANTED· 2007 Lap. 2 01:11:35