ignace
Moderators-
Posts
6,457 -
Joined
-
Last visited
-
Days Won
26
Everything posted by ignace
-
display first letter of string followed by _ _ _
ignace replied to husslela03's topic in Javascript Help
function getMask(theWord) { return theWord.toUpperCase().replace(/[A-Z]/, "_"); } function revealMask(theWord, wordMask, letter) { if (!letter) return theWord; var length = theWord.length; for (var i = 0; i < length; ++i) { if (theWord.charAt(i) == letter) { wordMask[i] = letter; } } return wordMask; } Don't use " _ " use CSS instead (letter-spacing) and use a monospaced font. It's funny you create something like this as I have created the same thing but used PHP instead you can have a look at: http://www.mediafire.com/file/wetmhyguem3/hangman.zip I use it mainly for my own pleasure and I don't recommend using it in any production environment -
Take a look at http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
-
I know it was a wiseguy-kinda joke but I'm apparently the only one laughing... again... note-to-self: fix humor
-
Not to mention that you can't use the function before you made sure the global variable actually contains the required value.
-
Not from me you won't. These comments mostly come from people using Apple products but in recent news has proven that these so called god-like products don't live up to their made-up reputation: http://www.cultofmac.com/macbook-air-so-hot-it-burns/38182 I'm not so hyped around OS systems, I'll sail if it floats Although my job requires the use of multiple (popular) OS systems for mere browser-testing. In my part of the world 3/4 of the programmer jobs are Java, 1/4 is ASP.NET (probably due to the high license costs) anyway my advice was purely based on deployment options rather then employment although Java, PHP, Ruby & Python make a good skill-set any day. PS I'm not a fan of VB.NET and probably never will be and I will be glad to pass along anyone asking for a VB.NET professional to your office
-
And your question is..?
-
SELECT * FROM quotes q, quotes_categories c WHERE q.category_id = c.id AND c.id = $category_id LIMIT 1
-
You are looking at a regular upload script both for your file and your images. You can combine them in one go. Here's an introduction http://www.tizag.com/phpT/fileupload.php And an example of an upload script http://www.w3schools.com/PHP/php_file_upload.asp <strong>Select your sims3 file:</strong> <input type="file" id="sims3_asset" name="sims3_asset"> <strong>Select your images:</strong> <input type="file" name="images[]"> <input type="file" name="images[]"> Access them using $asset = $_FILES['sims3_asset']; $images = $_FILES['images']; The last one $images is more trickier as you access each individual file like: $images['name'][0]; Returns you the first file.
-
He didn't. You did.
-
This data most presumable comes from a database, add a WHERE clause to find your record.
-
You'll need cURL to read out HEAD response headers check for HTTP/1.x 200 OK http://icfun.blogspot.com/2008/07/php-get-server-response-header-by.html
-
Remember that whenever you decide to build it yourself you are going to be the one held responsible for whatever went wrong and demand you to fix it. Both in the case of open-source as when you would build it yourself. When it comes to e-commerce I highly suggest you tell them to hire a specialized firm so that when the shit hits the fence they won't be hammering your door... Edit: something else that you should take into consideration: backups
-
Reviews should make you confident about any e-commerce: http://blog.webdistortion.com/2008/05/03/9-kick-ass-open-source-e-commerce-platforms-reviewed/ A list of all open-source e-commerce today available http://php.opensourcecms.com/scripts/show.php?catid=3&cat=eCommerce
-
Do not bother to learn .NET it's Windows-only (or waste-of-your-time) learn Java; experiment with C++ and learn how a language works with Assembler. Afterwards it's best to take a peek at Ruby, Python & Perl (Perl preferably last).
-
LOL $kiloton = PHP_INT_MAX; $cms->nuke($kiloton);//leave no man alive .. mushroom, mushroom .. badger, badger, badger, .. http://www.badgerbadgerbadger.com/
-
WTF?!? Does no-one read the manual??? Proper way for this terrible thing would be: $file = "file.with.dot.txt"; $extension = end(explode('.',$file));
-
Is your CMS open-source?
-
get_included_files, get_declared_classes
-
Or maybe you should both have a good read of the manual and use pathinfo
-
Where to Generate Database Connection within Classes
ignace replied to zeodragonzord's topic in PHP Coding Help
-
You can't store the result resource in session's.
-
That would work until Oni-kun finds the topic and ventures it off topic with one of his rants. Which is most likely this has never been done. It would be too easy to go off topic, like I just have done for this thread. Soon enough Thorpe may come along and lock it for going so far off topic i personally think it's a great idea. what is up your ass this time premiso? I can't believe you actually wanna know..
-
http://www.swetake.com/qr/qr1_en.html
-
@joel note that patients_categories is a many-to-many relationship (not one-to-many) meaning that: a category has many patients AND a patient is in many categories PS <input type='checkbox' name="patient_categories[]">category name</input> is invalid and should be <input type='checkbox' name="patient_categories[]" value="category name"> This is of course also incorrect because: for which patient? And should therefor be: <label for="patient_<?php print $patient_id; ?>"><?php print $category_name; ?></label> <input type='checkbox' id="patient_<?php print $patient_id; ?>" name="patients_categories[<?php print $patient_id; ?>]" value="<?php print $category_id; ?>"> Note: input.id and label are optional I have only added them to comply with usability-guidelines