Search

PHP Database Connection-Select Statement

$con=mysql_connect("localhost","user Name","password");

mysql_select_db("esdb",$con);

$statement="select * from Students where id=1";

$my1=mysql_query($statement);

while($row=mysql_fetch_array($my1))
{
    echo $row[0];
}

No comments:

Post a Comment

Java Interfaces vs. Abstract class

Summary of the similarities and differences between the Interfaces and Abstract class Abstract class Interface Has a constructor Yes No An i...