Jump to content

Lots of Exploding


yuso6363

Recommended Posts

If I understand you properly then you can implement like this

$query = mysql_query("SELECT * FROM table_name");

while($row = mysql_fetch_array($query))

{

// you can apply explode here on each row data like name and school

 

$name_arr = explode("-",$row["name"]);

$school_arr = explode("-",$row["school"]);

 

}

 

I hope above code helps you.

 

Link to comment
https://forums.phpfreaks.com/topic/215315-lots-of-exploding/#findComment-1119691
Share on other sites

My site is a virtual pet website and I am trying to add a pet breeding page. I need it to get every pet that has the persons user id on it then show a link to the person to choose a male pet from the list and a female pet from the list.

 

I can't get it to fetch more than one pet at once

Link to comment
https://forums.phpfreaks.com/topic/215315-lots-of-exploding/#findComment-1119922
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.