Jump to content

Jocka

Members
  • Posts

    344
  • Joined

  • Last visited

Everything posted by Jocka

  1. A suggestion: Wouldn't the make html function be better for the rows and not the fields? It's very rare that anyone needs to pull the name of the fields for anything but pulling the name of the rows might be kool. Another idea might be to create PHP code for html (while statements to pull rows, etc.)
  2. haha might want to update. I had a dvd player like that but I had to mess with it for 30 minutes to make it work everytime.. it sat ontop of a big screen tv and it seemed like everytime I went to put a movie in, it would slip and fall off the back of the tv lol
  3. Well I'm going to start putting text on the "alt" but I still prefer text for search engines. It seems kind of ridiculous to spend all that time on creating the images when its already there in text. "In a purely business sense, aesthetics are *everything* and way more important than functionality.." Out of every project I've done, it was functionality first usually. I just got my foot in the door at this company though (not a web company obviously) and they are far more highly concerned with the look than functionality. My supervisor wants functionality. However the President of the company, vice president, sales reps, telemarketers, receptionist, etc.. are always complaining about the look. I try to explain that it needs to work before it looks pretty but they disagree. The way how I see it, the thing can look beautiful but if it doesn't do what it's supposed to then it pointless and a waste of time and money. However if it does do what it's supposed to and doesn't look perfect then people will go to it but it won't be 100% attractive yet. So to answer your comment there, I'm going to have to agree. No matter what I think or do, in a business sense, my bosses will ALWAYS prefer look to functionality.
  4. lol i've tried both. When they told him this, like I said, I basically lost my mind over it. Started cussing at my boss.. probably not the best thing I could do. Anyway, I told him we SERIOUSLY didn't need to mess with these people. Not only are they trying to tell US how to do the site but they claim that they can do this within 2 weeks. Now I don't want to throw all the details out there but let's put it this way, there was a bid on it on another site and the best bid said at least 2 months to get most of the basics done. As soon as I heard the 2 weeks, I said "NO!". This tells me they have something they already used and that's pretty much avoiding the entire point of trying to pay someone for a unique site.
  5. alright I see now. So you think it would be best to leave at least SOME text. Because he wants anything that doesn't come from the database to be in image form. The company that is doing this software says if we don't convert everything by monday then they'll have to charge extra to do it, although we don't really want it that way. I told my boss as soon as he told me to tell them *INSERT PROFANITY HERE*. I'm just going to convert it but I'm sure if I go to him with this on monday then he'll listen a little more.
  6. Yea and speed issues lol. I meant to mention that. You can't assume everyone has dsl, cable, or some kind of t1 connection. Some people still use dial-up (i did for a while). Dial-up takes FOREVER to load pages with images all over it. None of the fonts are unique. Just basic fonts (arial I think).  And could you elaborate on "text is always gonna come up trumps here" .. i tried to understand but i'm slow today.. :(
  7. .. wow.. .. I feel like I did when I was 8, staring at Sega for the first time (sega genisus I believe it was.. i loved it). I just go these huge bug eyes when reading thinking to myself "wow.. that's sooooo kooool".
  8. I was having a debate with my boss earlier this week (which I lost). We are having another company come in and help a little since I'm one man and can't get this done in the time they need it (project information not important). So this company told my boss it would be better to have any text converted to images. Not text from the database, just text on the pages that isn't queried. I argued that this may cause issues with the bandwidth. While text won't take near as much space or near as much time to load on a page, the images are still better and more professional, or so he argued. The idea that images make it look more professional is ignorant to me but he's the boss lol. So two questions out of this little story. 1. What seems better to you? (as a programmer and designer) Text or images 2. Do images take alot of bandwidth or am I just assuming the worst?
  9. The idea of the Wii controller is the only reason I'd want one. I saw this boxing game  (very generic looking) but they used the controllers to box which was amazing to me. I've been dreaming of something like that since my "Mike Tyson Punch Out" days. The ps3 is a great system to have and I don't have either ps3 or xbox 360 by the way. I still just have my ps2 and since games are still coming out then i'll stick with it for a while. If I get my christmas bonus and I don't need to throw many at anything important I MIGHT consider getting a ps3 but right now, I'm still not sure. I didn't know you could could do the home networking thing. I should probably dig a little deeper into what ps3 does. When I think playstation I think games and nothing else. But the fact that it does other things has brought me a little closer to wanting to buy it.
  10. the download worked for me? I have the text file database information from the 2nd one (which also appears to work). But I'd have to drive home real quick to get that to you. I'm at work right now.
  11. the file command would come in handy here. If the information is posted on the page as you say then you can use file to read the page and sort it as it needs to be.
  12. I'm a madden fan and maybe it's just my discrimination towards microsoft made products making me see xbox 360 as another thing to not work in my house - BUT my point is, I saw madden 07 previes on both consoles and I have to say, ps3 is much better as far as graphics go. Now I haven't played anything on ps3 yet but I can only assume the best. The reason I'm not spending a paycheck on ps3 myself is because there is no single electronic object that is worth that kind of money to me. Like I mentioned, my first car was cheaper than that. When the price drops to more like $200-350 then i'll consider actually paying for one but that won't be for what, another 2-5 years? lol.
  13. Jocka

    Hide URL

    well he had two php starts in the code i just saw so try it again with: <?php if($_POST['cmd'] == "link1") {   header("Location: http://www.coolgorilla.com/images/banner.png"); } ?> And encryption can be easy or hard but you need 2 way encryption and to keep people from being able to decrypt it (or most people) you need your own encryption method. it can be as simple as stripping the http:// section and replacing a few letters of the alpha bet (and periods, dont' forget to replace the period). Usually it's not that hard to create a simple encryption by just replacing letters though. Look into preg_replace and read up on arrays and thats all you'll really need.
  14. Jocka

    Hide URL

    thats encoded. You can create an encode for yourself if you like but that may be a little more advanced and out of your way at the moment. The only reason you should get the error headers already sent is if you print something to the page.. are you echoing anything prior to the redirection? or are you using ONLY the code he gave you?
  15. .. .. oh ... yea... my appologies. lol, a long morning over in my neck of the woods :P
  16. just a table called "game_bets" with fields like "bet_date, user_id, game_id, user_bet"  -- date, user id, the "game" id and their bet of course. I forgot a submit button by the way so throw that in the form before "</form>" [code] <?php // first we find our results if(isset($_POST['bet'])){ // check to see if bet was sent to the page // DO YOUR CHECK TO SEE IF THEY ARE LOGGED IN // WE'LL CALL $user_id FOR THE ID YOU HAVE FOR THE LOGGED IN USER foreach($_POST['bet'] as $id => $bet){ // id is game id and bet is their choice       $query = mysql_query("INSERT INTO `game_bets` VALUES (NOW(), '".$user_id."','".$id."','".$bet."')") or die(mysql_error()); // dies on error } // ALL IN DATABASE ?> [/code]
  17. Fix here I think, after seeing obsidians code: $map->addAddress($row['address1'],$row['city'],$row['state'] . " " . $row['zip']);
  18. First make sure the field isn't called "date" this confuses PHP. change it to "game_date" or something. I'll use that in this little walkthrough populate it: [code] <?php // How you pull the date depends on how you store the date. // Look into the "date" function for better understanding $query = mysql_query("SELECT * FROM table WHERE game_date='".NOW()."'") or die(mysql_error()); ?> <form name="nhl" action="" method="POST"> Home : Away <?php while($row = mysql_fetch_array($query)){ echo "<input type='radio' name='bet[".$row['id']."]' value='home_team'> : <input type='radio' name='bet[".$row['id']."]' value='visiting_team'> - ".$row['home_team']." VS. ".$row['visiting_team']."<br>"; } ?> </form> [/code] and then fix the code to place the bets (assuming thats what your doing here). Fields in this case are "id, home_team, visiting_team, game_date"
  19. Jocka

    Hide URL

    The best way is by saving the information in the database with ID's or some identifier. Then create download.php with something like this: [code] $id = $_GET['id']; $query = mysql_query("SELECT * FORM table WHERE id='" . $id . "'"); $row = mysql_fetch_array($query); // LETS ASSUME THE FILE NAME FIELD IS file_name header("Location: download/directory/".$row['file_name']);[/code]
  20. $map->addAddress('$row['address1'],$row['city'],$row['state'] . " " . $row['zip']');
  21. i'll take a shot in the dark and guess u have globals on? well for one this could be fixed "<?php echo $PHP_SELF?>" should be "<?php echo $PHP_SELF; ?>" but that shouldn't cause the problem Looks like when submitting your showing them the form again instead of the page. What you want to do is more something like this: [code] <?php $db = mysql_connect(*******); mysql_select_db("inventory",$db);   // query the DB   $sql = "SELECT * FROM groups WHERE id=$id";   $result = mysql_query($sql);   $myrow = mysql_fetch_array($result); if (!isset($id)) {   ?>   <form method="post" action="<?php echo $PHP_SELF; ?>">   <input type=hidden name="id" value="<?php echo $myrow["id"] ?>">   Group Name:<input type="Text" name="groupname" value="<?php echo $myrow["GroupName"] ?>"><br>   <input type="Submit" name="submit" value="Enter information">   </form>   <?php } else {   // display list of Groups   $result = mysql_query("SELECT * FROM groups",$db); echo $result;   while ($myrow = mysql_fetch_array($result)) { $group=$row['GroupName']; echo $row['GroupName'];   } } ?> [/code]
  22. found it.. i can see it's under the folder platinum so $include_path can be one of two $include_page = "include"; OR $include_page = "/home/jusaafre/public_html/platinum/include";
  23. ... if this is coming direclty off your server why not just make the $include_path = '/include'; ?
  24. lmao I didn't even mean to answer with that. I thought you already used it when you said "I tried variations of htmlspecialchars() and such in random areas..."
  25. so you can't just do htmlentities(fgets($open)); ? that doesn't work?
×
×
  • 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.