Jump to content

Initialize


phpretard

Recommended Posts

How can  pull just the first letter from a row in a DB?

 

I need initials only from fisrt and last name.

 


$result = mysql_query("SELECT * FROM table");
while($row = mysql_fetch_array($result))
  {
  $initials=$row['FirstName'] . " " . $row['LastName'];

  echo "Initials Only";
  }

mysql_close($con);

 

 

Thanks for your help...

 

 

Link to comment
https://forums.phpfreaks.com/topic/98854-initialize/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.