-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Hah, it's okay now. Problem has been fixed using PHP.. Database is pretty damn complex so not worth trying to wrap your head around it! Cheers anyway though!
-
Remove the quotes from around your arrays... A
-
Have you tried.. str_replace($dirty, $clean, $row['SubCatName']) ?? Adam
-
Ermmmm.. Okay I guess? Perhaps best if it had the username in the image as well though? To be honest though, I can't quite see where it would come in useful? Adam
-
online ll www.global-mobster.com ll review please
Adam replied to K3ND4LL's topic in Website Critique
Do you realise the register form labels are all white, and you have a white background?? http://global-mobster.com/register.php In the actual game, the content's laid out badly! That tiny menu on the side is far too thin and the main content doesn't fill the empty space enough. You've used frames! The code is a mess - there's not even an opening HTML tag! Also the colours used certainly don't compliment each other! To be honest, there is nothing creative, striking or unique about your design - it's just 1 of a million other web-based gangster MMORPG's out there! Sorry if I'm harsh but, it's just my opinion! Adam -
.. Huh? It's already based on a 'command line interface' with just touches of 'graphical user interface'.
-
I can see the attraction to this kind of personal project - something unique and interesting to code - but like a lot of people have said it's just too limited. Also you're combining the CLI and GUI in an awkward way that makes using it not very smooth! For this kind of thing I'd probably try and match *NIX commands. I use a Unix CLI at work a lot and once you're used to it's easy, definitely does speed you up. Why not keep the command history in view? User access and accounts? "VIM" style editing? Adam
-
Oh no I don't want to use a regular expression to do it, I want to escape a variable for use in a regular expression, if you catch my drift? Like mysql_real_escape_string, but for regular expressions.. But more specifically to convert '/' to '\/'.. I was just wondering really if there was a predefined function for this. I have to get off now but I'll take a look into addcslashes() later on.. Cheers! Adam
-
Is there a predefined function in PHP for adding backslashes in front of forward slashes? Some kind of regular expression escape function? ... Rather than: str_replace('/', '\/', $str); .. not the prettiest of code! I've done some Googlin' but can't seem to find anything! Thanks, Adam
-
Perfect, thanks a lot! Adam
-
Ah got it partly working now using: /\/content\/.+$/ ... but this returns "/content/" as well. "/content/" must be in the string, but I don't want to return it. I could strip out "/content/" afterward, but I'd prefer to just do this in the regular expression, if that's possible? Thanks, Adam
-
Hey guys, got a regex problem! I'm trying to return: (...)/content/what_ever/may_be/here from a URL. At the moment I'm using: preg_match('/\/content\/[.]+$/', $url, $matches); .. but having little success! Can anyone see where I'm going wrong? At the moment just returns an empty array ??? Thanks for your help, Adam
-
Some new comers may not realize there's a standard HTML tag for this... <input type="image" src="img/submit.gif" /> If you wish to run any kind of JavaScript validation on the form before submitting, add: <form action="..." method="..." onsubmit="validateTheForm();"> Hope this helps! Adam
-
Critique My Developers Portfolio System "Unus" and my Portfolio
Adam replied to ionik's topic in Website Critique
Definitely agree about the JavaScript pop up! Try entering an address, then before it loads, switch tab to... continue what ever you may have been doing. Very annoying! It's not valid HTML (despite the valid HTML implying logo in the bottom right). The font doesn't work for me. The images used in the design are very strong, present images and the text looks kinda frail and 'sketchy' in comparison.. I also agree the header and footer blocks are too tall - especially the footer. I think you could turn it into something very nice though with some more work! Adam -
Post the relevant code rather than a zipped folder - I can't see anybody taking the time to look through all the files in there and search for the right bit of code. Adam
-
.. 4.1 currently but we're planning to upgrade soon. I'd still like to know if anyone has any suggestions as to why that wouldn't work, but I have made a work around in PHP to solve my problem now. Thanks, Adam
-
[SOLVED] Site finished, need some testing before release
Adam replied to Dragen's topic in Beta Test Your Stuff!
Not a hack or anything but when sending an email it's displaying.. Adam -
whats wrong with my PHP login script -- Please help
Adam replied to worldcomingtoanend's topic in PHP Coding Help
Could also try: $result=odbc_exec($db,$query) or die(odbc_error()); Adam -
Perhaps the script doesn't haven't permission to create files? Adam
-
Hah! Noo.. I was just making myself clearer in the explanation of the problem before - got our wires crossed I think!
-
It's the same? delete from auth_user_temp aut where aut.user_id in ( select user_id from user_group where (userclass_id = 25 or userclass_id = 6) group by user_id having count(userclass_id) = 2 ); Returns: Cheers, Adam
-
Same points as the guys below, and I'd loose the slogan "Creating the best for the best" .. Sounds like you're cutting out the entire public-sector market, even perhaps mid-market businesses. Oh and for an 'SEO specialist', you should know not to stuff the title with repetitive words.. Adam
-
..And you've tried debugging the functions.php file by adding something like.. die('here?'); to the top of it?
-
Do you have errors disabled at all? Try adding: error_reporting(E_ALL); ini_set('display_errors', '1'); ...to the top of your code. Adam
-
To avoid any "did you mean to put where (userclass_id = 25 or userclass_id = 2)" kind of responses... Anyways, can anybody help me with the query? Thanks, Adam