Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Call user data to display back at the homepage

$
0
0

$conn = mysql_connect('localhost','jaesya','1234')
  or die(mysql_error());
  mysql_select_db("eleave",$conn);
  $result = mysql_query("SELECT * from detailsstaf WHERE icstaff='stafname'");
  $row = mysql_fetch_array($result);
  $name = $row['$strstafname'];
  $ic = $row['$stricstaff'];

<p align ="center"> <?php echo $name ?> | <?php echo $ic ?></p>

i've tried coding as above.. it doesn't have any error but it didn't display the data.. any idea why? 




Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>