[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-01-2007, 03:09 PM   #1 (permalink)
Senior Member
 
Shorty's Avatar
 
Join Date: Sep 2005
Location: England
Posts: 1,035
102.05 NP$ (Donate)

Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice


Fix this script attempt?

Hey guys, I've got to make a hotel booking system in PHP and MySQL for a project, and i've ran into a brick wall. I'm working on the part where I check to see if the slot a user wants is available.

This a bit more complicated than it sounds. First of all the user also specifies a room type, so I first have to get a list of all rooms in the room table where the room type is what the user inputted.

I then have to take the roomid, and check the bookings table to see if there's a booking with that roomid during the given period, based on a start date and duration given in the form.

I have this:
http://pastebin.com/891815

As a rough idea, but I wrote it on the fly so I didnt test it as it went along. I'm hoping thats a sound enough basis for a kind person to repair the script, mainly the SQL query which I basically guessed.

If you want paying post your price here and i'll consider it. Thanks!
Shorty is offline  
Old 04-03-2007, 02:49 AM   #2 (permalink)
NamePros Member
 
Join Date: Sep 2005
Posts: 32
40.60 NP$ (Donate)

artofmobile is an unknown quantity at this point


Check this link, http://pastebin.com/891815, I gotta an error 145:

Query failure: Can't open file: 'pastebin.MYI'. (errno: 145)
select *,date_format(posted, '%a %D %b %H:%i') as postdate from pastebin where pid='891815' and domain=''


Error 145 refers to:

# perror 145
MySQL error code 145: Table was marked as crashed and should be repaired
artofmobile is offline  
Old 04-03-2007, 08:32 AM   #3 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Yes looks like pastebin have got database problems at the moment.
Peter is offline  
Old 04-03-2007, 08:39 AM   #4 (permalink)
Adrian
 
Hitch's Avatar
 
Join Date: Aug 2005
Location: Uk, South Yorkshire
Posts: 1,227
16.00 NP$ (Donate)

Hitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to behold

Animal Rescue Third World Education Find Marrow Donors!
The PasteBin Error is still there for me too.

Though, i suggest you read up on LEFT JOIN
__________________
NamePros
Hitch is offline  
Old 04-03-2007, 08:56 AM   #5 (permalink)
NamePros Regular
 
bliss's Avatar
 
Join Date: Dec 2005
Posts: 952
176.95 NP$ (Donate)

bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all


Sounds pretty easy to code. What is the exact problem?
bliss is offline  
Old 04-03-2007, 09:51 AM   #6 (permalink)
NamePros Regular
 
Join Date: Jul 2006
Location: England
Posts: 721
11.75 NP$ (Donate)

chicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to allchicker is a name known to all

Save The Children
Past bin is amiting to problems:

Quote:
Problems

Sorry folks, this hasn't been performing too well recently. Fixes are coming!
Maybe use another paste bin type site
chicker is offline  
Old 04-03-2007, 09:59 AM   #7 (permalink)
Senior Member
 
Shorty's Avatar
 
Join Date: Sep 2005
Location: England
Posts: 1,035
102.05 NP$ (Donate)

Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice


Dont worry about this any more guys, thanks for your replies though.

On a side note, how long has pastebin been malfunctioning?
Shorty is offline  
Old 04-04-2007, 06:59 PM   #8 (permalink)
Senior Member
 
superprogrammer's Avatar
 
Join Date: Aug 2004
Location: Washington
Posts: 4,319
0.13 NP$ (Donate)

superprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud ofsuperprogrammer has much to be proud of


Are you talking about this?
http://pastebin.com/
__________________
Download youtube videos at www.HugYouTube.com and free domains list atwww.FreeDroplists.com
Anonymous access at www.Banned.net
superprogrammer is offline  
Old 04-05-2007, 12:00 AM   #9 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
yes, if you look at the original post and click on the link you will see the problem.
Peter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:20 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85