Jump to content

roseplant

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Everything posted by roseplant

  1. I have a website done in CSS in a blue colour scheme. Now I want to make this site red. Sounds easy, but there are half a dozen shades of blue I have to transpose into similarly pleasing shades of red. Easily a few hours work. Does anyone know of a script that can do this for me? If none exists wouldn't it be cool to have one - I can imagine a colour slider, as you drag the slider the whole site layout changes its colour scheme smoothly. Beautiful :)
  2. That was the problem - changed dashes to underscores and it worked, thanks!
  3. Am I retarded or just tired? Why is this query returning an error? [code]INSERT INTO stats (visit-date,visit-ip,visit-refer,visit-page,visit-useragent) values (NOW(),'134.226.111.111','','/scripts/stats.php','Mozilla');[/code] phpadmin says: "#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '-date,visit-ip,visit-refer,visit-page,visit-useragent) values ( "
  4. Thanks for the input mobe. I'll probably redesign the logo itself sometime in the future, but for now I'm trying to get the rest of the site perfect.
  5. I have a .htaccess file with several lines in the style : [code]RewriteRule ^three_star_hotels "http://www.mysite.com/scripts/hotel_search.php?h_rating=3&submit=Submit&title=Three Star Hotels" [L][/code] So for example when someone types in [a href=\"http://www.mysite.com/three_star_hotels\" target=\"_blank\"]www.mysite.com/three_star_hotels[/a] they go to that page. Now since the database is growing, and there are for example 20 three star hotels, I need to split them into two pages. The resulting PHP query addess for page 2 is: [code]http://www.mysite.com/scripts/hotel_search.php?h_rating=3&submit=Submit&title=Three Star Hotels Page 2&resultpageno=2[/code] Now I need to implement this into htaccess so that going to [a href=\"http://www.mysite.com/three_star_hotels/page2\" target=\"_blank\"]www.mysite.com/three_star_hotels/page2[/a] will take the user to that page. There are of course several categories, so what I need is a general line of code that will take the previous rule into account and just add &resultpageno=x to the page query. Does anyone know how to do this?
  6. Thanks for all your comments guys. I've taken them into account in my latest shuffle of the design. The header is now contained in a box, and the links previously at the top are now at the bottom (I don't think they were important for navigation of the site). I also gave the website title more prominence and was able to bring the content up a bit. I think it has a more compact look now as I have confined everything into a fixed width table. How do you like it?
  7. Just a few quick observations: [ol type=\'1\'][*]Perhaps you might make the current page's nav link a different colour to the mouseover link. It just doesn't look great when you mouseover the link next to the one currently selected.[*]The page looks very narrow to me[*]As has been said before, it looks too simple - fine for a static brochure site for a museum or whatever, but for a design site I'd expect to see what the designer is capable of when he is pushed to the limit if you know what I mean.[*]This is almost unnoticable, but as you are perfecting your CSS you might be interested to know that the nav bar is 1px smaller in height than the blue box to the left of it.[*]There is one page (Portfolio) which has a TEXTAREA. In Firefox at least (my IE isn't working at the moment due to a botched IE7 upgrade) if you resize the window smaller than the borders of the textarea, you can't see the scrollbars of the textarea and the page itself has no scrollbars. Hope you know what I mean by this, I'll elaborate if you don't understand.[*]The inputted text textarea in the Contact page is too small, and in a different font to the rest of the form.[/ol] This little screen grab illustrates points 1 and 4: [a href=\"http://www.theimagehosting.com\" target=\"_blank\"][img src=\"http://images6.theimagehosting.com/crashnburn.gif\" border=\"0\" alt=\"IPB Image\" /][/a] Hope this helps!
  8. I changed around some of those pointers you mentioned - restyled the ads, moved the search box, little bits and pieces. As for the nav buttons, I'm not sure what to do with them. I need them as plain text links for the search engines. Is this an improvement? I'll be away for about a week so won't be able to read your iron-fisted critiques until I get back :) but hope to see something I can improve on!
  9. lol I was just running some tests at that moment. funny you checked just in that < 1 minute timeframe.
  10. A guide to [a href=\"http://www.dublinhotelguides.com\" target=\"_blank\"]hotels in Dublin City, Ireland[/a]. Tell me what you think.
  11. Is the line 'this page took x seconds to process' really necessary?
  12. I love your site! I've being going through these review posts saying 'lame, ripoff, miami vice got a better colour scheme, ....'. But I like this. Great idea too, could be pretty cool if it went big-time - have you thought of blog integration, etc.? Definitely a market there. For now, get the code cleaned up. Here are some pointers: [ol type=\'1\'][*]I submitted my day, waited 4 seconds and got a message saying something like 'Script taking too long, continue or cancel'. Uh oh... Worked out when I clicked Continue, but that needs to be fixed ASAP.[*]After submitting a day, give a prettier page than the plain text that comes up. Though I'm sure you're working on this. Right?[*]Front image (car crash) : 117.89 kB. Too big. Optimise.[*]That font looks like Arial. Ugh - only google can pull that off.[/ol] All the best with the site!
  13. Very slow to load for me (in Ireland). Cheap hosting? I didn't give the game a go I'm afraid, it was that slow. Like 1 minute to load the full page.
  14. Ditto, the colour scheme looks unprofessional. Looks like a rock band fan site. Plus I don't know what you're doing to your adsense but the ads are completely irrelevent, you'll get no click thrus. This was the top ad: The Coming World War Find out what Nostradamus says about the years 2006 - 2012. Terrorism Experts Read the latest research about mideast terrorism & terrorists The bottom one carried 2 travel ads.
  15. Yeah, that's the problem I'm having too :). I don't know where to start the code. This is what I have so far. This code returns a list of all the attributes of a particular widget ($widget_name). [code] $widget_name = 'Snazzy Widget';     $attributes_query = 'SELECT h_attribute_name,h_attribute_id FROM h_attributes WHERE '             . ' ('             . ' (match_attributes.attribute_id = attributes.attribute_id)'             . ' AND'             . ' (match_attributes.widget_id = widgets.widget_id)'             . ' AND'             . " (widgets.widget_name = '$widget_name')"         . " )"; [/code] Now what I need to do is print a list of all possible attributes, with a checkbox next to each one. If $widget_name has an attribute the appropriate box(es) is checked. The user can check/uncheck boxes and submit the form to change the widget's attributes. Hope I've made myself clear!
  16. I'm quite inexperienced in mysql so this one has me stumped. I'll try to describe the situation. I have a database of, you guessed it, Widgets. Table : widgets. Columns: widget_id,widget_name Sample data: 1,SnazzyWidget 2,SleepyWidget Table: widget_attributes Columns: attribute_id, attribute_name Sample data: 1, Can fly 2, Can talk 3, Multi-coloured 4, Executive class Table: attribute_map Columns: widget_id, attribute_jd Sample data: 1,1 1,4 1,3 2,3 I hope you get the picture. attribute_map maps the two other tables together. A widget can have more than one attribute, as in the sample SnazzyWidget can fly, is multi-coloured and is Executive class. So in the widget product page I want to print a list of all the attributes the particular widget has according to the database. I can do this. So the next step is in the Admin pages, I want to print a list of checkboxes and the box is checked if the widget has that particular attribute. EG. for Snazzywidget the output would be: Can fly | CHECKED Can talk | NOT CHECKED Multi-coloured | CHECKED Executive class | CHECKED The user can then check or uncheck the boxes as needed and resubmit the form, updating the database. Could someone tell me how I can code this (PHP + mysql)?
×
×
  • 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.