Jump to content

sKunKbad

Members
  • Posts

    1,832
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by sKunKbad

  1. put expose_php = off in your php.ini file
  2. an html file can't call a php file unless its a iframe, and that would be the really bad way to do it. You really need learn how to move between php and html inside the same page. For instance: <p>this is html</p> <?php echo "this is php"; ?>
  3. $array = array ( "test" => "Test", "lala" => array(0 =>"first", 1 => "second") );
  4. I ate some, and gave the rest away to friends. There was around 15 pounds of fillets, so I couldn't eat it all myself. I don't like to eat it when its not fresh, or I would have put it in the fridge.
  5. aw man, you ruined my fun!
  6. When I'm bored I like to click a bunch of adsense ads here on phpfreaks to make the site some money!
  7. I have a couple free templates I made listed on www.openwebdesign.org . This is the newest one: http://www.openwebdesign.org/viewdesign.phtml?id=3856&referer=%2Fbrowse.php
  8. Tuna and squid are more out in the deep end. Blue Marlin are probably WAY further south. Albacore Tuna are fun to catch, but the boats going out for tuna have been doing poorly, and I didn't want to waste my money going out and having a bad day. Same boat I was on Monday went out on Tuesday for tuna and one caught 1!!!. That's a $120 trip for null for most everyone that went out on that boat. Check the local fishing reports online at www.976-tuna.com and see for yourself.
  9. OK, So I had a great time yesterday. The fishing was awesome! I had to be at the boat about 5AM, and we got out in Mexican waters about 7:30AM. Immediately we started pulling up sand bass. You wouldn't have even needed to know how to fish to catch these. They were biting at anything we put in the water. There is a limit of 5 fish per species when fishing in Mexican waters, and most of us had our 5 pretty quick. I was actually throwing them back or giving them to other people becase I wanted to try to catch bigger ones. I probably caught 10 total in the 30 mins or so we were there. Most of the fish we caught were in the 3 to 4 pound range, but my biggest sand bass was about 5 or 6 pounds. I didn't have a scale, but here is a pic of the sand bass: Next we headed a little further south, and when we got to that spot I started casting out as far as I could, and reeling in a lure I had on called a "megabait". Its a shiny lure that looks like an anchovie, and it has a large treble hook on the end. I hooked up within a minute on a nice baracuda, and was the first to pull one up. I got three baracudas in pretty quick, and then I hooked up on a really big one. It was so big it broke my lure! By the time I retied on a new lure, the baracudas seemed to be gone, but at least I got my three. Here is a pic of a couple of the baracudas: Next we headed west towards the Coronado Islands. There is a big kelp forest there that we fished at and I caught 3 calico bass (sorry, no pics). It was an amazing day. Weather was great, and the boat crew was awesome. If you were thinking about a fishing trip out of San Diego, now is definately not a bad time to go.
  10. OK then, thanks for clearing that up for me.
  11. Yes, that works, but why doesn't this part work: $_GET['Action'] == ('CartAdd' || 'CartGet' || 'AddChoice') Isn't it the same thing?
  12. I've tried to simplify this if statement, but it doesn't work the ways I have tried: if ( (isset($_GET['Page']) && $_GET['Page'] > 1) || ($_GET['Action'] == 'CartAdd') || ($_GET['Action'] == 'CartGet') || ($_GET['Action'] == 'AddChoice') ){ echo "<meta name='robots' content='noindex,nofollow' />\n"; }else{ echo "<meta name='robots' content='index,follow' />\n"; } For example, I would think that this would be the same thing only simplified, but it doesn't work: if ( (isset($_GET['Page']) && $_GET['Page'] > 1) || ($_GET['Action'] == ('CartAdd' || 'CartGet' || 'AddChoice')) ){ echo "<meta name='robots' content='noindex,nofollow' />\n"; }else{ echo "<meta name='robots' content='index,follow' />\n"; } Anybody know what's wrong with this simplification? How should it be simplified?
  13. because mail is one of php's built in functions, and not one that you can play with. See http://www.php.net/manual/en/ref.mail.php for more information. By the way, I use a wonderful free script called tectite that I have had great success with. Absolutely ZERO spam once configured. Search yahoo for it if interested.
  14. can session.use_trans_sid be used with mod rewrite? I had a script that worked without cookies because I had enabled session.use_trans_sid. I have since utilized mod rewrite successfully, but the script no longer functions without cookies. The benefits of mod rewrite far outweigh the benifits of having the script work without cookies, but I'm wondering for my own knowledge if it is possible to have them work together.
  15. I will see about getting some photos. My girlfriend is going with me, and she'll probably bring her camera. Lately some of the boats have been catching albacore tuna, but I don't know what to expect.
  16. I have a mod rewrite that works only when the full URL is in the hyperlink. If I don't have the link this way, the mod rewrite adds an extra directory and I get a 404 error. For instance If I code my link like this: <a href='http://www.whatever.com/tips/1.php5'>Tip 1</a> everything works fine. If I code my link like this: <a href='tips/1.php5'>Tip 1</a> then the first time I follow the link it works fine, but on that page mod rewrite adds a directory to the url like this: http://www.whatever.com/tips/tips/1.php5 and i get the 404 error. I tried adding rewriteBase / to my .htaccess file, but this doesn't work. Here is my rewrite code: Options FollowSymLinks rewriteEngine on rewriteRule ^tips/([0-9]+).php5 /test/tips.php5?tip=$1 [NC] Any suggestions?
  17. I found this info online: So if you are going to use GET, you are subject to a 2000 character limit. Just urlencode(); the text in the form, and then urldecode(); it on the page where you are going to use it.
  18. Try this real quick and see what happens: <?php if ( isset($_POST['user']) && isset($_POST['password']) ){ $user = $_POST['user']; $password = $_POST['password']; $Query = mysql_query("SELECT * FROM news WHERE user='$user' AND password ='$password'"); if (mysql_num_rows($Query) != 0){ $Row = mysql_fetch_array($Query); extract($Row); if (($password == $_POST['password']) && ($user == $_POST['user'])){ echo "$headline"; echo "$body"; echo "$date"; echo "$picture"; }else{ echo "<p><b>username and/or password not found. Try again?</b></p>"; exit; } } } ?>
  19. I'm going on a boat out of San Diego on Monday. I like coding, and fishing, and my girlfriend. When I say stuff like that, she always says, "oh, so im last on the list!". hehehe.
  20. why not have your friend work on it again for you?
  21. This site's ajax tutorials were enough to get me going. www.ajaxfreaks.com The real thing to know to make things work well is Javascript itself.
  22. if ($youwantbold){ $weight = 'bold'; echo "<p style='font-weight:$weight;'>You wanted bold so here is some bold text! Yay for bold!</p>"; }
  23. For your query, have you actually set the variables $user and $password? How about this: <?php if ( isset($_POST['user']) && isset($_POST['password']) ){ $user = $_POST['user']; $password = $_POST['password']; $Query = mysql_query("SELECT * FROM news WHERE user='$user' AND password ='$password'"); if (mysql_num_rows($Query) != 0){ $Row = mysql_fetch_array($Query); extract($Row); /*extract takes the mysql array "$Row", and makes each array value a variable, same as what you were trying to do with: $headline= $row['headline']; $body = $row['body']; $date = $row['date']; $picture = $row['picture']; $writer =$row['writer']; $song1 = $row['song1']; $song2 =$row['song2']; $song3 = $row['song3']; $song4= $row['song4']; $song5 = $row['song5']; $picture2 = $row['picture2']; $eventhead = $row['eventhead']; $eventpic=$row['eventpic']; $eventbody= $row['eventbody']; */ //now just access your variables and do what you want with them like this: echo "$headline"; echo "$body"; echo "$date"; echo "$picture"; //etc... } }else{ echo "<p><b>username and/or password not found. Try again?</b></p>"; exit; } ?>
  24. mysql_fetch_array
  25. This is how I connect to my godaddy database: $x = "123.mygodaddy_database.net" ; $y = "my_database" ; $z = "STRONG_password" ; $xyz = @mysql_connect($x,$y,$z); if (!$xyz) { die('Could not connect to database'); } $db = @mysql_select_db ($y,$xyz); if (!$db) { die ('Database cannot be found'); } and an actual query: $Query = mysql_query("SELECT * FROM my_database"); $Row = mysql_fetch_array($Query); extract($Row); echo "$field1\n";
×
×
  • 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.