-
An Online booking System
I built an appointment system for a hair salon a few months ago ... it turned out to be one of the most complicated projects I've had to tackle so far. Admittedly a lot of the complexity came from extra features that had to be added... three different levels of access, multiple staff accounts and varying appointment lengths to mention just a few. There were a lot of other, more random features as well, and the whole thing took about two months. As far as I know there is no commercial software available that would do this which is why we had to make a custom built solution. It was an interesting concept though and seems that it would be useful across quite a few industries, so I added it as a package to my website. If you'd like more info please feel free to PM me - something like this might be useful for your own project. All the best
-
Hide/Show included PHP file
Hi Rokain, Because your php scripts need to run on your server they can't be triggered from the browser end using javascript alone. However, ajax would allow you to do this and is not difficult for someone who already knows javascript, so you might want to give that a try ... W3 Schools AJAX Tutorial This tutorial will show you how to run a php script triggered with javascript. Best of luck... Kirsty
-
-
resize image problem
Hi there, You might like to try using something like this instead, it should do the trick if you're using PHP 5: $originalImage = $_FILES['image']['tmp_name']; $src = imagecreatefromjpeg($originalImage); list($width,$height) = getimagesize($originalImage); $ratio = $width/$height; if ($width > $height) {if ($width > 300) {$new_height = 300 / $ratio; $new_width = 300;} else {$new_height = $height; $new_width = $width;}} else {if ($height > 300) {$new_width = 300 * $ratio; $new_height = 300;} else {$new_height = $height; $new_width = $width;}} $target = "upload/image.jpg"; $tmp = imagecreatetruecolor($new_width,$new_height); imagecopyresampled($tmp,$src,0,0,0,0,$new_width,$new_height,$width,$height); imagejpeg($tmp,$target,100); This will resize your image to a maximum of 300px while retaining the original dimensions. If you're still having problems the manual for GD library is very helpful and not too hard to understand. Hope it works out ok! Kirsty
-
Hi There ...
Thanks for the welcome guys - it's great to be here ...
-
Hi There ...
Hi everyone - I just wanted to say a quick hello before I start posting ... My name's Kirsty, I'm based in Edinburgh and have been working as a freelance web designer for the last couple of years. I learnt everything I know online and am self taught in html, css, php, javascript, etc. I'm always looking to expand my skills so will probably need to ask plenty of questions, and I hope I have the chance to help a few other people along the way! All the best Kirsty