Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Domain Monster Domain Name Registration

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 01:46:15 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design
Connect with Facebook

Website Design Discuss web design

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 02-09-2011, 08:08:52 AM     #21 (permalink)

 
Join Date: Jun 2011
Location: Cambridge
Posts: 579
chippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond repute

Cheers everyone for there help, I think we are there now with all your help, what is it called when you change the url to say the hotel name instead of it being say desc.php?id=ba ba

so its something like desc.php/hotel-name?

Thnaks again everyone
chippyb is online now  
Old 02-09-2011, 08:54:36 AM     #22 (permalink)

 
grantw's Avatar
 
Join Date: Mar 2005
Posts: 3,625
grantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond reputegrantw has a reputation beyond repute

Quote:
Originally Posted by chippyb View Post
Cheers everyone for there help, I think we are there now with all your help, what is it called when you change the url to say the hotel name instead of it being say desc.php?id=ba ba

so its something like desc.php/hotel-name?

Thnaks again everyone
If this site ever sells I reckon you should be donating 50% of the profits to admin seeing as most of the site has been built by forum members!

mod rewrite / url rewrite

http://www.yourhtmlsource.com/sitema...rewriting.html

As has been suggested, pleeeease buy some php books or read some tutorials online.

Grant
grantw is offline  
Old 02-09-2011, 09:00:28 AM     #23 (permalink)

 
Join Date: Jun 2011
Location: Cambridge
Posts: 579
chippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond repute

But your not just helping me out your helping out everyone else who reads this, and this is only a tiny function in the whole site on one page, so hardly most of the site, I am a html/css writer php is new to me and I thank you all for your help,
its was only one line of code that was cocking everything up other than that I had most of it down,
But thank you anyway,
Im will to help anyone out I can if I can

Ryan
chippyb is online now  
Old 02-09-2011, 10:13:35 AM     #24 (permalink)
Member
 
Join Date: Aug 2009
Posts: 81
awgthomas is on a distinguished road

mod_rewrite is what your are looking for but think you should look at that bit a little later.

Try creating small 'deliverables' and you will soon work your way through to building your own site.

I would highly recommend you picking up a PHP book though as it will walk you through these common issues you face.

Other than that, your next bible should be http://www.php.net/
awgthomas is offline  
Old 02-09-2011, 10:23:18 AM     #25 (permalink)

 
Join Date: Jan 2007
Location: Barnsley, South Yorkshire
Posts: 523
StudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond reputeStudioVision has a reputation beyond repute

As I said when I fixed your desc.php script, you'd be much better off reading about correctly optimised database structure. If you had a few thousand rows in your database your site would struggle as you are searching for a numerical id which is stored as a varchar when it should be stored as an integer. This column should also be set to auto increment so that all id's are unique, as at the minute you could have more than one column with the same id.

Hope this helps.

Craig
StudioVision is offline  
Old 02-09-2011, 11:43:16 AM     #26 (permalink)

 
Skinner's Avatar
 
Join Date: Jul 2008
Location: Manchester
Posts: 2,507
Skinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond repute

Craig, So help me codd!

If ever there was someone other than Jedward who need a cattle bolt gun thingy to head its Mr Codd, I actually hear it in the voice of Quasimodo doing the bells, the bells.

mod_rewrite is going to open you up to regex, I know many very good php coders who struggle with regex.

Already your into normalisation and regex which are fairly advanced sql and php, you're going to struggle alot hunting errors and making changes and updates, this is like going from crawling to sprinting.
__________________
Browse:
Skinner is offline  
Old 02-09-2011, 11:49:49 AM     #27 (permalink)

 
Join Date: May 2007
Posts: 1,148
monaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond repute

As a database guy, I would strongly advise that the database is correctly indexed and you avoid things like SELECT * and you have well thought out WHERE clauses to use indexes and just return what you are going to use.

If not, you are likely to cause a big strain on the database (especially when you get a fast multiple access such as a search engine bot). Failure to optimise may cause major performance issues which get your hosting account closed down if you don't have an understanding host

A little time spent on optimisation reaps big rewards, I have a client who thought he was looking at needing a dedicated server, after a few hours work he's now continuing to run on a shared account and > 10 fold faster than the original site.
__________________
Alex Monaghan - Drop Catch & Drop Lists - PM for details
Online Accounting|Pine Furniture|Barbie
monaghan is offline  
Old 02-09-2011, 11:58:55 AM     #28 (permalink)

 
Join Date: Jun 2011
Location: Cambridge
Posts: 579
chippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond reputechippyb has a reputation beyond repute

Quote:
Originally Posted by StudioVision View Post
As I said when I fixed your desc.php script, you'd be much better off reading about correctly optimised database structure. If you had a few thousand rows in your database your site would struggle as you are searching for a numerical id which is stored as a varchar when it should be stored as an integer. This column should also be set to auto increment so that all id's are unique, as at the minute you could have more than one column with the same id.

Hope this helps.

Craig
Yea I did change that straight away, I need to get some time to sort out the data base again as I was only doing stuff for testing and I know it works I can get on with it
chippyb is online now  
Old 02-09-2011, 12:23:11 PM     #29 (permalink)

 
Skinner's Avatar
 
Join Date: Jul 2008
Location: Manchester
Posts: 2,507
Skinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond repute

Coders folly my son, you build something to test it an before you know it, you've invested too much time to want to scrap it.

If you intend to scrap it, STICK TO IT!, I can't tell you how much hassle you will save yourself

Quote:
Originally Posted by chippyb View Post
I was only doing stuff for testing and I know it works I can get on with it
__________________
Browse:
Skinner is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
Dynamic pages chippyb New Domainers 5 31-08-2011 02:30:11 PM
Yellow Pages buys 411.ca, ClearSky. - Montreal Gazette RSS Domain Name News 0 22-02-2010 04:59:11 PM

Web Hosting from UK2 from just 99p


All times are GMT. The time now is 01:46:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".