Hi, I am trying to learn how to use a data base to store photos and such,
I can now get info into the base and can get all the records to display , this is not what I had planed,
So that lead me on a surch for answers and thus broght me here,
this code gets me a record on the screen,
<?php
include('conect.php');
$data = "select * from table1 where id = 1";
$query = mysql_query($data);
$data2 = mysql_fetch_array($query);
?><HTML><HEAD><TITLE></TITLE><META name=GENERATOR content="MSHTML 9.00.8112.16457"></HEAD><BODY>
// form to display record from database
<FORM method=get action=next.php target=_self><P align=center>
id: <INPUT value="<?php echo $data2[a]?>"> <BR>
nick: <INPUT value="<?php echo $data2[b]?>"> <BR>
a1: <INPUT value="<?php echo $data2[c]?>"> </P><P align=center>
a2: <INPUT value="<?php echo $data2[d]?>">
a3: <INPUT value="<?php echo $data2[e]?>"></P><P align=center>
a4: <INPUT value="<?php echo $data2[f]?>">
a5: <INPUT value="<?php echo $data2[g]?>">
a6:</P><P></P><P align=center> <INPUT value="<?php echo $data2[h]?>">
a7: <INPUT value="<?php echo $data2[c]?>"></P>
<P align=center>
<INPUT name=Last value=-1 type=submit>
<INPUT name=Next value=+1 type=submit></P>
</FORM><P align=center></P>
</BODY></HTML>
and now I have no clue on how to get the form to go collect the next or last record and post it back to the same form, ,,, if I get id=1 then when next button is pressed it adds 1 to id and then over write the page ?
hope you can help , thanks.