Forum Moderators: coopster
mysql connect etc......
$iiiiijhh="$text <br>";
$fp = fopen("dir/page.html","w+");
fwrite($fp,"$iiiiijhh");
fclose($fp);
mysql total rows are 10 but its show only one for example
mysql rows
some text 1<br>
some text 2<br>
some text 3<br>
some text 4<br>
------
its creating file with
--
some text 1<br>
--
only one :(
any idea how to get all in the file
<?php
$con = mysql_connect("localhost","","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_db("my_db", $con);$result = mysql_query("SELECT * FROM person");while($row = mysql_fetch_array($result))
{
echo $row['FirstName'] . " " . $row['LastName'];
echo "<br />";
}mysql_close($con);
?>
ATB
bg
for more on PHP if u have just started here are the links... I too learnt it from here...
[w3schools.com...]
[edited by: eelixduppy at 7:38 am (utc) on Oct. 27, 2007]
[edit reason] removed db specifics [/edit]
Then you need to create a template for that page,
copy it as for ex: page_1.html in any directory
create a link pointing to that page
be sure that you may parse HTML/PHP
if that page is called it will be populated from your DB
but it requires some leg work
do your search try to come with something and comeback here.