Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

Grok 🤖

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Grok 🤖

  1. Cheers for the reply.. I've had a good look round now and I've come up with the following... RewriteEngine on RewriteRule ^browse/([a-zA-Z0-9_]+)/id/([a-zA-Z0-9]+)/?$ index.php?class=$1&id=$2 [L] RewriteRule ^browse/([a-zA-Z0-9_]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9]+)/?$ index.php?class=$1&model=$2&id=$3 [L] RewriteRule ^browse/id/([a-zA-Z0-9]+)/?$ index.php?id=$1 [L] RewriteRule ^browse/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$ index.php?class=$1&model=$2 [L] RewriteRule ^browse/([a-zA-Z0-9_]+)/?$ index.php?class=$1 [L] It does work, and quite well.. but is that a long way round to do it? could it be done with just like one regular expression (bare in mind it's not always "class", "model" and "id" in the URL.. "model" and "id" may not be in the URL, sometimes it may just have "class" and "id" in the URL, and also sometimes it may just be "id" in the URL..) so it is quite complicated... any help? cheers!
  2. Doubt you'd get one for free that'd be any good.. you'll need to look into creating a crawler / spider.. you'll find millions of results on google.. Adam
  3. Hey all... am tryin to use mod rewrite to make some friendly URLs for a site i've been working on for a family friend .. basically the main file to browse is called "Shop.php" ... there's several parameters passed to it and it works on conditionals depending whats been passed, so... if just "c" (which stands for class) is passed obviouslly it just returns the cars with the class of ### .. if "c" and "m" (which stands for model) are passed it will obviouslly return cars with class of ### and model ###.. if "c", "m" and "id" are passed .. OR .. just "id" it will return the car listed under that ID.. so some examples could be: - shop.php?c=SL_Class - shop.php?c=SL_Class&m=R230 - shop.php?c=SL_Class&m=R230&id=C6 - shop.php?id=C6 what i'm struggling to do is create a .htaccess file which will rewrite the files right so i could have: - shop/SL_Class/ - shop/SL_Class/R230/ - shop/SL_Class/R230/C6/ - shop/C6/ I've had a good butchers on the internet but couldn't find any help .. has anyone got a decent tutorial about something similar or any help they could giv me? Thanks a lot, Adam
  4. you can use cron if you've got a linux web server...
  5. what happens after they've switched menus? they supposed to stay there even when page has been refreshed? You need to look into arrays for storing the lists.. for getting them out of the database in the first place you'll be needing to learn a bit of server side.. PHP for example.. query the database and then just output them in into the javascript its self..
  6. Simple to do.. function clearForm() { var c=confirm('Are you sure?'); if(c) document.yourFormName.reset(); } Obviously you'll need to change 'yourFormName'.. and then add.. <input type="button" value="Clear" onclick="clearForm();" style="..." /> Needs to be a button tho otherwise it won't work.. a reset button would just reset every time, even if you click cancel..
  7. sure was.. yorkshire english! It's not online at this present time. But allow me to illustrate with a screenshot... http://www.minimerc.co.uk/images/listproblem.jpg - Hope this makes it clearer, cheers! Adam
  8. Well using a list for this.. list and err wanna make it look the same in IE as the rest obviously, except in IE it puts it like an inch to the left and completely ruins it. Used margin to make it look neat in FF but dunt work in IE... how do i go about getting IE to look the same, anyone know? Cheers Adam!
  9. Looks good. Though I do say in parts it does look a little 'rough around the edges'... not very keen on the green+white gradients, i think a little bit more work on them is needed.. Also the clock and date, why are they in an input instead of just a span or div? Just makes it look a little rough and unfitting... It's coded in tables and there's 113 validation errors! For some reason in the code about 2 thirds of the way down you close the head again and re-open the body? Apart from that all is good, easy to navigate and find the jobs.. Though if that list gets longer id probably suggest putting in some pagination... don't know if you've already thought about that or not? Adam
  10. well at the minute don't actually have anywhere to host the site... getting web space soon though. So al let yo know when its up on the WWW... cheers, adam
  11. The designs a little basic, looks good for a start but needs work. Banner looks a little too thin and doesn't really fit in.. Generally needs a bit more colour and a bit more detail, too bland in my opinion... Content wise it needs improving, seem to have capital letters in the middle of sentences and gappy text.. incomplete paragraphs, lots of line breaks, doesn't flow too well... overall the grammar isn't too good... also I'm not too sure what the difference between 'Spikeon Inc' and 'Naked Monkeys' is? Adam
  12. getting very little response, but I've done more changes.. http://www.minimerc.co.uk/images/design.jpg Cheers for any replies... Adam
  13. can't get on with test & test ?
  14. anyyy at all?
  15. well i wasn't necessarily meaning dial-up .. i just mean users with usage limits on their broadband.. but fair enough.. did you make the program? ----- Registered, went to submit a website but apparently I entered an invalid URL, must need http://?? but then I clicked back and it lost everything I put so, probably wanna stop that.. but registered now and all seems to work well...
  16. on the page where you display a website... how are you generating the image may i ask? Jus interested thats all... but I would say it would probably be better if you had 'overflow:auto;' on it, for example... http://www.webcriticz.com/index.php?p=display&sid=32 ... is a massive image in length .. also in size (memory) .. won't it be a little too much to expect the user to download? especially those with usage limits ... not to mention the usage on your server? Apart from that I think you're off to a good start, just needs some work... something seems to be missing... Adam!
  17. email confirmation thing dunt work... entered a gmail.com email address but I'v never received any email? ...and i'v always thought if the adds aren't making money yet, not much point in showing them? Adam x
  18. feel ya dog! well iv done some changes and stuff.. worked on better logo.. remember the website sells "ECOFLOW" products, most known products being little magnets that you wear round your wrist to like improve blood flow or summit! Thats sort of where the 'inspiration' came from... Anyway middle section I'm a bit stuck with at minute.. doesn't flow too well at all.. so that's still being messed with as clearly stated on the image... but err anyway new comments welcome.. http://www.minimerc.co.uk/images/design.jpg Cheers! adam!
  19. To be honest you've got a real good start towards a logo... that could be turned into something beautiful! But rest, yeah, just all looks too bland... Adam
  20. haha ! ah well.. here it is... http://www.minimerc.co.uk/images/design.jpg
  21. Well im in the middle of designing a web page that I'm setting up for a family friends small on the side business.. I've not got any web hosting at the second so I can't upload it but I do have a quick screen shot.. if you could all tell us what you think? tried and tested in firefox and IE .. fully compliant .. not completely finished tho, banner needs bit of work and so does few elements on the page but it's just a quick preview... http://mail.google.com/mail/?view=att&disp=inline&attid=0.1&th=1187bc5afa33527f Cheers! Adam
  22. Well you'd need a large database containing all of the zip codes for reference as a start. Then perhaps working with longitude/latitude to work out the distance from something? I'm not too sure, it's something I've only ever briefly looked into. You can pay a subscription price for a regularly updated zip code database or you can just buy one but I very much doubt you'll get it updated. I found this easily on google: http://www.zipcodeworld.com/ Adam
  23. I'm in the process of creating a friends system for my site. I'm really stuck trying to figure out how I could select the user info for each of the friends using JOIN. I have the db table setup like this: user_a | user_b | confirm --- MOD --- I've got a little closer, I now have the query: SELECT DISTINCT t1.*, t2.* FROM spawnusers AS t1, spawnfriends AS t2 WHERE t1.userid = t2.user_a OR t1.userid = t2.user_b This though returns everything twice, for example, if 'user_a' equaled 1 and the 'user_b' equaled 2, then when it gets to 'userid' (from the user table) 1 it will select it, and when it gets to 'userid' 2 t will select it. DISTINCT doesn't seem to be working? Idea of it is so i can then run a php script which prints out which connections are confirmed and which aren't. Can anybody help? Cheers!
  24. I've got to agree with filmgod.. needs some images and rollovers on the nav. When I see the front page it looks a little daunting to read, too much text presented in the same way. Images will help to break up the information and make it easier to read. Apart from that you do seem to be on to a good design... good colour scheme and looks neat. Adam
  25. Not a right lot really to give much feedback, but, colours work well. Fairly simple and neat. Not too keen on the little text at the bottom outside the main content. Inputs look a little plain compared to the rest of the site. Also few grammar mistakes; "Please, be allowed to choose a file". Apart from that well done - Adam
×
×
  • 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.