Quote
Unknown column 'd.download_description_short' in 'field list'
$current_tags=array("one,","two","three","four","five");
$new_tags="one, two, three, four, six";
$temp_tags=explode(", ",$new_tags);//we splitted new tags and made a $temp_tags array
foreach ($temp_tags as $eachtag) {
if (!in_array($eachtag,$current_tags))
array_push($current_tags, $eachtag); // or $current_tags[]=$eachtag;
}
print_r($current_tags); //six will be added to $current_tags array
$result= dbquery("SELECT
tag_id,
tag_type,
tag_tags
FROM ".DB_TAGS."
ORDER BY
RAND() LIMIT 0,10
");
$result= dbquery("SELECT
tag_id,
tag_type,
tag_tags
FROM ".DB_TAGS."
GROUP BY tag_tags
ORDER BY
RAND() LIMIT 0,10
");
Category Forum
Official releases [Infusions]Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions