Jump to content

array


0perator

Recommended Posts

if i were to have a table in a databse called `challeneges`

 

the fields were

 

____________________

|username | completed|

-----------------------

username    b1, b2, b3

 

 

and i have

$done = mysql_fetch_array($sql);

 

now,

$done['completed'] = b1,b2,b3

 

how do i search the array of $done['completed'] to see if it contains the string b1

 

i was thinkning explode around the ,

 

am i right?

Link to comment
https://forums.phpfreaks.com/topic/111317-array/
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.