Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

select query in php

// objected oriented method
<?php
	$con=new mysqli("localhost","root","","dbname");
	$sql="select * from tbl";
	$res=$con->query($sql);
	
	$while($fetch=$res->fetch_object(){
      echo $fetch->uid;
      echo $fetch->uname;
      echo $fetch->unumber;
    }
  
?>
 
PREVIOUS NEXT
Tagged: #select #query #php
ADD COMMENT
Topic
Name
8+6 =