-
Posts
2,210 -
Joined
-
Last visited
-
Days Won
47
Content Type
Profiles
Forums
Events
Everything posted by sniko
-
The solution is right there. Either, add a column to `users` called `mlevel`, or restructure the query to not include the update to the column `mlevel`.
-
Get kim dotcom to tweet the opening :? (Details about my little 'joke') Serious Note; I've not done an ad campaign since my presence on the web, but then again I haven't really released full products.
-
Dodokin, isn't that a Pokemon? :p I wish you luck in your venture, booher & Dodokin! (Where's the lean-mean-fighting-machine dodo pricing? :p)
-
I got win8 with my new purchase. I dislike it, however I can see why it's more a tablet/touchscreen OS
-
I don't have a 'job' as-such in I.T, apart from freelance web developing and investing. However, I.T is quite broad, from robotics, to data input; find the right thing for you. If you were to get an apprenticeship, what route would you go down? (Web developing, systems analysis, etc (this list continues a lot)) I'd say -and many would agree- that I.T is a growing industry, with a lot of money involved; since the robotic industry (involves IT) has taken over some human jobs; as it's too dangerous for humans to do, less mistakes are made when a robot does it, in the long-term; cheaper. Before jumping into something that would result in a career - which is hard to switch nowadays - looks around a bit, and figure out if it's exactly what you want to do; it sure is stable enough. Good luck!
-
Still, Pastebin and Notepad++ are different things.
-
Totally different things. Pastebin will store the code, and parse it 'correctly', less chance of it bugging, like using the php tags on here.
-
Debug. Go to phpmyadmin Click your table Click SQL Run the following, and paste result SELECT * FROM jobranks WHERE jrPAY > 0 AND jrSTRN <= 10 AND jrLABOURN <= 10 AND jrIQN <= 10 AND jrJOB =1 ORDER BY jrPAY DESC LIMIT 1 However, I'd construct the query to something like the following; SELECT * FROM `jobranks` WHERE (`jrPAY` > 0) AND (`jrSTRN` <= 10) AND (`jrLABOURN` <= 10) AND (`jrIQN` <= 10) AND (`jrJOB` =1) ORDER BY `jrPAY` DESC LIMIT 1 Also, do you need the wildcard? (*)
-
Line 51. - For sure, an error will be thrown. Line 74. - BBCode is still there. Line 96. - BBCode is still there. Line 83 - You don't need quotes. @AnonymousUser I'd paste your edits on Pastebin or other-like sites.
-
Only 10? For £5.99 (minus the upload, that takes 3 seconds) we pay almost 0.60p per keyword. With 10 keywords, how much traffic do you estimate we get in return? Also, what sites do you publish the videos on? Extra cost for multiple sites? I'm not trolling, it's constructive - in my eyes, anyway.
-
So we do most of the work, and you just click a few things? Do we only get 10 keywords/tags? Edit. I see my edits on my previous posts counted as replies. Sorry
-
I assume you add the appropriate tags to the video, too, to boost traffic. Let's scenario for a second here; I hand you £5.99, and my video about a reverse image search service, like tineye Please summerize the tags you'd put in, and the description of the video as well. Also, include a list of websites you'd publish it to. (It takes around 3 seconds to press 'upload', find the video, then wait for it to be processed by the website. So I can only assume this 'service' will be included.)
-
I had a job interview with I.T - I hope your job interview has the opposite outcome, I wasn't successful - and they said for future applications, print off the best stuff, and bring in an electronic copy that they can keep, and hand it in with a copy of your curriculum vitae and covering letter :) Good luck, Dayo
-
Photo Blogging Software
sniko replied to gmoore's topic in Programming Tools, Software and much more
Tumblr? Wordpress? Blogspot? -
I read "Be healthy, wealthy and wise. (Convert while you can )", then I looked at your avatar. Could not stop laughing. Related: Valid opinion ;)
-
Below line 3, as in globals $ir has already been defined ;)
-
It seems it gets converted into BBCode (The older modifications, anyway) and HTML special characters. Just go through the source, and change them back. BBcode is pretty self explanatory to change back. With the HTML special characters, Google them.
-
Correct, you've put it in the wrong place. $r hasn't been declared, yet. Put the rank 'mod' below line 25.
-
Paste your viewuser source, then
-
I'd love a scoobie snack! From researching, I've gathered the following; please inform me if I am incorrect. PBKDF2 is a password-strengthening algorithm, but vulnerable a rainbow (Like anything else, if you have the key.) As PBKDF2 is a password-strengthening algorithm, there are different cryptographic hashes, SHA1, for example. People may use outdated cryptographic hashes. With enough power (computing) you can crack the encryption (According that enough iterations are performed) Now for some direct quotes Or am I too far down lar lar land?
-
Remove periods (.) I'd return a 404, too. Hackers usually check the headers that are being passed/thrown
-
Ensure your switch statement has a similar syntax to; switch($_GET['var']) { case 'case1' : function1(); break; //Continue cases default: 'This script requires an action'; break; }
-
Nice find! Nice find indeed.
-
Quite simple, really. /* Put this at the top of the file */ define("__item__", 20); //Change the value (20) to the item id you want /* * Create a function to check if they have the required item If YES, return TRUE If NO, return FALSE */ function hasItem($itemid) { global $db, $userid; $get = $db->query("SELECT `inv_itemid` FROM `inventory` WHERE (`inv_itemid`={$itemid}) AND (`inv_userid`={$userid}) AND (`inv_qty` > 0)"); if( $db->num_rows($get) ) return TRUE; else return FALSE; } /* Now, use that function (above) to our advantage Put this segment (merge it in) with where you display the links */ if( hasItem(__item__) ) { echo '<a href="?spend=refill">Use Item</a>'; } else { echo '<a href="?spend=refill">20 Crystals</a>'; } /* Now either deduct the item, or crystals Merge it in with the query to deduct crystals */ if( hasItem(__item__) ) { item_remove($userid, __item__, 1); } else { $db->query("UPDATE `users` SET `crystals`=`crystals`-20 WHERE `userid`={$userid}"); } I use define() so we don't have to global something every function; that's if you use functions I'm unsure on the parameters, and name, of item_remove Change 20 to the amount of crystals you use Use common sense to merge the codes above into both systems Above code is untested. Should work.