pixeltrace Posted February 25, 2007 Share Posted February 25, 2007 guys, need help, i cant make my values be displayed using explode below is the code for my query <? include '../db_connect.php'; $query = mysql_query("SELECT j_position, c_description, j_requirements, j_responsibilities, industry, specialization, level, j_type1, j_type2, j_type3, salary, location, country, DATE_FORMAT(date_closed,'%d %b %Y'), YEAR(date_closed) FROM job_ads WHERE jobid= '$jobid'") or die(mysql_error()); $row = mysql_fetch_array( $query ); $j_position = $row["j_position"]; $c_description = $row["c_description"]; $j_requirements = $row["j_requirements"]; $j_responsibilities = $row["j_responsibilities"]; $industry = $row["industry"]; $specialization = $row["specialization"]; $level = $row["level"]; $j_type1 = $row["j_type1"]; $j_type2 = $row["j_type2"]; $j_type3 = $row["j_type3"]; $level = $row["level"]; $salary = $row["salary"]; $location = $row["location"]; $country = $row["country"]; $date_closed = $row["DATE_FORMAT(date_closed,'%d %b %Y')"]; ?> and this is the code for my explode <? $lresponsibilities = explode("\n",$jresponsibilities); echo "<ul>\n<li>" . implode("</li>\n<li>",$lresponsibilities) . "</li>\n</ul>\n"; ?> hope you could help me with this. thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/40006-solved-problem-on-displaying-item-using-explode/ Share on other sites More sharing options...
fert Posted February 25, 2007 Share Posted February 25, 2007 what's the problem? Quote Link to comment https://forums.phpfreaks.com/topic/40006-solved-problem-on-displaying-item-using-explode/#findComment-193476 Share on other sites More sharing options...
pixeltrace Posted February 25, 2007 Author Share Posted February 25, 2007 its working now. hehehe. thanks for the help anyway i just got a typo on my assigned variable. cheers! Quote Link to comment https://forums.phpfreaks.com/topic/40006-solved-problem-on-displaying-item-using-explode/#findComment-193477 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.