
blintas
Members-
Posts
28 -
Joined
-
Last visited
Never
Everything posted by blintas
-
//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
-
don't do a while statement, just print_r
-
well if it's empty that means there is no data in your tables....? that's why you can't pass the argument through??
-
print_r($tagging['tagging']); plz
-
[SOLVED] diplay images in directory....URGENT!
blintas replied to anf.etienne's topic in PHP Coding Help
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. -
This is not the right forum for this....
-
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
-
[SOLVED] Does this data need to be made safe for a database
blintas replied to keeps21's topic in PHP Coding Help
no you don't need to, waste of resources! -
[SOLVED] diplay images in directory....URGENT!
blintas replied to anf.etienne's topic in PHP Coding Help
Okay, then change your approach echo("<TR>"); while($array_of_images) { if($count == 5) { echo("</tr><tr>"); $count = 0;} echo("<td>image</td>"); $count++; } -
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!
-
[SOLVED] diplay images in directory....URGENT!
blintas replied to anf.etienne's topic in PHP Coding Help
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? -
Anyone have links to OOP PHP self knowledge test
blintas replied to nadeemshafi9's topic in PHP Coding Help
www.phpfreaks.com -
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.
-
$complete_array = array_merge($array1,$array2);
-
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!
-
Please post your code
-
...turn it on?
-
if (!$tel && !$mob) $contactdetails = $email; elseif (!$tel) $contactdetails = $mob else $contactdetails = $tel;
-
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; } ?>
-
Problem with php mysql - please help if you can.
blintas replied to flemingmike's topic in PHP Coding Help
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! -
do a print $userinput; and tell me what it says
-
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....
-
Problem with php mysql - please help if you can.
blintas replied to flemingmike's topic in PHP Coding Help
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... -
Do you have register_globals set to ON in your php.ini / .htaccess?
-
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']; }