| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | 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! |
| |
| | #2 (permalink) |
| NamePros Member | 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
__________________ Art of Mobile: A place for mobile resource Her Fancy: Girls' fancy to talk about technology Gaming Toy: Gaming related reviews and report Friend Place: Online Image Gallery |
| |
| | #8 (permalink) |
| Senior Member | 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 |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |