astm 0 Newbie Poster

hi my friends :lol:

today i want to ask about important something


iam make page to know the user and his password


the code for this page will

-----------------------------------------------------------------------

<html dir='ltr'>

<head>
<meta http-equiv='Content-Language' content='en-us'>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<title>User name</title>
</head>

<body>

<!-- welcome text -->
<b>
<marquee width="40%" scrollamount="3">
<?
echo "Hi ".$T1;
?>
</marquee></b>
<?
////////////////table head
echo"
<div align='left'>
<table border='1' width='40%' cellspacing='0' cellpadding='0' style='border-style: solid' bordercolor='#000000'>
<tr>
<td>
";
/////////////////////////////////////////////////////////////////////////////////////////////
// the form
echo"
<form method='POST' action=$PHP_SELF>
<br>
<p align='left'>User name : <input type='text' name='T1' size='20'></p>
<p align='left'>Password : <input type='password' name='T2' size='20'></p>
<p align='left'>&nbsp;Remember me
<input type='checkbox' name='C1' value='ON'></p>
<p align='left'><input type='submit' value='GO' name='B1'></p>
</form>
";
////////////////////////////////////////////////////////////////////////////////////////////
/////////////// end table
echo"
</td>
</tr>
</table>
</div>
";


?>
</body>

</html>

-------------------------------------------------------------------------

now i want to make this page remember the user

if he come agine :lol:


can you help me ?????????? :rolleyes:

astm 0 Newbie Poster

the following code read from database by limit to show 2 records

now i want to make link or button to show the next 2 records or the previons 2 records


please tell me how i can do that ??????????????? :o


the cod is

<?

$link = mysql_connect("localhost","","")
or die("error connect");

$dbrusult=mysql_db_query("mydata","select * from table LIMIT 0, 2 ");

echo ("<table border=1>");

echo ("<td align=center>NO</td>");
echo ("<td align=center>NAME</td>");
echo ("<td align=center>Country</td>");


while ($row=mysql_fetch_array($dbrusult))
{
echo "<tr>";
echo "<td align=center>$row[0]</td>";
echo "<td align=center>$row[1]</td>";
echo "<td align=center>$row[2]</td>";
echo "</tr>";
}
echo ("</table>");
mysql_free_result($dbrusult);
mysql_close($link);


?>

astm 0 Newbie Poster

i want any one tell me

how can i used session and cookies ??? :o :o :o

astm 0 Newbie Poster

thank you Killer_Typo


now i want to now how i can make update

astm 0 Newbie Poster

please

iam ask about

how can i delete and update from table ? :confused:

please i want example to delete data from table

and aother example to make update data from table

please help me :o