-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Simple re-adjustable PHP forum that integrates nicely into existing DB
Adam replied to inVINCEable's topic in PHP Coding Help
why not just use phpBB then? or another? loads to choose from.. invision power board, vbulletin, etc. Just google it! -
Could you output the code from uriParser.php and main.inc.php ? Obviouslly if the value of them is just W need to seem whats happening when they're set.. Adam
-
I see your problem, but why does it sometimes return two kills? Which would you need to actually use in that case aswell? Adam
-
I assume your printing out the form in a loop? Well from what I can tell, although I cant see the start of the function, you seem to be printing </form> after the loop.. echo "</td> </tr>"; }// End No Items } echo "</table></form> <br />"; Try changing it to: echo "</form></td> </tr>"; }// End No Items } echo "</table> <br />";
-
Well it's not 'tabs', it's JavaScript and AJAX. If it requires the use of PHP you'll need to use AJAX to make a HTTP request, however if it doesn't you can just use JavaScript... Adam
-
Actually why not store them in the database too? Use a 'relational database'.. Google it..
-
how are they stored in the countries file ? do you have say.. AL=Alabama|NY=New York|...etc ?
-
How should I include my name as author with a class?
Adam replied to cgm225's topic in PHP Coding Help
to be honest i don't think it really matters that much. so long as people get the information it doesn't really matter what convention you use. I normally just use something neat and simple, for example: /************************************************/ // @Author: ########################### // @Script: ########################### // @License: ########################### /************************************************/ ... something just to put your mark on it. Add / remove them as you please. only reason i add the @ is purely from seeing so many scripts with it on, became somewhat of a habbit back in the early days after seeing so many scripts with it on... i don't know wether certain software recognises it or not but I can't imagine it really mattering that much... Adam -
yeah you'd basically have like a template of your dynamic content.. like : <table> <tr> <td><img src="<php print $record['imgSrc']; ?>" /></td> <td>Name: <?php print $record['name']; ?></td> </tr> .......... etc And basically the content would change varying what record you'd selected...
-
yeah just loop thru the array checking for a match... <?php $allowedFiles[0] = "example1.php"; $allowedFiles[1] = "example2.php"; $allowedFiles[2] = "example3.php"; $allowedFiles[3] = "example4.php"; foreach($allowedFiles as $val) { if ($_GET['fileToShow'] == $val) { highlight_file($val); } } ?> Not tested but should work...
-
Well not too sure where to put this one. Just been resizing some images for my boss' website www.minimerc.co.uk. Resized em in photoshop and uploaded them in FireFTP (firefox add-on).. done this a hundred times yet for some reason its acting really odd.. Basically the images are showing up white or invisible, not too sure.. take a look here.. http://www.minimerc.co.uk/browse/G_Class/W463/B15 the image for the thumbnail should be at: http://www.minimerc.co.uk/images/catalog/M_Class/W163/M_Class_W163_B15_thumb.JPG .. yet as you can see, just prints the URL in the window?? Anybody come across this before or have any ideas what might be happening?? Cheers for any help! Adam
-
As crayon said, what is it your actually trying to do, in more english?
-
Also if I were you i'd change the field in the database to unique.. that way mysql would give off an error if you try to enter duplicate usernames... Adam
-
Whats on lines 21 and 22? the code above?
-
try showing the mysql error.. mysql_query($delete) or die("Error: " . mysql_error());
-
yeah sorry.. rand(1, 6);
-
or for 2 rolls for each user.. $user1dice1 = rand(0, 6); $user1dice2 = rand(0, 6); $user2dice1 = rand(0, 6); $user2dice2 = rand(0, 6);
-
$dice1 = rand(0, 6); $dice2 = rand(0, 6); for each roll...
-
required to download a plugin on the profile page, but firefox cant find anything for it? It's alright, bit too hectic and mismatched in some places though... like that spinning back link.. doesn't fit at all.. and same as what they said about the gta image, plus those guys on the header at top of main thing, look like they could be copyright too. Adam
-
Very new to CGI. I've got some webspace with streamline.net. They actually have a test cgi script and they upload it for you in the CGI-BIN, and seen as it's their file I doubt there'll be any mistakes with it. So it's uploaded at: http://www.adamswork.net/cgi-bin/test-sln.cgi However when I try to view the file, as it will with you, just displays the script as text... Is there something I'm missing or haven't done? As I say very new to CGI just having my first real play with it today... Cheers, Adam!
-
try something as stupid as changing like... $row[id] .. to .. $row['id'] things like that have gotten weird results for me before...
-
not too sure if this helps but i found this... preg_replace('/[^\x09\x0A\x0D\x20-\x7F\xC0-\xFF]/', '', $string); at: http://www.sitepoint.com/blogs/2005/04/19/character-encodings-and-input/ ... which says that will strip out any characters not in ISO-8859-1. Also if you have the ability to enable functions with your PHP config look into "mbstring()" ... Adam
-
Best to put them at the start of the execute_upload function ..
-
Good start. Not too impressed with the font on the nav though, doesn't blend well... Perhaps try taking the border out from when you hover over the links as well? Think overall its a good design idea but, little too simple... Adam