Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. sorry.. do me a favor.. do this: print_r($packages); at the end of the script.. and copy/paste the return'd data to this post.. so I can see exactly what $packages is going to look like.. I have a little snippet written for you as of right now, however, idk if it'll work since I don'ty quite know what the return data is.. I see what you typed up.. but I want to see the $packages array to be sure if you don't mind. that'd be rly helpful
  2. I'm sorry.. I don't understand what you mean.. can you give me an example of the return?
  3. Order line – First come, first serve PayPal acceptance Pricing Database - Ability to change price of all items at will Waiting list - As soon as item becomes available, seller will ship User feedback - For transactions is mostly all you'll hafta code.. the rest of it will most likely be opensource.. lol and.. an hour a day? a long time.. not to be an advertiser but if I were you I'd probably contract a developer and if you are gonna contract a developer, send me a pm I'm always looking for work but, if not.. good luck on your site man.. there are other forums on phpfreak specifically for opensource questions (I think)
  4. $_SERVER['HTTP_REFERER']; parse the search phrase from the referer
  5. change $take = $_SESSION['take'] + 1; to $_SESSION['take']++;
  6. that would be your whole frameset... <?php require("connections/db.php"); require("connections/require.php"); ?> <html> <head> <title>.:: NY Mobster ::. Welcome - <? echo $player;?></title> </head> <frameset rows="*,10" cols="260,*" framespacing="0" frameborder="no" border="0"> <frame src="menu.php" name="left" noresize="noresize" /> <frame src="main.php" name="main" /> <frameset cols="100%" frameborder="0"> <frame src="playonline.php" /> </frameset> </frameset> <noframes> <p align="center"><strong>Your browser doesn't support frames, please download a newer version.</strong></p> </noframes> </html>
  7. I messed up the first post.. but I modified it like a minute later when I noticed it.. I don't really know if it matters, but (category.title == content.category_group) is usually (category.title = content.category_group) just 1 equal sign..
  8. good catch revraz it should be ` ` not ' '
  9. <frameset rows="*,10" cols="260,*" framespacing="0" frameborder="no" border="0"> <frame src="menu.php" name="left" noresize="noresize" /> <frame src="main.php" name="main" /> <frameset cols="100%" frameborder="0"> <frame src="playonline.php" /> </frameset> </frameset>
  10. yeah wrong forum.. and google would be alot more useful to you, we're all coders many of us don't dabble in opensource.. you know besides phpBB or whatever lol sorry man
  11. the frameset I posted is a 2 frame frameset, 1 frame on the left, 1 frame on the right.. if you mean you want to add another frame? then just change cols="260,*" To like cols="260,*,260" and add the next frame after the last frame
  12. $q = "SELECT * FROM `category` JOIN `content` ON (category.title = content.category_group) WHERE category.id = '{$id}'"; if (@mysql_fetch_array(@mysql_query($q))) { echo "You have content with category groups that match the title"; }
  13. oh my god thats alot of frameset tags.. lol <frameset cols="260,*" framespacing="0" frameborder="no" border="0"> <frame src="menu.php" name="left" noresize="noresize" /> <frame src="main.php" name="main" /> </frameset> this is not a php question btw.. just letting you know
  14. -okay, you can't like.. merge php and flash.. you can make flash with php, but you can't make php with flash. what you can do.. is set up the news handling functions in your flash, and let news.php just retrieve parsable information in flash... for example news_1_title:"How to kiss your girlfriend without getting sprung!" news_1_data:"To be honest, get an ugly girlfriend" then handle the data in flash and put it wherever it goes.. sorry for a bad explanation.. but I havn't coded actionscript in quite a while lol
  15. dark water is right but rly you can't show information without either FORCING DOWNLOAD (which sometimes when unexpected scares away users), or showing a relative path to the file.. you could, however, set up a ticketing system.. when when a user requests the file.. they get sent to a landing zone.. then the landing zone generattes a ticket associated with your IP, or denies them a ticket, depending on what criteria you want.. then when the user requests the file, remove him from the database, and then push him the data.. so that if the user gives out the url whatever.com/theFile.php?file=howdy.pdf if I took that from ur server if you require an active ticket.. if I gave that to my friend.. hed get denied because I don't have an active ticket.. its a form of security
  16. I'm assuming your rows are like.. check boxes? if so.. just make pages.. like, PAGE 1 show LIMIT 1,20 PAGE 2 show LIMIT 21,20 PAGE 3 show LIMIT 41,20 etc
  17. a little more complex but still simplistic: <? $u = $_GET['user']; $s = 'users/'; $st = strpos($u,$s,0) + $s; $userName = substr($u,$st,strpos($u,'/',$st) - $st); ?> what that does is it finds 'users/' and returns the data after it.. but all before the next '/' which would be the full username.. but premiso's works just as good.
  18. the best way to do this.. is send the user to a landing page(page with passwords etc).. then open a new window @ the download url with javascript or maybe an iframe could work aswell.. THAN the download box will promt.. and that page won't close.. because when you output the headers to force download.. then add html to the bottom of it.. you're only corrupting the file you want to send.. so do it the way I mentioned
  19. your web server MUST allow htaccess.. in your domain's home directory put a file called ".htaccess" inside of this file put something like.. RewriteEngine on RewriteRule ^whatever/lol$ file.php?name=whatever&extraInfo=lol that would redirect to file.php transparently meanwhile maintaining the original request URI in the address bar, there is way more complicated ways to use rewrites but that is an example..
  20. <? for ($i = 0; $i < count($modes); $i++) { if ($modes[$i]['case'] == $mode) { $text = $modes[$i]['text']; break; } } ?>
  21. what you could do.. is just on register.. put into the database table.. md5(rand(0,55)."{$password}{$username}"); then mail that string to the user in a GET variable in the url like http://site.com/auth.php?authcode=76298389a98nc9001208723 then when they click it have a field in the database `authenticated` then update the row which authcode equals the authcode specified UPDATE `members` SET `authenticated`='TRUE' WHERE `authcode` = '{$_GET['authcode']}'
  22. where mode is you can use a function() instead.. what switch is.. its not a function switch ($hello) { case "hi": break; case "omg": break; } is the same as doing if ($hello == "hi") { } else if ($hello == "omg") { } btw you can add me.. RussellonMSN@hotmail.com
  23. eh, idk lol, just use this to be on the safe side: <?php $jdate=$_SESSION['StartDate']; $m=$_SESSION['Duration']; echo date('Y-m-d',strtotime("{$jdate} +{$m} month")); ?> but they're both the same basically, except yours is missing plenty whitespace lol and idk if eventually that will bose a problem so..
  24. <?php require("../global/admin_functions.php"); $query = "SELECT `thumbnail4`,`thumbnailtype4` FROM `zloads` WHERE `intProductID` = '{$_GET['adid']}' LIMIT 1"; $result = mysql_query($query); if ($r = @mysql_fetch_assoc($result)) { $data = $r["thumbnail4"]; $type = $r["thumbnailtype4"]; header( "Content-type: $type"); print $data; } else { header("Content-Type: image/png"); $source = file_get_contents("../pix/noimage.png"); print $source; } ?> ok in this case, the above will solve ur problem
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.