Jump to content

[SOLVED] problem on displaying item using explode


pixeltrace

Recommended Posts

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!

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.