Jump to content

paparanch

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

paparanch's Achievements

Member

Member (2/5)

0

Reputation

  1. hellow world! i tried hard not to come here and ask for help to prove something to myself, but i just can't do this. here is the situation: actually i saw a lot of tutorials regarding resizing and croping photos using php, but most of them were done during uploading process...in my case i wanted to display images from a certain directory that are cropped and resized ON THE FLY...so meaning there is no thumbnail image that correspond to its large image...something like that... to make things more clear, i have big images from "myphotos" folder and i wanted to display it in the browser already cropped and resized proportionally...so here is my code so far...it only display images from my folder.... <? $p_cat = $row['project_name']; $handle = opendir('portfolio/'.$p_cat.'/'); if($handle) { while(false !== ($file = readdir($handle))) { if(preg_match("/\w+(.jpg)/",$file)) { echo "<div class='update_pics_frame'>"; echo "<div class='update_pics'>"; echo "<a class='mb' id='mb1' title='$event_name_formatted' href='/arcke/portfolio/".$row['project_name']."/$file'>"; echo "<img src='/arcke/portfolio/".$row['project_name']."/$file'>"; echo "</a>"; echo "</div>"; echo "</div>"; } } closedir($handle); } ?> tnx in advanced gurus!
  2. ahmnnnn....too much graphics i guess? and the font color is too strong...gudluck!
  3. ahmnnn....i think its better if you will make the edge of your title header smoother...that's all. ^^
  4. wow! it works like a charm! tnx for this mr.guru! now its all validated!
  5. hellow everyone! i validated my site emorocks.com, and i found out that there are some errors regarding my textarea tag...it says that <a> and <br> tag are not allowed inside the textarea tag...but these are really needed in my code so that the user will just copy it and paste it to their friendster profile...and the image will display in their profile...any help please? is their any solutions to fix this one to be validated in xhtml? echo "<textarea onclick='this.select();' rows='2' cols='10' style='overflow:hidden; width:448px; height:30px;' ><a href='http://www.emorocks.com/".$cat."/' ><img src='http://www.emorocks.com/comments/".$cat."/".$comment."' alt='Emorocks - the coolest place for free EMO comments' border='0' /></a><br />EmoRocks.com</textarea>";
  6. is there any negative impact in using htaccess in rewriting the url?
  7. thnx for all the resources....the problem is my html code still has errors...and i can't change it because its a code from other website..like free chatbox... mr.redarrow? will you please tell me more about this .htaccess? actually, i already done rewriting my urls using htaccess but i'm not pretty sure about it...
  8. ok! tnx for that! i guess your right, i really have to fix some errors in my html and css code...tnx again!
  9. hellow everyone! i'm sory if i post this thread in the wrong place. i just don't know where to post this one. anyway, i just want to ask from you guyz if using .htaccess to rewrite url on the fly can really make your website highly indexed by search engines? coz i have a website www.emorocks.com which i used .htaccess for rewriting its URL to be more highly indexed...but until now when i type emorocks.com in google, it did not appear on the result page...so i guess goole did not recognize my site...i don't know if its because i used .htaccess or what...i have no idea...any opinion? by the way i just uploaded my site last 3 days ago....is this the reason why its not yet recognize by search engines? i don't think so...any opinion pls? tnx in advanced!
  10. wow! it works mr.kickstart! i just added "desc" after the "ORDER BY"...thx a lot! problem solved!
  11. tnx for this mister but its not working for me....yah, it display three record with different category but it did not display the latest ones...
  12. yah mr.phpdragon! i have more than three categories... thnx mr.kickstart i will try that query...
  13. ahmnnn....its not really selecting the last added record on every category. what i wanted is to get the 3 latest added record but if in case the second record is the same category with the first or third, it will go to the next latest record and see if its different category...etc...until it will display 3 records with different category...
  14. i already tried that one mr.phprdagon but stillnot working... let me explain again.. i have record, let say: 1 - David - teacher 2 - MIke - student 3 - John - worker 4 - James - student 5 - Jake - student 6 - Don - worker it this table..Don is the latest added record..so the output should: 6 - Don - worker 5 - Jake - student 1 - David - teacher notice that they have different category... and here is the output of my code based on that table(which is wrong): 6 - Don - worker 5 - Jake - student 4 - James - student notice that it display two record with the same category, it should not display record with the same category...how am i going to do this?
×
×
  • 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.