Jump to content

blintas

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Everything posted by blintas

  1. //tagcloud proberen $tags = Array(); $tagquery = mysql_query("SELECT COUNT(tagging) AS count, tagging FROM games GROUP BY tagging ORDER BY tagging ") or die( mysql_error() ); /* //while( $tagging = mysql_fetch_assoc( $tagquery ) ) { //$tags[$tagging['tagging']] = $tagging['count']; $temp = implode(",",$tagging['tagging']); $temp2 = str_replace(" ",",",$temp); $final_temp = explode(",",$temp2); } */ $tagging = mysql_fetch_assoc( $tagquery ) print_r($tagging['tagging']); //$max = max($tags); //foreach ($tags as $tagging => $hits) //{ // $percent = round(($hits / $max) * 100); // echo "<a href='link.com/tag/".$tagging."' style='font-size: ".$percent."%'>".$tagging."</a> "; //} //einde tagcloud proberen
  2. don't do a while statement, just print_r
  3. well if it's empty that means there is no data in your tables....? that's why you can't pass the argument through??
  4. print_r($tagging['tagging']); plz
  5. for($x = $start; $x < $end; $x++){ $imageL= $path.$item[$x]; $img_path="http://ve-creative.com/test/8/$imageL"; // display the item echo '<center><p><img src= "'.$path.$item[$x] .'" height="100" width="100"></p></center>'; echo "<input type=CHECKBOX name=$imageL>"; echo "<a href=imgEdit.php?img=$img_path>[Edit / resize]</a><br>"; } echo "</td>"; } this part... this is the display portion where u are having issues. There is no where to break columns here.
  6. This is not the right forum for this....
  7. hey dude, got your PM just realized we are dumb. $tagging['tagging'] is an array, so we shouldn't be exploding it to convert to a string. Try this, going to convert to a string, then do an str_replace, then put it back into an array u can use on the cloud $tags = Array(); $tagquery = mysql_query("SELECT COUNT(tagging) AS count, tagging FROM games GROUP BY tagging ORDER BY tagging ") or die( mysql_error() ); while( $tagging = mysql_fetch_assoc( $tagquery ) ) { $temp = implode(",",$tagging['tagging']); $temp2 = str_replace(" ",",",$temp); $final_temp = explode(",",$temp2); //$temp = explode(",",$tagging['tagging']); //$temp2 = explode(" ",$temp); //$tags[$tagging['tagging']] = $tagging['count']; } print_r ($temp2); ok
  8. no you don't need to, waste of resources!
  9. Okay, then change your approach echo("<TR>"); while($array_of_images) { if($count == 5) { echo("</tr><tr>"); $count = 0;} echo("<td>image</td>"); $count++; }
  10. print both passwords (one decoded from form, one decoded from db) on a page and see if they match up first. When in doubt, print the data!
  11. So wait - how many images do you want to show if I've uploaded 6? And how do you want it do display? 5 images 1 image?
  12. using the count(itemid) as itemcnt lets you pull it as a variable from your mysql_fetch_assoc $query = mysql_query("SELECT count(itemid) as itemcnt, `date` FROM table_name GROUP BY `date`"); $row = mysql_fetch_assoc($query); print $row['itemcnt']; will give you the count.
  13. $complete_array = array_merge($array1,$array2);
  14. lol we all suck! jks, this should work. I was being a little lazy if (!$tel && !$mob) { $contactdetails = $email; } elseif (!$tel) { $contactdetails = $mob; } else { $contactdetails = $tel; } that will work!
  15. Please post your code
  16. ...turn it on?
  17. if (!$tel && !$mob) $contactdetails = $email; elseif (!$tel) $contactdetails = $mob else $contactdetails = $tel;
  18. Try this <?php function one_wordwrap($string,$width){ $s=explode(" ", $string); foreach ($s as $k=>$v) { $cnt=strlen($v); if($cnt>$width) $v=wordwrap($v, $width, "<br />", true); $new_string.="$v "; } return $new_string; } ?>
  19. Giving up is never the answer! Do a little bit of research on substr(); explode(); implode(); and mysql_fetch_assoc(); If you understand these functions, our solutions will work for you! Don't give up!
  20. do a print $userinput; and tell me what it says
  21. blintas

    encoding

    Hmmm that's tough, I've had similar issues in the past. What I typically do is setup a database for each language, but understand that might not be an option for you....
  22. You should query to grab a list of all the tables, then chop our the "ladder" portion using substr();, then get an array of all the IDs that are valid...
  23. Do you have register_globals set to ON in your php.ini / .htaccess?
  24. Try exploding twice, once for the commas then again for the spaces while( $tagging = mysql_fetch_assoc( $tagquery ) ) { $temp = explode(",",$tagging['tagging']); $temp2 = explode(" ",$temp); $tags[$tagging['tagging']] = $tagging['count']; }
×
×
  • 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.