// #php — 2008-01-05
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
02:27:51 <MedNez> I totally forgot I was in here
02:28:04 <MedNez> I went to play with the new tv and forgot about irc
02:28:05 <MedNez> :(
02:28:34 <MedNez> anyhow
02:28:39 <MedNez> time to sleep
02:28:40 <MedNez> later
02:29:27 Quit: MedNez ([email protected]) Exit: Austnet Chat Network
03:01:04 Quit: teranoid ([email protected]) Read error to teranoid: Connection reset by peer
03:01:19 Join: teranoid ([email protected]) to #php
03:15:02 <robert_> heh
03:47:49 Join: Fa|| ([email protected]) to #php
03:52:03 Quit: Fall ([email protected]) Ping timeout for Fall
04:19:35 Join: daftrandom ([email protected]) to #php
04:19:40 Quit: daftrandom ([email protected]) Read error to daftrandom: EOF from client
06:48:54 Quit: Fa|| ([email protected]) net.split net.split
06:48:54 Quit: robert_ ([email protected]) net.split net.split
06:48:54 Quit: kryten ([email protected]) net.split net.split
06:48:54 Quit: Lukian ([email protected]) net.split net.split
06:48:55 Quit: ChanOp ([email protected]) net.split net.split
06:48:55 Quit: teranoid ([email protected]) net.split net.split
06:48:55 Quit: serkz ([email protected]) net.split net.split
06:48:55 Quit: Pasamio1 ([email protected]) net.split net.split
06:48:55 Quit: Carson ([email protected]) net.split net.split
06:58:56 Join: Carson ([email protected]) to #php
06:58:57 Join: ChanOp ([email protected]) to #php
06:58:57 Join: Pasamio1 ([email protected]) to #php
06:58:58 Join: Lukian ([email protected]) to #php
06:58:58 Join: kryten ([email protected]) to #php
06:58:59 Join: serkz ([email protected]) to #php
06:59:00 Join: robert_ ([email protected]) to #php
06:59:01 Join: teranoid ([email protected]) to #php
06:59:01 Join: Fa|| ([email protected]) to #php
06:59:08 Mode: (by austnet.org) +o ChanOp
06:59:08 Mode: (by austnet.org) +vv kryten Carson
06:59:09 Mode: (by ChanOp) +o paveway
09:36:26 Part: Fa|| ([email protected]) from #php
09:36:34 Join: Fall ([email protected]) to #php
13:11:47 Join: MedNez ([email protected]) to #php
14:02:51 <serkz> what query would i use to return every single row in a table?
14:09:50 <damian> ..
14:10:01 <damian> what do you THINK would be the right query?
14:17:49 <serkz> WHERE (id=>0) ?
14:22:10 <damian> what's with the = ?
14:22:57 <serkz> dont need it?
14:22:58 <serkz> ok
14:25:27 <damian> eh, the => rather
14:25:35 <damian> WHERE (id = x)
14:25:41 <damian> for a single entry
14:25:55 <damian> ohh, every single row
14:25:57 <damian> just don't put in a WHERE
14:27:12 <serkz> ahh even easier
14:27:13 <serkz> cool
14:28:56 <damian> ey, are you from melbournia?
14:30:39 <Fall> SELECT * FROM table;
14:30:42 <Fall> jeez ;)
14:31:13 * damian falls on fall
14:39:11 <Fall> oh my
14:39:42 <serkz> nah, sydney
14:39:43 <serkz> why?
14:39:54 <Fall> I'm in Sydney yew
14:39:56 <Fall> tew
14:40:04 <damian> just know a 'tech person' who's in melb with the same name :P
14:41:05 <serkz> ahh heh
14:41:51 <serkz> Fall where bouts
14:44:43 <damian> mp3:[Goldfinger - Iron Fist|128Kbps|2mins 54secs]
14:51:01 Quit: MedNez ([email protected]) Exit: Austnet Chat Network
14:53:33 Join: Kimbo ([email protected]) to #php
14:53:44 <Kimbo> hi!
14:54:18 <serkz> hi
14:54:58 * damian throws a kimbo in the bin
14:55:04 <Kimbo> :(
14:55:09 <damian> yeah, take that
14:55:13 <Kimbo> *sulks*
14:55:19 <damian> it's what you get.
14:55:33 <Kimbo> hey could someone have a quick look at a line of code for me? i dunno what i done wrong lol
14:56:00 <damian> show
14:56:55 <Kimbo> if (preg_match("/;/", $sname) || preg_match("/</", $sname) || preg_match("/>/", $sname) || preg_match("/|/", $sname))
14:57:19 <damian> and what's the error saying?
14:57:23 <Kimbo> just trying to see if any of those characters are in my string
14:57:43 <Kimbo> well there is no error, it just is saying its true even if it isnt =\
14:58:51 <Kimbo> must have muffed up my if statement
14:59:01 <damian> preg_match() should return a number, not a true/false
14:59:15 <damian> it's only false if there's an error
14:59:36 <damian> tho i may be wrong
15:00:08 <Fall> serkz: I'm near Westmead Hospital
15:01:03 Join: Pzest ([email protected]) to #php
15:01:19 <serkz> Fall cool, blacktown here
15:01:20 <Pzest> that was great, my net decides to disconnect
15:02:22 <Pzest> hmm so preg match returns a number, wonder why my other peice of code works fine for the same senario
15:03:18 <damian> why do you want to check if a string has ; / < > | in it?
15:03:58 <Pzest> so i can return an error if they are contained
15:04:23 <Pzest> well display a message, and if they dont contain it, it can continue
15:04:28 Quit: Kimbo ([email protected]) Ping timeout for Kimbo
15:17:48 <Pzest> damnit
15:32:33 <serkz> if($incity == "Australia" || $incity == "Choose" && $searchquery == "all") { } else if($incity == "Australia" || $incity == "Choose" && $searchquery != "all") { } else { }
15:33:06 <serkz> can anyone see a muck here
15:35:12 <Pzest> needs more brackets?
15:35:43 <serkz> around which one
15:36:42 <Pzest> i dont actually know, but i would put brackets around each of the conditions you are testing
15:36:59 <Pzest> hell yeah, i fixed my problem :D
15:37:16 <Pzest> forgot the \before the |
15:42:15 <serkz> nice
15:42:16 <serkz> http://pastebin.com/d3b14bc08
15:42:30 <serkz> theres where im stuffing up
15:43:13 <serkz> first if is working fine
15:43:19 <serkz> second one is not
15:43:30 <serkz> cos i think the first one is taking all the credit
15:43:51 <Pzest> remove the first and just try the second?
15:45:05 <serkz> if you search for something using "Choose" it works, it select rows by keywords, if you choose Australia, instead of searching by the keyword, it lists all rows in the table
15:45:08 Join: MedNez ([email protected]) to #php
15:47:00 <Pzest> hmm i dunno hey, sorry :(
15:47:57 <serkz> ok it worked
15:48:01 <serkz> "all" was gay anyway
15:48:05 <serkz> removed the first if
15:48:47 <Pzest> there wasnt a big difference between the two was there?
15:48:52 <serkz> nope
15:48:53 <Pzest> suppose is all or is not all
15:49:47 <serkz> yer heh
16:26:01 <Pzest> $fd = fopen(�data.txt�, �r�)
16:26:26 <Pzest> is r is read from begining and r+ is read and write from beginging, does a+ work for read and write from end of file?
16:26:50 <Pzest> oh wait a is write from end
16:36:41 Quit: Fall ([email protected]) Ping timeout for Fall
16:42:17 Join: drexen ([email protected]) to #php
16:42:17 Mode: (by ChanOp) +v drexen
16:51:06 Join: Fall ([email protected]) to #php
16:57:08 Join: schnootop ([email protected]) to #php
17:12:31 Quit: schnootop ([email protected]) Ping timeout for schnootop
17:23:29 <Fall> a is append ;)
17:51:13 <Pzest> heh ta
17:54:28 <Pzest> anyone know how to get the line number from a txt file?
17:55:21 <damian> read it, count the lines you're reading.. and return the line you're after
17:55:54 <Pzest> wow, i didnt think of that, its soo simple
17:56:04 <damian> it is
18:06:00 Join: Loserbait ([email protected]) to #php
18:06:05 Quit: Loserbait ([email protected]) Read error to Loserbait: Connection reset by peer
18:14:18 Quit: drexen ([email protected]) Exit: Austnet Chat Network
19:06:24 Join: BJ ([email protected]) to #php
19:35:13 Join: fildo ([email protected]) to #php
21:53:49 Quit: teranoid ([email protected]) Read error to teranoid: Connection reset by peer
21:57:08 Join: teranoid ([email protected]) to #php
22:25:50 Join: Memphis` ([email protected]) to #php
Search this day's buffer:
