Everything posted by Daemon Byte
-
Check if image is present - problem?
first you really should alter that code. replace fetch_array($result, 'MYSQL_ASSOC') with fetch_assoc($result); Also NEVER use select *. Always select the fields. it's just better practise and stops you pulling data you don't need. Also you are checking if file1 exists but then displaying $myrow['file1'.$file]? is that an error or what are you trying to do? Lastly what exactly is the system doing wrong? what do you mean giving you the surrounding image size?
-
Pagesgarden Problems: Are Pagesgarden on the way out?
hosters are all over the show offering a wide range of prices and features. If they're looking dodgy which it seems they are get away and find a reliable hoster to avoid serious downtime.
-
Apple unveils new Ipod Touch
it's flash though so 16gb is about as big as it's going to get at the moment. more than big enough to store my collection completely. The iphone has come crashing in price though. Personally I think they're both well over priced but people like their style icons :-)
-
Freebie: Direct Mail for Dummies
thanks
-
HAPPY BIRTHDAY WDF!
escape is quite impossible. muhahah
-
Submitting form only once
I'm afraid I don't. I'm sure somebody here will be able to help though.
-
Submitting form only once
onclick="this.disabled=true; submit();" I always use that on submit buttons but I'm sure it does the same thing. the beauty of using a program like php designer is you can select a bracket and see its counterpart. This bit of code is your problem. The two first ifs don't have closing brackets. if(isset($_SESSION['FORM_SECRET'])) { if(strcasecmp($form_secret,$_SESSION['FORM_SECRET'])===0) { if(isset($_POST['Submit'])) { ///// CHECK FORM WHEN SUMBMITTED (if One) // check that the first image has been selected if not return error if ($_FILES['imageOne']['name'] <> null) { $nameOne = resize("imageOne","thumbOne");//resize function and return name } else { $whatsediterror[3]='<p class="style1"> You Need to select an image(1).</p>'; $error='false'; } // end if
-
Form breaks CSS layout on IE
damn we're good. we don't even need to post anymore
-
Submitting form only once
I usually just use javascript but I've never done a system where it's crucial to only click once. You can always put some code to check for javascript first although that could annoy people. It really depends on how crucial it is to not have duplicates and how likely people are to try and get around it.
-
Image input not working on ie or opera
it's quite common. It creates an array in the $_POST field which can be useful. it's most often used in checkboxes.
-
Online courses, where to buy em?
try the open university. they usually have flexible courses and you don't have to worry about ending up with a qualification that's not worth the paper it's on.
-
Am i going about this the right way?
zen cart is a spin off from oscommerce that I find is nicer.
-
Escaping Characters in php
It's best to imagine them as seperate entities. '<td>' is a string entity as is '</td>' and $position is an integer entity. You need a dot between each entity to glue it together. The dot basically says then is the end off one entity and the start of the next one. If it wasn't html you could as mentioned enclosed it all in double quotes and used {} to highlight a variable like echo "<td>{$position}</td>"; but with html you usually have double quotes in the code so it doesn't work like echo "<td class="myclass">{$position}</td>";
-
Escaping Characters in php
I didn't know you could do things like that :-) Never had a use for it before anyway but it's good to know.
-
Problem with Netscape 7
I really should test my sites in netscape but the stats never show any users. Is it perhaps 1 heavy user that comes on netscape? Does aol browser show up as netscape?
-
Best web desgin software for starter
exactly. I'm not talking about using drag and drop stuff but editors with syntax highlighting is so much easier.
-
Drop down menu - Newbie needing help!
that looks like you didn't apply my css.
-
More cookies for you!
beyond the cookies generated for php sessions and login savers I don't remember using them for everything. Never built anything that complex although I've modified systems like shopping carts that use them. real cookies are only good if they've not gone hard.
-
Some Feed back and Advice
I'd consider making the blue a little darker. for those with sight problems or colour blindness I can see that light blue blurring into the white.
-
Rubber Ball Man Video: A little fun.
wonder where you buy those things from and if they come in blue.
-
Drop down menu - Newbie needing help!
It's not tables. It's an unordered list formatted into boxes. That is code I did last week. All the css for the menu is here http://www.miccysoft.co.uk/menu.css the menu code is <div id="menu_container"> <ul id="pmenu"> <li><a href="index.php">Home</a></li> <li class="drop"><a href="#" class="nolink">About Me</a> <ul><li class="enclose"><a href="about/1about_me.php">About me</a></li> <li><a href="about/2about_introverts.php">About introverts</a></li> <li><a href="about/3pictures.php">Pictures</a></li></ul> </li> <li class="drop"><a href="#" class="nolink">Favourites</a> <ul> <li class="fly"><a href="#" class="nolink">Poetry</a><ul> <li class="enclose"><a href="poetry/1if.php">If</a></li> <li><a href="poetry/2do_not_stand.php">Do not stand</a></li> <li><a href="poetry/3why_I_loved_her.php">Why I loved her</a></li> <li><a href="poetry/4soulmates.php">Soulmates</a></li> <li><a href="poetry/5in_the_spotlight.php">In the spotlight</a></li> <li><a href="poetry/6sonnet116.php">Sonnet116</a></li> </ul></li> <li class="fly"><a href="#" class="nolink">Lyrics</a><ul> <li class="enclose"><a href="lyrics/1ode_II_Joy.php">Ode II Joy</a></li> </ul></li> <li class="fly"><a href="#" class="nolink">Quotes</a><ul> <li class="enclose"><a href="quotes/1hackers_manifesto.php">Hackers manifesto</a></li> <li><a href="quotes/2my_friend.php">My friend</a></li> <li><a href="quotes/3carl_Sagan.php">Carl Sagan</a></li> <li><a href="quotes/4winston_Churchill.php">Winston Churchill</a></li> <li><a href="quotes/5assorted_friendship.php">Assorted friendship</a></li> <li><a href="quotes/6assorted_judgement.php">Assorted judgement</a></li> <li><a href="quotes/7voltaire.php">Voltaire</a></li> <li><a href="quotes/8benjamin_Franklin.php">Benjamin Franklin</a></li> </ul></li> </ul> </li> <li class="enclose"><a href="./contact.php">Contact</a></li> </ul> </div> It should be easy enough with the website to work out what does what and how to get it to work. As for formatting it to fit your website you just have to change the colour codes in the menu css.
-
Drop down menu - Newbie needing help!
if it was easy we'd be out of a job :-) take the code from my homepage and I can help you better. http://www.miccysoft.co.uk
-
Best web desgin software for starter
please tell me you're not a puritan? All you need is notepad and dos / linux and vi. The rest is all pointless etc etc. Yes technically notepad will do the job but why not have a program that will help you out a bit? Highlight a syntax error, connecting brackets and tags, suggest words based on what you're typing? There is no shame is having a tool help you.
-
Drop down menu - Newbie needing help!
there are no quick fixes in learning :-)
-
IE carnage! v5, 5.5, and 6 all look totally different
that's what I do. Fit it to the majority of browsers then just apply a tweek css sheet for IE.