« first day (984 days earlier)      last day (3969 days later) » 

7:00 AM
public function pinsert() {
        $Title = $this->db->query("SELECT Title FROM project where id=(SELECT id FROM project where  Title='title')");
 
@HamZa most of the interesting stuff that i learned was either because of playing Uplink, or because i was trying to crack/hack games
 
2 mins ago, by Mr. Alien
You are inserting, but the statement is selecting
 
@tereško you cracked games? reverse eng?
 
        $data = array(
            'Title' => $Title);                                                                                             $this->db->insert('payment', $data);
 
7:01 AM
@tereško heh, pretty cool
 
@Mr.Alien everyone should have to fight. :)
 
@YogeshSuthar It's fun :p
victory gets sweeter
 
@HamZa is question still not clear??
 
You want to insert, while your code is starting with "Select"
I recommend you to go read the docs, or do some research
 
@HamZa btw , i you have not played Uplink, you might want to try it
 
7:03 AM
@tereško I'm googling it right now :)
 
I used to play AOE a lot
wil brb
 
@totymedli unfortunately - no. A large potion of senior php developers have no idea what OOP actually entails. Usually they assume "well, i will wrap these static function in a class, and now my code is OOP".
 
@Mr.Alien I am also fighting to do something new in this world. :)
 
shat, forgot my wallet, no snacks for me today
 
@HamZa i am trying to to get value for $title to insert it in payment table ..so i am selecting title from project table ..
 
7:06 AM
go home its just 10 min away
 
have a loook to my code again
 
@YogeshSuthar everyone wants that, only few are ready to pay for what it gets you there...
 
  public function pinsert() {
        $Title = $this->db->query("SELECT Title FROM project where id=(SELECT id FROM project where  Title='title')");
        echo $this->db->last_query();
        $first_pay = $this->input->post('first_pay');
        $last_pay = $this->input->post('last_pay');
        $total = $this->input->post('total_budget');

        $data = array(
            'Title' => $Title,
            'first_pay' => $first_pay,
            'last_pay' => $last_pay,
            'total_budget' => $total
 
ha ha no, better I have my lunch early
@user2206616 first vardump $Title
 
@user2206616 It seems I can't help you, sorry
 
7:07 AM
and see what you get
@HamZa PDO ha ha ha
 
http://thephp.cc/viewpoints/blog/2013/06/php-5-5-new-class-constant
Planet PHP
PHP 5.5: New Class Constant
thePHP.cc
1372230000
 
@Mr.Alien I don't want to break my head over something simple. I think/sense that it's a really simple problem
 
I am surprised when some users jump to pdo before learning procedural
 
How to fetch the auto generated id from database in php? tried mysql_insert_id but it provides only insert query details id but want to fetch already registerd datas id?
 
@shivdhwajpndey auto generated id from last insert ?
 
7:11 AM
@Mr.Alien which graphic card do you have?
 
Nvidia GT 240 Galaxy
 
Huh ? You mean all the id's ? or last insert id ?
 
@Mr.Alien no already stored users id who want to log in
@HamZa users are registerd and when user login then i want to know those id
 
@shivdhwajpndey am not getting you, are you storing rand ids generated by you? or are you asking about session id?
or you want to know how many users are online?
 
@shivdhwajpndey "when the user logs in" you should get that ID when he logs in and store it somewhere (session for example?)
 
7:15 AM
@Mr.Alien i m using simply a login page without session or cookie and want to use the id of the registered users id so that i can render the page for them as home page
@HamZa i m using simply a login page without session or cookie and want to use the id of the registered users id so that i can render the page for them as home page
 
@shivdhwajpndey login system without session/cookie is impossible IMO
 
Without session :O
seriously, let me know how you did that..
@shivdhwajpndey post the sentence 1ce, and ping both with the same, or else don't ping, we are reading it ..
 
@Mr.Alien is nvidia geforce gt 610m better than your your card?
 
let me see
 
@HamZa @Mr.Alien I want to create a simple login registration and home page when user register then id is auto generated in mysql and then when he/she login then msg goes registerd user and want to fetch the id at that time to move to home page of registerd user
 
7:20 AM
@shivdhwajpndey Have you followed some basic tutorials or are you just shooting in the air like that ?
 
i am learning php now so while doing so i asked
 
what is your question ?
 
@YogeshSuthar Nope, mine is better compare this and this and I've this
 
or are you simply here to spam users ?
 
@shivdhwajpndey you need to learn things, how you can even create a login system without sessions?
 
7:23 AM
@shivdhwajpndey ok, just learn the basics and do some practice. You're jumping far away from your current level, you won't learn a thing even if we provided you the code
 
@Mr.Alien you are true gamer. ;)
 
@shivdhwajpndey and btw, still didn't got what you want
 
@YogeshSuthar lol, I guess my gc is sick, need to take to doc for a checkup, am not sure whether its the psu or gc, I guess should be gc
 
@shivdhwajpndey , FYI, in English the questions end with a "?" (question mark).
 
7:24 AM
@Mr.Alien kindly go to previous pinged post for you
@tereško FYI means Please
 
@shivdhwajpndey in short whatever you've done is wrong, no sessions ends the story there, so you need to learn more and FYI is for your info :)
 
@tereško In arabic it's like this ؟
 
@HamZa you guys read reverse, write reverse.. so easy for you to become reverse eng
 
@Mr.Alien lol hahaha
 
we pray sun, you pray moon, it's reverse in everything...
 
7:27 AM
heh, we don't pray the moon :p
 
I don't know but moon plays some role in islam
 
mornin chaps
 
no matters i will defenitly find a solution thanks for help @Mr.Alien @HamZa @tereško
 
@Mr.Alien yeah, it's to decide the end/begin of the month
 
I just love this song
 
7:30 AM
@DamienOvereem morning
 
@shivdhwajpndey don't go for a solution, trust me and learn, you will never get it unless and until you learn and try, if you just hunt for solutions, copy paste the codes, you are never going to learn
@DamienOvereem morning
 
exactly
 
@HamZa why moon and why not sun
we fast in d day, you guys break your fast at nyt
 
why sun and not moon ?
ps: we also fast in the day
@Mr.Alien Well the sun doesn't "disappear" like the moon ?
 
Sun is bright, moon is dull, we believe that anything good should be started at early morning, so it will rise just like the sun rises...
now you'll say even moon rises but sun is bright and moon is not
 
7:34 AM
@Mr.Alien what do you say snapdeal.com/product/…
 
@YogeshSuthar are you sure? toshiba?
 
that's why i am asking you, is toshiba good?
 
nah
ek kaam kar
 
@Mr.Alien Well the moon is to define the new month
 
go to lamington, you'll get variety there, also local rates mil jayenge
@HamZa ohhh in your calendar?
 
7:36 AM
yeah i am planning to go there in saturday. but is toshiba good? @Mr.Alien
 
@Mr.Alien yeah
There is an islamic calendar
 
never used it, but I won't prefer buying that, even want to buy 1 but not now, I am happy with my PC, just started learning JS from yesterday.. why don't you go for hp? ya dell ya vaio? don't worry about the battery, all are same..
@HamZa ohhhh got it, I thought moon plays some role in your religion, pakistan has moon and a star on it's flag so..
 
@HamZa thanks keep in mind
 
@Mr.Alien well, since it defines the new month, there is a month called "ramadan" when we fast. And yes, I've seen some countries take the crescent of the moon as their symbol
 
oh ok ok, and I guess it's ramzan and not ramadan? or are they diff?
 
7:41 AM
hey hey, anyone ever used excel_reader 2?
 
@Mr.Alien Every culture (or language) write it differently, but the pronounciation is the same. So I can expect some people writing ramathan xD
 
ok ok got it..
 
user1125394
is it bad to have a sql table without primary keys?
 
@cx not really, it depends...
 
user1125394
(a order history table)
 
7:43 AM
but I tend to have incremental ids which makes my id column primary by default
 
user1125394
the orders ticket sometimes can be the same, just close time varies
 
and its good to have a unique id ALWAYS
 
user1125394
@Mr.Alien could but AI would mean nothing here
 
you think so but it means a lot always..
 
@cx How does your table look like now ?
 
user1125394
7:46 AM
you mean when you see a shitty row, you'll be able to select it later with that id?
 
yes
 
@Mr.Alien I hate dell and hp. They looked like old fashioned laptops
 
Someone is telling me on the Laravel4 IRC chan ;
'Stop learning raw php and smarty and start laravel4, you won't regret it. I think L4 is a lot better than Cake and I have found it to be very straight forward.'
 
@YogeshSuthar I guess you are ahead of us... if it's that so, buy alienware
 
user1125394
CREATE TABLE IF NOT EXISTS `orders` (
  `broker` varchar(255) NOT NULL,
  `ticket` varchar(255) NOT NULL,
  `strategy` varchar(255) NOT NULL DEFAULT '',
  `amount` double NOT NULL,
  //...
  `ct` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `commission` double NOT NULL,
  `pl` double NOT NULL,
  `symbol` varchar(255) NOT NULL,
  `comment` varchar(255) DEFAULT '',
  `account` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
7:49 AM
now that's am waiting for...to buy that..
 
user1125394
16 columns
 
i wonder , why did he put "raw php and smarty" there?
 
@Mr.Alien are you making joke of me? its tooooooooo costly.
 
@cx keep it simple, have a unique ai id column, won't hurt you
 
also, there is a quite a high possibility that a well-driven roadkill is better then CakePHP
 
7:50 AM
@YogeshSuthar that's what I told you, if you are going for show, than Alienware is what you are looking for, do you want a good piece? should I show you some? give me time till tonyt
 
@Mr.Alien but that should be within 35K.
mail me the link
 
user1125394
ALTER TABLE  `orders_history` ADD  `id` INT NOT NULL AUTO_INCREMENT FIRST ,
ADD PRIMARY KEY (  `id` )
 
user1125394
ok thanks
 
@YogeshSuthar ok, will do it ;)
 
user1125394
I could have put (ticket, ct) as key, but well, doesn't matter much
 
7:52 AM
btw I just saw a laptop in croma last week, vaio, 32k with os, so without os you can get it around 29-30K, lamington
@cx yes, an extra column won't harm you so make an id column with ai
 
what was its specificaion?
 
The reason I say stop w/ smarty is Laravel has its own templating engine (blade) which is much easier than smarty.
 
enough, am not able to recollect but was good enough, just wanted to buy but need to wait for a while, as I just bought a tab..
 
@cx Most of the devs just puts a numeric ID field with AI and let it be. Note that in some cases you could specify other columns as primary keys
 
7:56 AM
@YogeshSuthar you stay at virar ryt?
 
yes we can have multiple columns as primary keys
 
there is no croma
 
@YogeshSuthar ok.. that's why I asked you..
you can try vijay sales
 
yeah vijay salse is in vasai i think.
 
7:58 AM
borivali mai bhi hai
 
near poisar
 
@dragon112 morning
@YogeshSuthar have you learnt JS?
 
mon ring yall
 
8:09 AM
got your salary incremented? you sound fresh and happy :p
 
Am I the only one who thinks picking a correct close reason is only made harder now?
Or do I just have to get used?
 
Get used to it..
 
@PeeHaa Yeah, I'm feeling the same
E_TOO_MUCH_OPTIONS
 
Me too, the old way was alright if you ask me.
 
8:17 AM
Actually this way is also good, things need to be arranged a lil
as I posted a question on meta this morning, they have listed too localized under off topic section
 
@Mr.Alien Not really
13
A: Responding to your "too localized" concerns

PeeHaa Syntax errors mysql_* expects x y give Undefined offset Blank page of death Convert my code in language X to language Y The 100000th question about how to access an array value Trying to access a GET variable on a POST request Are just some I can think of. I'm pretty sure when I open the main ...

 
@PeeHaa so according to you is that listed correctly?
 
Hi, ! @Dragon112
 
I think even if we complain about it, it won't change. At least not for the moment.
So we should just get used to it.
 
@Mr.Alien No. For those example there is IMO no valid substitue currently
 
8:23 AM
@Duikboot Yo, whats up
 
You will get a lot of bogus close reason and a lot of different reason on the same question
 
@PeeHaa I think too localized was pretty good for things like this: >?php whyIsThisNotWorking(); ?>
 
Doing fine how are you doing
 
That's since a long long tym, users just see a close vote, click on that, follow the blue digit and cast ... I remember, this question of mine was closed as off topic, now how can this be an off topic?
 
		if (empty($r) || (('DZAK' == $r[0]['kodspro']) || (false == $r[0]['accepted'] && false == $r[0]['corrupted']))) {
			if ($userCheck == false || $r[0]['userID'] != $this->user->userID) {
				if (!empty($r)) {
 
8:26 AM
Busy busy, had to pick up a 2.50m x 0.9m x 0.5m dressoir yesterday, I kind of hurt my leg :p
 
also too localized was useful to me, in CSS section, op just posts a link to his/her website and asks how to fix this, how to fix that, or how can I create that effect..
 
Nice :P
 
Awesome, congrats @dragon112
 
that's large
;D
 
@Duikboot But it hurt... that's not nice :<
@Mr.Alien For what? O_o
 
8:27 AM
@tereško lol
 
It was for my mom :p
 
1 message moved to bin
 
But her car fits inside mine, twice.
So I had to help
 
@dragon112 for hurting your leg
 
You suck :<
 
8:29 AM
@HamZa i have no idea what it does
 
ha ha
off to lunch guys
 
@PeeHaa heh, sorry for the huge gifs, it was absolutely required
 
@tereško can't be helped, hope you don't need it
 
What is the right order?
headers > sessoin [] bla > session_start or
headers > session_star > session [] ...blalala
(index.php)
 
session_start headers session[] blabla
 
8:33 AM
2
Q: CodeIgniter: Is it possible to remove index.php without using .htaccess?

itskawsarSome technical reason, i don't want to use .htaccess to remove index.php from URL in CodeIgniter. I have seen the route section. I also tried with route too as following: $route['(:any)'] = 'index.php/$1'; But it is not working. Is it possible to remove index.php by router in CodeIgniter? T...

 
Ok thanks! :-)
 
For those who are interested, I'm providing 2 bounties:
http://stackoverflow.com/questions/1354999/
http://stackoverflow.com/questions/17039670/
 
There is only one answer to the remember me otion: stackoverflow.com/a/1356098/508666
 
@PeeHaa heh, He could have atleast provided some text or was it OK in that time to post link-only answers ?
 
@HamZa i would close first on as "too broad" and second one as "off topic"
 
8:38 AM
@HamZa He should have provided the info of the last link in his answer
 
Mornings
 
jo
 
@tereško Second one seems ok (to me atleast). But maybe it would better fit on codegolf.stackexchange.com
 
hence the "off topic"
 
@tereško yeah, makes sense.
Btw what do you think guys? I'm hanging around the regex tag for quite a long time. And have found many situations which were like "RTFM" to me, for example "how to match digits only", "how to match letters, but not ..."
So I though of creating a "reference" question which covers most of the situations. But then I though SO isn't a "tutorial" website and OP's should just read some manuals.
 
8:42 AM
So we got our reincarnation of General Reference as a form of off-topic
@HamZa Creating a reference with good answers is fine.
If you want it to be "successful" it needs to be one that will get many questions closed as a dupe of it
 
@MadaraUchiha Hmmm I see, I'm quite affraid since there are so many flavors. Maybe I should target only one language
 
@HamZa Such questions need to be closed as off-topic
 
@MadaraUchiha naruto is out !
 
Questions that can be solved by reading the first few chapters of regular-expressions.info should die.
@HamZa Really?
 
@MadaraUchiha yeah
 
8:45 AM
I just checked and haven't seen it
Link?
Oh yeah, now I see it
Thanks :)
 
@MadaraUchiha yeah that's what I though, but sadly enough it seems that even high-rep users are answering it.
 
@DaveRandom Morning!
 
2
Q: CodeIgniter: Is it possible to remove index.php without using .htaccess?

itskawsarSome technical reason, i don't want to use .htaccess to remove index.php from URL in CodeIgniter. I have seen the route section. I also tried with route too as following: $route['(:any)'] = 'index.php/$1'; But it is not working. Is it possible to remove index.php by router in CodeIgniter? T...

 
@HamZa That is a problem.
 
@itskawsar stop spamming your question please, 1 time is more than enough
 
8:47 AM
can anyone like to answer for it :(
@HamZa sorry
 
@itskawsar You can always put a bounty on it. But I'd rather search for a solution
 
What do you guys think of Shingeki no Kyojin?
 
@dragon112 it's good
 
laravel ftw.
 
8:52 AM
@AlvaroCarvajalNakosmai with "win" you mean: bad practices, static code, and global state
 
@HamZa thanks
 
@tereško I like the 'mature' feel if it, unlike many anime
 
why bad practices?.
 
@tereško He meant "fucks the world"
 
@AlvaroCarvajalNakosmai donno ... maybe because it was written by people who are bad at OOP
most of the Laravel's code is static
 
8:54 AM
Any framework you recommend then?.
 
Silex, Symfony2, ZF2 or write your own
 
I really liked eloquent :(
 
I love Symfony2, but it still hides dependencies with the container as a service locator... Auryn would be an awesome inclusion into that framework
 
@Jimbo that part depends on how you actually use it
 
8:57 AM
 
@Jimbo Ah right ;)
 
a real injector?
 
Is awesome, teresko introduced me to it
 
I think the Spanish boy-band wouldn't be an awesome inclusion to anything
 
It's British-style though.
 
8:59 AM
@DaveRandom lol, hey Dave, where on earth have you been?
 
@dragon112 Yeh that doesn't improve matters at all.
@Jimbo La France!
 

« first day (984 days earlier)      last day (3969 days later) »