Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

03 January 2008


Total 6 pages. You are browsing page 1/6.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Thu Jan 03 00:00:09 2008
--- Day changed Thu Jan 03 2008
00:00 <****> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( icon = ? ) WHERE ( id = ? )' at line 1
00:00 <****> yes
00:00 <****> which would be much more helpfull if it were true
00:00 <****> Not quite, but okay.
00:00 <****> TML, well, it's in the configure command '--enable-session=shared'
00:00 <****> that's it
00:01 <****> minthome: So it doesn't show up on phpinfo()?
00:02 <****> i recenly skimed through a book pushing RoR to PHP and Java coders and one statement seemed especially retarded : "....main advatage of Ruby On Rails is that it is a whole framework while PHP and Java are not..." grrr asshole
00:02 <****> i know this isn't strictly php, but it's more php than mysql, so here goes. has anyone ever come across an error like this? Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 15 in
00:02 <****> cyth:
00:02 <****>prepare("UPDATE users SET icon = ? WHERE id = ?");
00:02 <****> works
00:02 <****> nrvld: Please leave the profanity out of ##PHP
00:02 <****> TML, no, only in the configure command
00:02 <****> Can we catch an exception if file does not include?
00:02 <****> but I don't see the difference
00:02 <****> Jaymon: The point of using Django and/or other frameworks is that you actually know the language before you start abusing it.
00:02 <****> `m0: it is not an exception
00:03 <****> nrvld, they made some funny videos about RoR vs {$blah} for some RoR conference
00:03 <****> nrvld, theyre quite funny
00:03 <****> minthome: Then that's why the session functions don't work. Did you tell PHP to load the session extension you built?
00:03 <****> Naktibalda: so we have to check if file exists all the time :s
00:03 <****> wolfpaws: the problem with that though is I know very few people that even knew what Ruby was before RoR
00:03 <****> if(!include()) {} shoudl work
00:03 <****> oh
00:03 <****> awesome
00:03 <****> I remember that years ago :x
00:03 <****> nrvld, http://www.youtube.com/watch?v=PQbuyKUaKFo
00:03 <****> TML, no? I don't think so.
00:03 <****> learath, there's a slight difference between how query() are compiled and how prepared statements are compiled
00:04 <****> not sure how to go about doing that.... that's why i'm in here
00:04 <****> I don't even know why you had those parens there anyway, completely unecessary
00:04 <****> I am not even sure if it's valid sql at all
00:04 <****> it was working fine until I updated the system... archlinux here
00:04 <****> minthome: So you built session support as an external module, didn't ask PHP to load it, and are surprised that session support isn't available - do I understand that correctly?
00:04 <****> TML, yeah, that sounds about right ;P so how to I tell php to load it?
00:05 <****> hey guys is there any way in which i can see what rows have been returned from a sql query im not 100% on what their names are so im just trying to debug it.
00:05 <****> nrvld, http://www.youtube.com/watch?v=n1NVfDlU6yQ&feature=related
00:05 <****> Jaymon: That's exatly why I dislike Ruby. The language became a tool for everything *AFTER* RoR. Before that, nobody knew it.
00:05 <****> krustifski, hehe:)
00:05 <****> cyth: .... well
00:05 <****> cyth: it's working. I have NFC how or why
00:06 <****> cyth: thank you very much
00:06 <****> Wolfpaws: similarly, that is why I like Django, Python was fun to program in before Django
00:06 <****> Jaymon: I knew
00:06 <****> this is like when you dissasemble the laptop, change nothing, and it works after you put it back together
00:06 <****> Ruby is a beautiful language...aesthetically
00:06 <****> I coded Python way before Django :3
00:06 <****> this is a classic one: http://www.youtube.com/watch?v=p5EIrSM8dCA&feature=related
00:06 <****> I should set up a SVN repository so I could figure out WTF I fixed
00:07 <****> Jaymon: I am actually looking into web.py to make a lightweight CMS :]
00:07 <****> the only problem I have with Ruby is the same problem I have with any type of fanatacism, they think they are the only way to solve a problem
00:07 <****> TML, ...?
00:07 <****> Wolfpaws: I have never used web.py but isn't it the Reddit guys framework?
00:08 <****> i found the extension directory... and i see session.so, but not sure where to load it
00:08 <****> Jaymon: Actually, Aaron Swarch made it. But yes, reddit uses it.
00:08 <****> Jaymon, it's a great little thing... very minimalistic:)
00:08 <****> oh
00:08 <****> heh
00:08 <****> found it
00:09 <****> w00t, thanks TML
00:09 <****> heh: http://www.youtube.com/watch?v=PLUS00QrYWw&feature=related
00:09 <****> django
00:10 <****> I'm just learning python, and so far I think it's an OKish language, still needs a bit of work.... but it seems most of the issues I want to complain about are recently/going to be fixed anyway.
00:11 <****> the only thing I whine about now that probably isn't going to fixed is real encapsulation
00:13 <****> $testarray = array(
00:13 <****> array('foo', 'bar', 'boo'),
00:13 <****> array('abc', 'xyz', 'stu')
00:13 <****> );
00:13 <****> hi
00:13 <****> i have something like that above ....
00:13 <****> Hi. Please son't spam the channel.
00:13 <****> how can i access the first "column"?
00:14 <****> http://pastebin.org
00:14 <****> $testarray[0]
00:14 <****> soc: Wit magic?
00:14 <****> (foo, bar)? array_keys don't work of course ...
00:14 <****> Actually, $testarray[0][0]; $testarray[1][0], etc.
00:15 <****> JamesG: so i have to iterate over it?
00:15 <****> Well.. what are you trying to do? Not necessarily
00:15 <****> $xml = setU($content,array_keys($testarray),$xml);
00:15 <****> i have basically that, but array_keys don't work, as i said ..
00:16 <****> You're going to have to pastebin a more complete example bit of code.
00:16 <****> i know this isn't strictly php, has anyone ever come across an error like this? Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 15 in
00:16 <****> JamesG: that's basically it ...
00:17 <****> Hi everyone.
00:17 <****> soc: what should be a second param of setU?
00:17 <****> soc: What, from that array, are you trying to pass into setU() ?
00:17 <****> i wonder if i have to use a new variable or if there is a simple array function to do what i want ...
00:17 <****> the function setU isn't really important,
00:17 <****> :)
00:17 <****> yes
00:18 <****> importat is how should look correct array
00:18 <****> Where's that FAQ about asking smart questions?
00:18 <****> google :)
00:19 <****> No, in php-bot.. I forget the trigger for it
00:19 <****> JamesG: /msg php-bot
00:19 <****> Naktibalda: i basically want an array with foo and abc in it (the first 'column')


Total 6 pages. You are browsing page 1/6.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo