Magento Engineer
social
Journal

How to get some word from database using php and mysql?

Fetch content table from your database. I have stored this in $descp.

$descp=$row['YOUR MySql content table'];

$arr=array();//global array

$arr = explode(" ",html_entity_decode($descp));

$record = array();

$k =count($arr);

for($x=0;$x<=25;$x++){

if( $x < $k){

$record[] = $txt[$x];

}

}

echo "OutputData".$data =implode(" ",$record);

Ad comes here
Comments
Leave A Comment
PHP blog
Update Cookies Preferences