Jump to content

czukoman20

Members
  • Posts

    194
  • Joined

  • Last visited

    Never

Everything posted by czukoman20

  1. Is there a way to make a close page link or button?
  2. mysql_query("INSERT INTO userdata (contacted, username2, data) VALUES ('$user1', '$username4', '$date2')"); I have these values that need to be inserted into the database. I am not sure as to why these aren't being insterted. could it be that my $date2 variable has more than 2 spaces or something? or that it has numbers? The database is table userdata subtables are contacted VarChar(40) username2 VarChar(40) data VarChar(200) is there something wrong with my code.. or? Help is appreciated Thanks
  3. lol i guess so. O well. that feature was a pretty good idea. ok well thanks for helpin me out man.
  4. ok so its more of a lazy reason i guess. no offense to them or anything
  5. any particular reason why it was removed? problems?
  6. Ok thank you soooo much man .. you rock. It works .. Ok just one last question... where is the SOLVED BUTTON>.... is it gone?
  7. where does the file have to be located compared to the image? could you give me an example directory
  8. <?phpif($session->logged_in) { $sub = "submit.php"; }else{ $sub = "submit2.php"; } $types = array("jpg","gif","png","swf"); $dir = dirname(__FILE__)."images/banners/"; foreach($types as $type) { if(file_exists($dir.$username."_banner.".$type)) { echo "<a href=\"http://www.adworld-online.com/$sub?user=$username\"><img src=\"http://www.adworld-online.com/images/banners/".$username."_banner.".$type."\" width=\"600\" height=\"110\"><br />"; } } ?> well i forgot to say that i also tried this.. It still doesn't show up. the if file_exists isn't being triggered. soo idk what else... Thank you for your help so far. More help is appreciated please. this file is located at www.adworld-online.com/browse/sto.php the picture is located in two places www.adworld-online.com/browse/images/banners/mmallon_banner.jpg www.adworld-online.com/images/banners/mmallon_banner.jpg
  9. ok i know this much about how to redirect to another page.. the only issue that i have with <?php header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?> this only works if its used before html. .and since i have an html template.. how would i be able to run this at a specific time.. For example, a user will submit a form .. then after the submission form, they get redirected to a different page. How could i do this help appreciated thanks
  10. ok well i think i may have found an issue with all of this in the first play. THE $types function is just displayed as Array I have added an else echo <?php if($session->logged_in) { $sub = "submit.php"; }else{ $sub = "submit2.php"; } $types = array("jpg","gif","png","swf"); $dir = "http://www.adworld-online.com/images/banners/"; foreach($types as $type) { if(file_exists($dir.$username ."_banner.".$type)) { echo "<a href=\"http://www.adworld-online.com/$sub?user=$username\"><img src=\"http://www.adworld-online.com/images/banners/". $username ."_banner.".$type."\" width=\"600\" height=\"110\"><br />"; }else{ echo "$types"; echo "<br>"; echo "$dir"; echo "<br>"; echo "$username"; echo "<br>"; echo "$type"; } } } ?> else{ echo "$types"; echo "<br>"; echo "$dir"; echo "<br>"; echo "$username"; echo "<br>"; echo "$type"; } thats the else statement.. here is what i says types returns as a value of "array" dir returns the right directory. and type returns as "jpgarray". i think this might be the issue.. but how do i resolve this.. Please help me out guys. any trys will be helpful username returns the right username.. .so the issue is the actual $types code.
  11. Wrong, The query should leave out any of them that arent 5 soo if it was a 6 it would not display ... only the 5's display.. Not sure wat the symbol is tho
  12. LOL wow ok only one last problem .. i think its miss recieving the command with the != or the <> .. it should be = to 5 but php is wierd.. I'll look around but if u have a quick post for this it would be appreciated thanks
  13. nope .. do u want me to post the whole entire code that im workin with
  14. No it pops my error that i created for the query which is error cannot display info. and yes i have 1 user with 5 in the database.
  15. well yes i spotted that. but thanks. I changed it and... still nothing. The error is happening at the if(file_exists($dir.$username ."_banner.".$type)) thats not seeing the file for some wierd reason. the directory of the file is. http://www.adworld-online.com/images/banners/mmallon_banner.jpg and well for some reason, its not showing that it even exists. Hmm any other ideas?
  16. still the same cant display info deal hmm idk anyone else please
  17. well i tried it with $q = "SELECT username,userlevel,email,num_clicks,timestamp,realname,phone " ."FROM ".TBL_USERS." ORDER BY userlevel DESC,username WHERE userlevel <> '5'"; That didn't work, it won't even display anything now
  18. Ok well the code is working now.. but i have a .jpg banner in there and its not showing up.. hmm. i will take a closer look and get back to ya. Any Ideas?
  19. <?phpif($session->logged_in){ $sub = "submit.php"; } else{ $sub = "submit2.php"; } $types = array("jpg","gif","png","swf"); $dir = "http://www.adworld/online.com/images/banners/"; foreach($types as $type) { if(file_exists($dir.$username ."_banner.".$type)) { echo "<a href=\"http://www.adworld-online.com/$sub?user=$username\"><imgsrc=\"http://www.adworld-online.com/images/banners/". $username ."_banner.".$type." width=\"600\" height=\"110\"><br />"; } } ?> Im getting a parse error on the last line of the code which is embedded in a template and this is all i changed soo i'm not sure where the issue is.
  20. ok thanks i will try i will give u feedback in like 5 - 10 min
  21. ok i will give that one a try feed back will be soon
  22. I have a piece of coding right now that calls for a users certain banner image. The problem is. Many users want to use different banners. So i have the code in my pagination page which searches for different banners and then displays them by the search. Well the only issue is that it only supports one file type... .jpeg. echo "<a href=\"http://www.adworld-online.com/submit.php?user=$username\"><img src=\"http://www.adworld-online.com/images/banners/". $username ."_banner.jpg\" width=\"600\" height=\"110\"><br />"; that is the banner code. How would i be able to make that say.. heyy if that banner is not there maybe i should check a different file format. ??? I would really appreciate some help please
×
×
  • 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.