Below shown code after fetching data from database not listing the result?

<?php 
                                $answer = $listcareer['bigcontent'];

                                $bigcontent = substr($answer,0,10);
                                print_r($bigcontent);
                                exit();
                                        ?>

hi Jiby_1 , please show your query and also make sure that the field name is spelled correct.

Member Avatar for diafol
$answer = $listcareer['bigcontent'];
echo "Content of \$answer = $answer <br />";
$bigcontent = substr($answer,0,10);
echo "Content of \$bigcontent = $bigcontent";
exit();
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.