Jump to content

0o0o0

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by 0o0o0

  1. This posts singles!!.. lol cept randomly.. like picture blank - description info picture - description info picture - description info picture - description info blank- description info thanks tho!
  2. $files = glob("./images/$code/*.*"); for ($i=0; $i<count($files); $i++) { $num = $files[$i]; Basically Im creating a k i j j i ji like site for a friend.. the second page works fine and shows all the photos.. whether its 1 or 20.. the first page is where I need to ONLY grab one photo file per listing. How do I modify this code to grab one photo ( either first in the folders or random any in the folders) The names are unknown to me to just simply code it by photo names. so the code above work would perfectly if I can only get one .. I tried $i=0; to $i=1; but that only takes a photo away. Im assuming its changing the count to... ? ... help me out thanks!
  3. ok here we go...... view this page. http://www.stmarytx.edu/universe/index.php?site=slideShowFancyExample its pagination.. but click the next button.. see how the page still stays on the very same page?? Im trying to get my page(s) NOT to do this.. so say on the link I have above.. if you clicked next.. it would be a totally completely new page.. and new pic. this is what im trying to accomplish.. ( not another rate my face site) but this idea exact.. excuse the content, but its only example I can show.. http://ratemyexgf.com/rate-my-girlfriend/popular/6633-yeah-sure-she-looks-good now heres the part I want that pagination somehow isnt showing on tutorials.. http://www.google.ca/#hl=en&output=search&sclient=psy-ab&q=6633-yeah-sure-she-looks-good&oq=6633-yeah-sure-she-looks-good&aq=f&aqi=&aql=&gs_l=hp.12...1564.1564.0.2535.1.1.0.0.0.0.75.75.1.1.0...0.0.kiEmRQ4hyRU&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=968d50904bb3f798&biw=1536&bih=702 see!!! google can pic up the page.. so its one single paginate??? and google can bot it. is this pagination?? or Form forwarding?? again dont click around in that site too much.. the captions are pretty nasty. But lemme know! and maybe you have somewhere I can read up more. I know pagination but somehow im not gettin this to work.. htaccess file changed also.. Another question.. yep yet another!... it jumps up in numbers.. indexs I assume.. ok but how does it know to jump jump jump from 6672 to 6678??? and NOT post page not founds for 6673 6674 6675 6676 6677??? im all questions this week! sorry.. lemme know tho
  4. its currently like this im having trouble figuring out how to change the #'s to something else like the actual page names. if(!isset($_GET['p'])){ $p = 1; } else { $p = $_GET['p']; } $max_results = 1; $from = (($p * $max_results) - $max_results); $low = ($from +1); $high = ($p *$max_results); $sql = "SELECT COUNT(*) as Num FROM `MyDB` where `act` = 'Y'"; $total_results = mysql_result(mysql_query($sql),0); $total_pages = ceil($total_results / $max_results); act is Y or N... meaning its uploaded and default N from the public, until I view it then I change it to Y. (not really the issue here) what I get is a pagination of mypage?p=1 where id rather it "know" somehow the name of the next fields as in MUSTANG + 2012 so google will see it as MUSTANG 2012... and not mypage?p=1 ever have one of those days your brain just doesnt know where to start lol.. heres my original I found on a date site and thought... wow it cues them.. then the next page it passes the next 15 on.. and so on and so on... so it makes it not so much pagination but each page as each page <form action="meetme.aspx" method="post" id="form1" name="form1"> <input type="hidden" name="add_id" value ="28667977"> <input type="hidden" name="next26" value ="26883214,28590733,28654666,28681535,27273243,28576166,28613584,28591951,28515273,28541847,18296015,28594117,27206532,21878719,28590233,28663167,5039360,28636411,28569000,28645007,28587048,28569415,7815397,26626891,28671149,28570991"> <input type="hidden" name="p_Id" value ="28667977"> below I dont need. //<INPUT TYPE="image" SRC="image/yes.png" NAME="votea" VALUE="1 //<INPUT TYPE="image" SRC="image/maybe.png" NAME="voteb" VALUE="2'> //<INPUT TYPE="image" SRC="image/no.png" NAME="votec" VALUE="3"> </form> !!!.. heres the question I should have asked.. lol...... ******* RATE MY FACE .com websites. They dont use pagination RIGHT?? or do they??? ******** one single photo page per page.. can that be paginated? SO say you want to see a certain person.. and you caught their name (mine would be car)... and you googled it... would it come up at the person page or ... just page 45 on a rate my face.com??? lol this is as about indepth I can get explaining. Thanks for any input guys.
  5. Basically pagination is simple.. its what exactly happens when GOOGLE bots it.. and says X is on ?page=2 then 3 months from now X isnt in ?page=2 but ?page=1233 ... google will be indexing wrong content on wrong pages. no? see what im trying to do is have ONE single page per page pagination.. like a pic of dog say.. then the person clicks NEXT.. next page is a CAT... person clicks next next page is a BIRD.. Im not doing 10 results per page.. im trying to make 1 result per page the actual page.. Thats why I asked is it really pagination I seeking? someone send me the BEST BESTEST PAGINATION pages you ever read.. ( just really hard to explain what Im looking for to you guys lol) let say I want RATE MY ???? WHATEVER type site.. best I can explain it. Single page per.. each page. But GOOGLE BOTTABLE..
  6. wicked, like... RewriteCond %{REQUEST_URI} !^/index.html RewriteRule ^([A-Za-z0-9-]+)/?.htm$ vehicles.php?car=$1 [L] k thanks.. how do you get two like Car Year RewriteCond %{REQUEST_URI} !^/index.html RewriteRule ^([A-Za-z0-9-]+)_^([A-Za-z0-9-]+)/?.htm$ vehicles.php?car=$1 year=$2 [L] ?? ( was a guess )
  7. Ok ive read 24 hours worth of paginations on the net.. yep. burnt out. Im not looking for "numbers".. prev 1 2 3 4 5 next.. because when you use this for Single one at a time pages.. the link is like page=1 page =2 then if I were to make it meta tagged and want it searchable.. what if say page=2 was say a mustang photo.. and I added another car like corvette to the list.. then that orignal page=2 wouldnt be mustang anymore.. it would be different... so then if someone views the google result Mustang.. it wouldnt be page=2 it would be page=3 which means it would be the wrong page. also I noticed with pagination examples.... say if the page was... the list.. page 1 2 3 4 would still be page the list. how do I make this 100's of pages.. read through and go page by page next car to next car.. is this possible?? How about one of those RATE MY ????? anything websites.. just confused..anyone point me in the right direction... and google +pagination doesnt seem to be what im looking for. Like if someone searhced MUSTANG... id want google to show MUSTANG PAGE... not blabla.com/website/vehicles.php?page=1 which will never be found. Hey am I lookin for a PRIMARY KEY?? should I do that?? then the results will be the same number for the same vehicles?? lemme know.
  8. Google lol .. ok thanks for that. Here lemme give you an example and tell me is this pagination also?? http://www.flickr.com/photos/yury-prokopenko/3561920871/ Where it says ... NEWER OLDER is that pagination?? I dont want numbers or total count details.. just BACK and FORWARD buttons.. now to do this ... does each individual page have to push the next in cue to the next page.. it all refreshes to goto the next page so im asking how does it know what the next 10 20 30 pictures is going to be?? is this link above in fact pagination ? OH EVEN THIS PAGE WERE ON HAS IT.. "« previous next »" bottom right.. is that pagination?? how does it know 30 clicks from now whats next in cue?? im stumped on this.. or is it just one of those... " IT JUST KNOWS" and we cant explain it things.. lol..
  9. <form action="meetme.aspx" method="post" id="form1" name="form1"> <input type="hidden" name="add_id" value ="28667977"> <input type="hidden" name="next26" value ="26883214,28590733,28654666,28681535,27273243,28576166,28613584,28591951,28515273,28541847,18296015,28594117,27206532,21878719,28590233,28663167,5039360,28636411,28569000,28645007,28587048,28569415,7815397,26626891,28671149,28570991"> <input type="hidden" name="p_Id" value ="28667977"> <INPUT TYPE="image" SRC="image/yes.png" NAME="votea" VALUE="1 <INPUT TYPE="image" SRC="image/maybe.png" NAME="voteb" VALUE="2'> <INPUT TYPE="image" SRC="image/no.png" NAME="votec" VALUE="3"> </form> I got this from datesite, But it suits my needs for something else. Exclude the 3 link options, I just want to use one. as a Next page button. and another as a back pagebutton. I made pagination already but I dont want that, I noticed pagination always keeps the same page, and just adds page numbers. But the same original page. The code above im assuming will allow to move to next new entire page with the new metas, and title and be botted by the search engines as a separate pages. And also keeping track of the next pages in que out of the entire specified db. So the question above is.. is there a page/website/tutorial.. terminology for this? pagination is pagination, is this like "form forwarding?? or something" ...So I can use.. $sql = "SELECT COUNT(*) as Num FROM `mydb` Where models = ' 2012' and have it list all the values of say 'models' but keep them in memory passing to the next page and the next until they have all been viewed. Sorry if what im typing is overkill and you already knew what I asking in the first view of the code above lol. lemme know thanks!
  10. hey thorpe mighty god of wisdom, ya might wanna scroll up and click on the parse_json() link ya sent me.. thats when I started waiting for someone elses help. but thanks pal.
  11. Thats fine, to anyone else out there who came to this thread for insite, heres the best possible read online.. trust me ive been to 121 pages in 6 hours. http://roshanbh.com.np/2008/10/creating-parsing-json-data-php.html goodluck!
  12. Ok another 3 hours later.. json_encode json_decode and json_parse ... not gettin it. how does it know where the 's are the "'s are the :'s are??? im really old school is everything pluggins today?? like wordpress etc.. I viewed the examples online and thought... how is it possible? ... is todays coding less work? .... when I was younger we had to build/code it all from scratch.. and BOTHS WAYS!!. (new age old guy) {"page_number":1,"total_rows":3,"date":"April, 19 2012 00:44:42","stats": [{"rnk":1,"top":4,"ref":1000007,"3Per":1.0,"sts":4,"w":2,"p":2,"sF":00112,"es":8.0020,"reg":"X","hN":"Defence","s":0,"winP":0.98}, {"rnk":3,"top":2,"ref":1000001,"3Per":1.0,"sts":4,"w":2,"p":2,"sF":00112,"es":8.0020,"reg":"X","hN":"Defence","s":0,"winP":0.98}, {"rnk":2,"top":4,"ref":1000000,"3Per":1.0,"sts":4,"w":2,"p":2,"sF":00111,"es":7.0002,"reg":"X","hN":"Forward","s":9,"winP":0.12}]} tell me how youd rip the "rnk" numbers and the "top" numbers.. It'll at least give me a jumpstart.. do you guys still do that today?? jumpstart cars? oh great lost another commadore key.. thats ok I still got the VIC for backup.
  13. anyone done json before?? any simple tutorials?? everything ive searched on the net for the past 3 hours is like live from one site to another site.. I just need a simple parse and rewrite file to either appear like a csv file (because thats what im familiar with) or auto input into a mysql database if its possible and less load on the server. thanks. Just a links great! .. or a quick sample code if you have the time. Thx.
  14. Anyone? Ive parced before but this maybe too complex?? {"page_number":1,"total_rows":3,"date":"April, 19 2012 00:44:42","stats":[ {"rnk":1,"top":4,"ref":1000007,"3Per":1.0,"sts":4,"w":2,"p":2,"sF":00112,"es":8.0020,"reg":"X","hN":"Defence","s":0,"winP":0.98}, {"rnk":3,"top":2,"ref":1000001,"3Per":1.0,"sts":4,"w":2,"p":2,"sF":00112,"es":8.0020,"reg":"X","hN":"Defence","s":0,"winP":0.98}, {"rnk":2,"top":4,"ref":1000000,"3Per":1.0,"sts":4,"w":2,"p":2,"sF":00111,"es":7.0002,"reg":"X","hN":"Forward","s":9,"winP":0.12}]} fields.. rnk, top, ref, 3Per, sts, w, p, sF, es, reg, hN, s winP... all after the : is the data I want. Ive done csv before its simple with , ' but this.. need a little help if possible. exclude {"page_number":1,"total_rows":2,"date":"April, 19 2012 00:44:42","stats": and start from [ to ] its orignally a text file.. to mysql is the plan.
  15. lol making it. or at least a base somewhere from the net to build on it. any links off hand?
  16. Im trying to auto download html pages from the net. Their sports picks.. basically I am doing this through cron. So I dont need to touch it when its figured out. Ok .. ive looked at lots of days bettwen dates scripts.. but I need this below.. say December 10th is the last day.. and today its October 14th. now theres dark days every tuesday and wednesday.. the html links are link www.blablba.com/nhl/146.html basically 146 is todays number.. oct 14.. so it being friday.. we will have sat which will be... 147.html .. then sun 148.html then mon 149.html... skip tues skip thursday.. then friday should be 150.html all the way up to december 10th. Does anyone have a smart way to script this? I was either thinking date = the number or automatically letting each date figure out the page number every day. lol is this even make sence?? sorry if not. How about.. I need the days from today till december 10th to count how many days have passed.. excluding tuesdays and thursdays.. then I'll just make oct14th = 146 then todays number = current number from date + oct14th
  17. Learning about indexing now.. seems like that is what I really need. find an index and delete the rows with older dates. hey im learning self teaching can be long and grueling by it should be oh about 2054 when ive learn 1/5th of php. lol
  18. WOW fenway .... havent figured it out yet.. but now im really understanding whats DISTINCT AND GROUP BY AND MAX means.. all I wants to do was grab the two line identical but with different dates.. and make it grab the newer full line with the newer date. I did not realize what I was doing is using something that pulls a max date.. and meshes it in with an older line.. making a whole new line.. no wonder I was so completely screwed up!!!!!!!! ok so this is what I want to do.. yamaha | todays date | red | 600cc | fast | 25 sold yamaha | yesterdays date | red | 600cc | fast | 10 sold Kawasaki | yesterdays date | red | 600cc | fast | 14 sold so it would use the new yamaha coming in from the cvs file... and would just re add kawasaki cause theirs no change. And kick out the old yamaha with the old sold qty. What it was doing and confused me was... took todays date but still posted yesterdays only 10 sold... like so. yamaha | todays date | red | 600cc | fast | 10 sold didnt realize it meshed the lines together and only took the MAX date and put it in yesterdays entry. wow .. duh! ok so.. all I want to do is... get the new listing in the db.. and kick out the out listing by date. but also keep any non changed entries regardless of date.
  19. oh! I need a column list for b as well?? maybe thats it? ( is that what you meant?)
  20. have two tables .. ones full of data.. and the other empty.. I want to move all from TABLE_A to TABLE_B.. while converting a text date to real DATE.. my guess... $sql = "INSERT INTO TABLE_B SELECT col1, (STR_TO_DATE(col2, '%m/%d/%Y')) as col2, col3,col4,col5,col6 from TABLE_A "; this does not work for me.. and the date does not convert. see any errors? ( identical columns identical tables)
  21. Start over.. have two tables .. ones full of data.. and the other empty.. I want to move all from TABLE_A to TABLE_B.. while converting a text date to real DATE.. my guess... $sql = "INSERT INTO TABLE_B SELECT col1, (STR_TO_DATE(col2, '%m/%d/%Y')) as col2, col3,col4,col5,col6 from TABLE_A "; this does not work for me.. and the date does not convert. see any errors?
  22. dude... its one thing to the next.. if I take either one of those off... it shows all dates NULL.. if I leavem on it works but doesnt select the current one .. if I dont use MAX or MIN.. NULL.. losin my mind.
  23. The thing... converts perfectly.. and does min max properly.. but when new data is imported with the already converted dates.. the system looks at the first one that does not need to be converted and stops. 2008-10-08 09/10/2008 etc etc it stops and does not convert the newer dates added in the other rows. anyone run into this problem?? how to make it ignore already converted formats.. and skip down the list to non converted and convert them?
  24. IF I made a 2nd tmp table.. so now I have.. cvs into first table... then converts dates in the first TMP table.. then the 2 TMP table have MIN MAX sort the dates.. what would I put for this to work... without the MIN MAX... cause when I just drop the min or max.. I get NULL dates. But with the MIN (or max) it actually converts the dates. ???? $sql = "INSERT INTO TMP SELECT DISTINCT Bike_manufacture, (STR_TO_DATE(entrydate, '%m/%d/%Y')) as entrydate, blah, blah_blah, bleh_bleh_bleh from STREETB group by (Bike_manufacture)"; mysql_query($sql); any ideas? drop the brackets? or is there code im missing now?? since I took the min or max out on the FIRST TEMP table. ?? thanks.
×
×
  • 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.