| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Who know PhP? | |
|---|---|
| Tweet Topic Started: Feb 23 2005, 08:28 PM (2,516 Views) | |
| The Legendary Sam | Feb 23 2005, 08:28 PM Post #1 |
|
Feck j00, mate!
![]() ![]() ![]() ![]() ![]()
|
|
![]() |
|
| Dennis | Feb 23 2005, 09:03 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
<?php define('THE_BALROG',"Balrog Knows PHP"); echo THE_BALROG; ?> |
![]() |
|
| Seth | Feb 23 2005, 09:09 PM Post #3 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
<?php $blah[] = array( 'knows ' => 'Seth ', 'fool.' => 'PHP, '); foreach ( $blah as $lol => $whee) { echo ($whee . $lol); } ?> :rolleyes: |
![]() |
|
| FearKiller | Feb 23 2005, 11:56 PM Post #4 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
<?php mysql_connect ("localhost", "MyAwsomeUsername", "myverysecurepassword"); mysql_select_db ("people_who_know_php"); $verycoolvariable = mysql_query ("SELECT name FROM people WHERE name = FearKiller"); echo ('$verycoolvariable knows PHP'); ?> |
![]() |
|
| Arkane | Feb 24 2005, 12:00 AM Post #5 |
|
...i need inovation... really badly
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
<?php "i dont know","php" ?> |
![]() |
|
| Seth | Feb 24 2005, 12:01 AM Post #6 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Caught you that prints out:$verycoolvariable knows PHP Sucker! Variables inside single quotes are non-parsable!
|
![]() |
|
| Arkane | Feb 24 2005, 12:03 AM Post #7 |
|
...i need inovation... really badly
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
<?php :wacko: ?> |
![]() |
|
| Renee S | Feb 24 2005, 12:15 AM Post #8 |
|
Renée S
![]() ![]() ![]()
|
:rolleyes: That would be.
or
|
![]() |
|
| Zach | Feb 24 2005, 12:17 AM Post #9 |
|
Missjayness
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
|
![]() |
|
| Seth | Feb 24 2005, 12:46 AM Post #10 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Not to mention that you didn't even pull a value from mysql_fetch_array(). The contents of $verycoolvariable would be something like "Result Identifier #1"
|
![]() |
|
| Jory | Feb 24 2005, 08:29 AM Post #11 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
i know a bit about php. |
![]() |
|
| Cloudfromffvii | Feb 24 2005, 09:21 AM Post #12 |
|
Member
![]() ![]() ![]()
|
|
![]() |
|
| Veritech Pilot | Feb 24 2005, 09:27 AM Post #13 |
![]()
Bunny Boi of IFS
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Would be me, hehehe. I wanna learn though ^-^ |
![]() |
|
| Gornakle | Feb 24 2005, 10:41 AM Post #14 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
*gasp* ZOMG! Seth made a mistake! :ph34r: You set the first index of $blah to an array (with []), meaning looping through $blah wouldn't be looping through the right array ($blah[0] would). |
![]() |
|
| Seth | Feb 24 2005, 11:42 AM Post #15 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Wrong! First argument of the foreach construct is an array, and since PHP is loosely typed, it understands what I mean. In fact, I wouldn't even have to use the square brackets anywhere! <-- Winnar
|
![]() |
|
| 0 users reading this topic | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
5:37 AM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)



that prints out:

5:37 AM Jul 11