« first day (529 days earlier)      last day (4416 days later) » 

Tek
12:23 AM
@tereško pastie.org/private/o7zzajdpm6lzcbqrjolgg Here's the SQL dump
 
12:56 AM
Hallo folks
Is there a reasonably sane way to capture offsets when using preg_replace_callback? I've considered using preg_match_all with PREG_OFFSET_CAPTURE and iterating, but that overly complicates the replacement process.
 
1:09 AM
Anyone know a good tutorial on php regular expressions for form validation?
 
if it's the email address you are trying to validate , then you should use filter_var()
as for rest .. just find a general tutorial for making regexps
 
Tek
@tereško I provided the SQL dump above that you requested, do you mind taking a shot at it?
 
yeah , but only in the morning
its 4am here
 
Tek
ah, of course
I'll come back and ask tomorrow
err... later today for you :p
 
1:32 AM
hi
is there no conflict resolution (insteadof, as) for trait properties?
 
Is it common among OOP languages that you can increase the accessibility level of a method in an extending class; from protected to public? It seems to defeat design efforts.
If I'm designing a base class for use in a strategy pattern, the abstract "algorithm" methods are intended to be overridden in client strategy extensions. If the algorithm method has no business being publicly accessible, as it's an implementation detail of that strategy, there's no provision to preserve the accessibility level (protected) as defined in the abstract base.
 
1:51 AM
@Bracketworks yes
 
@ircmaxell I figured as much; any suggestion on reading material for the reason? (unless you care to explain :))
 
Why not? LSP says it cannot restrict, but can be more liberal than its parent
 
@ircmaxell Fair, I understand that; but to what end?
 
You don't know, and don't want to know about the childs needs. All you know is the needs of your object.
truth be told, I rarely use protected. I much more often use either public or private
 
@ircmaxell Understandably, I find myself doing the same thing, favouring composition over inheritance; however, when applying patterns like strategy, certain assumptions must be made about the inheriting classes; and are imposed with the abstract method definitions.
I guess I just find that it adds fragility to such patterns, as extensions can easily break the encapsulation.
 
1:56 AM
Why are you using abstract method definitions? Why not use an interface, and then only use the abstract class for DRY
 
Well, as I mentioned, in this instance the algorithm methods are implementation details of the extending class; facing them public is pointless as individually, they provide no benefit, or could pose problems if invoked.
 
Why?
Why are individual methods overloaded? Sounds like the class is doing too much
 
Ok, take a parser class; the abstract base performs tokenization, and extending classes evaluate() the tokens based on their rules. The evaluation method serves no purpose beyond evaluating tokens passed in from the abstract class's parse() method. The extending classes override evaluate() (defined abstractly in the base)
 
Well, that sounds like the class is trying to do 2 things. Which is a violation of SRP
Why not separate the tokenizer and the evaluator?
 
Got me there :)
Refactor! (read like a battle cry)
Thanks @ircmaxell
 
2:03 AM
:-D
I usually find that when I'm trying to solve a problem like that (avoiding exposing methods, or trying to solve problems like you just were), it's usually an indicator that I have a sub-optimal architecture in that area. Sub-optimal, not necessarally bad...
 
Tek
@ircmaxell If you have time, I have a question queued up if you don't mind :) stackoverflow.com/questions/9868431/…
 
@ircmaxell Agreed. Redrawing the UML relationships in my head, I can already see several benefits to extracting them into two classes.
 
@Tek: I'm not really a fan of that type of quesiton
 
Tek
@ircmaxell No problem, I understand.
 
user895378
@Tek ... It's okay to ask for help, but I've seen you pinging specific people for it. Just in terms of etiquette I'd recommend asking the room as a whole. If anyone can and wants to help they will.
 
user895378
2:06 AM
It saves people the awkwardness of saying "I don't have time" or "No, leave me alone"
 
Tek
@rdlowrey I did, teresko replied to me so I pinged him specifically
 
user895378
I'm aware, I'm just saying broadly :)
 
user895378
Keep it in mind
 
@rdlowrey: I'm fine with it from him, we've talked before and it's not like some random person did that....
 
Tek
@rdlowrey Trust me, I know that. It's just that it's late and I thought only @ircmaxell was on. Plus, what @ircmaxell said :p
 
2:08 AM
In general, I very much agree with you though @rdlowrey
 
user895378
It can be really annoying when someone won't leave you alone. As long as everyone's cool it's fine :)
 
:-D
Thanks though!
 
Tek
Always noted!
But do let me correct myself, if anyone wants to help me with a small query problem, I'd appreciate it very much. stackoverflow.com/questions/9868431/… :)
 
user895378
@ircmaxell This discussion should be mandatory reading. It demonstrates how a simple refactor with sound design principles can solve almost any OOP funkyness.
 
I'm writing a blog post on that topic right now
:-D
 
user895378
2:14 AM
@ircmaxell Hehe, it's sad that I actually got excited about that.
 
user895378
I literally said "sweet" out loud
 
@Tek do you have access to the system right now?
 
Tek
@user705339 yep
 
lol
Well, the post is about technical debt, but I'm going to talk a bit about how to notice it
 
@ircmaxell so.....IMO, it's impossible for you to have 'No results found' since you don't want the 'where' clause to affect the whole statement
 
Tek
2:18 AM
@user705339 Actually, it's me that posted that question lol
 
@user705339 Huh?
 
Tek
@user705339 Anyway, I know it's impossible, I'm trying to find a solution.
 
@ircmaxell so, first question, what do you want to display if the first part returns something, but the 'where' part doesn't?
 
Tek
@ircmaxell He was referring to my question, for some reason he has mistaken you with me
 
sure
 
Tek
2:19 AM
@user705339 What do you mean by "first part"?
 
@ircmaxell the 'where' clause is the second part of the query
the 'join' part retrieves all the rows that match
and the 'where' filters the selected rows that do not match the 'where' clause
 
@user705339: stop pinging me, you're talking to @Tek
 
Tek
@user705339 I don't want to use WHERE, but I want to use something that behaves like it that will keep the format of my joins
 
my bad, Irc
 
Tek
@user705339 So if you keep that in mind, if I were to use WHERE I'd want it to obey the WHERE
 
2:22 AM
@Tek how about using a 'union'?
 
Does anyone know off hand of any RFCs for function() use($foo as $bar){} syntax having been shut down; can anyone else see benefit to it?
 
hi guys, I see this is an active chat, sorry to butt in (I'm scarred to ask at Meta) - is it 2000 points that allows you tosee the number of upvotes vs downvotes I just noticed the vote number between up & down vote button is now a link for me?
 
Tek
@user705339 What would that look like?
 
@JeremyThompson Yes, it is
 
basically, you have 2 queries joined together by the key word 'union'
 
2:24 AM
click it, and you can see the differential
 
thanks
 
no problem
 
Tek
@user705339 So basically replace the joins with UNION?
 
@Bracketworks shutdown?
 
@ircmaxell err, shot down :P -- too late on the edit.
 
2:25 AM
@Tek I'll send you the link...give me a second
 
No, not aware of it, but why would you want to do that?
 
@ircmaxell Aliasing (more like renaming) variables as they're pushed into a closure's scope.
 
again, why would you want to do that?
 
Brevity. use($this->object as $object){ ... }
 
2:29 AM
@Bracketworks eih, I guess, but I can see more un-obvious behavior. For example:
$foo = 'bar';
$bar = 'baz';
return function() use ($foo as $bar) { echo $bar; }
that's totally non-obvious
 
I don't see how it's non-obvious, perhaps a bit silly :P but people do alot of silly things.
 
@Tek the first part (w/o the 'where ') retrieves everything you need; the second part (with the 'where') retrieves only the filtered part; the 'union' part combines both of the statements into one, and gives you what you wanted to achieve
 
I need to look, at first glance, I would say baz. because I see bar in the use statement...
 
Tek
@user705339 Give me a second to try it out.
 
You're using $foo as $bar in the scope of the closure, echo $bar inside is the same as echo $foo outside. == 'bar'
 
2:32 AM
@Tek ok
 
@Bracketworks sure, but at first glance, it's hard to tell the difference between ($foo, $bar) and ($foo as $bar)
 
@ircmaxell Yea, I suppose that's true. The main use-case I see is aliasing members into a closure. You won't always want to bind the closure, even though you can now.
 
I would prefer JS style closures with auto-binding personally
 
So use($this->foo as $foo) which is reasonably sensible.
@ircmaxell So would I; you mean implicit inheritance of the parent scope?
 
parent scope
but yes
 
2:35 AM
Sorry, yea; parent scope.
I actually made a feature request for something like that awhile ago: function() use implicit { ... }
 
Tek
@user705339 Should I put the DATE part in the first join or the join after the union?
 
@Tek which one is it for?
 
Tek
@user705339 purchases table
 
Haha, I just realized I have a glaring error in my example for that feature request: where I assign a closure to a member variable $func, and then try to call it like $this->func()
 
I disagree with Rasmus's position there, but not enough to make a patch
 
2:40 AM
@Tek according to your question, you ran the query the first time, and got 4 rows
@Tek you then added the 'where' clause, ran it again, and got 2 rows
 
Tek
@user705339 right
 
@Tek join the first queries together with a UNION, and you should get your 4 rows back
 
@ircmaxell I didn't think it was worth pursuing; the motivation has already long passed. I feel you are right to disagree with him though, closure rebinding doesn't replicate the intended functionality at all. Bah well.
 
sure
 
What's happening with your parameter casting patch? Any developments on it?
 
2:42 AM
Actually, it doesn't work. Because it's pass-by-value by default, it's just providing a shortcut for (function(use_args) { return function(real_args) { code }; })(use_args)
 
hi
 
@Bracketworks Not really much, been letting things settle before re-proposing
 
@ircmaxell If you're referring to what I think you mean, then you could have use implicit and use &implicit :)
@ircmaxell I was really looking forward to some positive feedback on it. I read through the tape on your initial proposal; its a shame that such a stance was taken on it. I think it definitely has a place in PHP.
 
Tek
@user705339 Sorry, I don't know the UNION syntax but I put UNION right before the LEFT JOIN and I got a syntax error.
 
@Bracketworks Screw that. use implicit would pass the entire scope in, not by reference, but by pointer (so it's the actual values, as if the scope was never popped)
 
2:46 AM
@Tek the union clause is used to join 2 complete queries that are returning the same number of columns (with the same datatypes)
 
Tek
@user705339 But the two joins do return the same table.
 
@Tek I've checked your query again......you seemed to use a lot of joins
 
Tek
@user705339 It's only two :p
 
@Tek especially in places where the 'where' clause is suitable, IMO
where you compared the names and date should be in 'where' clause, IMO
 
Tek
@user705339 Would you mind rewriting my query using UNION? Maybe I'm doing something wrong.
 
2:59 AM
@Tek ok.....so that I understand what you wanted, what do you want the outputs to display?
 
@ircmaxell Yea, on the pointer remark. Either way, t'was shot down.
 
Tek
@user705339 Like you said, I just want my 4 rows back while using WHERE :)
 
Nah, that just means that they didn't want to do it themselves. If we implement it, and post as an RFC, it stands a better shot
 
@Tek what's the purpose of the second part (the 'where' clause) part if the first part already gave you what you wanted?
 
@ircmaxell True enough. I, however, am not C savvy, though it's something I'll be looking into as a hobby for the summer.
 
3:02 AM
;-)
 
Tek
@user705339 I explained it in the question but I'll explain it again. The point is that I want to check for WHERE itemCoupon = 'yes' OR itemReturned = 'yes'
@user705339 If there are no matching results, I want it to return "no results found"
@user705339 With that query right now, it's returning zeros for every brand, if no record is found because of the COALESCE and JOIN parts
 
@Tek oh ok
 
@ircmaxell How would you consider the viability of patches in production? Given we're not doing in-house hosting; I can't imagine most providers are very open to patching (referring to say, HostGator, et al.)
 
@Tek that should be pretty straight forward.....no need for 'UNION'
 
I won't run patched PHP in prod
 
Tek
3:05 AM
@user705339 Really, how so?
 
including the Suhosin patch
 
Just due to untested vulnerabilities?
 
and I think that anyone who does, who isn't maintaining a full team of C developers to work on it, is negligent (yes, I'm talking to you Ubuntu)
@Bracketworks I know PHP's release process, and I know the people behind it. I don't the others
 
@Tek try that query, and see if it gives you what you want
 
@ircmaxell Do you have the same stance on (non-prominent) 3rd-party extensions?
 
Tek
3:09 AM
@user705339 I don't think you can use joins after another like that, I'm getting a syntax error with that query
 
I use 3pd extensions...
 
@Tek how about now?
 
Alrighty; I've been doing alot of PHP dev, just not alot of integration, and haven't used patched versions, various extensions, etc.
 
Tek
@user705339 The query works, but it's only showing two results.
 
@Tek because of the date, right? if you remove the date part, it should give you everything, correct?
 
Tek
3:17 AM
@user705339 Right, but I want it to return 0's for other brands when there's no matches for a specific date
 
Is there any way to inverse (likely by simulating) a preg_* match? I'm thinking something like; you have the following pattern #bar# and the given subject "foobarbaz"; the end result, applying strtoupper() against the "inverse match", would be "FOObarBAZ".
 
Tek
@user705339 Close! Except it's adding both tables so it's getting the incorrect numbers. Results are 3 rows.
 
I'm asking specifically, as if a callback applied against the "inverse match" changed the size of those parts of the string, the offsets of the actual match would be augmented accordingly. So again: #bar# on "foobarbaz", with a callback that strtoupper() and padded with "!" would result in "!FOO!bar!BAZ!"
 
@Tek so, you get 3 instead of 5 rows?
 
Tek
3:24 AM
3 instead of 4 rows.
There are only 4 brands in the table.
I'm grouping the results by brands
@user705339 If you want, there's a link to a MYSQL dump of the tables in my question. You can import that into a new database and see if you can find anything that way faster. Actually, here's the link: pastie.org/private/o7zzajdpm6lzcbqrjolgg
 
> Architecture debt is a lot harder to identify. Really, the best tip that I can give to identify it is that if you find yourself trying to solve a problem that's tricky with respect object relationships, your architecture is probably flawed. A good example is if you want to prevent child objects from making a protected method publicly visible. This is non-obvious, and isn't something you'd normally do.
> To me this triggers an instinct to look at why I need to solve this problem in the first place. Usually, it's because I'm trying to use inheritance to force one class tree to do the job of two or more trees. Really, it's more of a feeling and a judgement call that can only be made with experience.
@Bracketworks: from the post
 
@Tek a min
 
Tek
@user705339 Sure :)
 
@ircmaxell Spot on, link?
 
not published yet
 
3:38 AM
Ah, will await the full read :)
 
tomorrow morning :-D
 
@ircmaxell Excellent! I'll read it as something compiles :)
 
:-D
 
(compiles, parses logs endlessly, either way :P)
@ircmaxell Did you happen to see my disjointed question up there a bit? Applying something (callback) against the "inverse" of a regex match (via preg_* or whatnot)
 
no...
 
3:43 AM
I'm trying to figure out how to apply a callback that may modify the content (and possibly size) of given parts of a string, yet leave other parts intact (specifically for escaping all but certain segments)
I'll have to hunt
 
Tek
Too bad you can never use compiling as an excuse while working with PHP :(
 
why not reverse your regex?
 
@Tek I hack out automation scripts in PHP, often for parsing; they take awhile so it's nearly the same :)
 
@Tek I can and have
 
@ircmaxell Alrighty, but how? :) (is there really just a flag or something?)
 
3:45 AM
no, conceptually
 
Tek
Fair enough, but you don't use the word "compiling"...
 
> And folks, let's be honest. Sturgeon was an optimist. Way more than 90% of code is crap.
@Tek I compile PHP regularly. When I patch it
 
Tek
@ircmaxell and how often do you do that? ;)
 
@Tek I was using it as a stand-in term for any long process :P
 
Well, I test every RC and beta release
 
Tek
3:48 AM
@ircmaxell That's part of your job?
 
@ircmaxell Yea, I'm trying to reverse it; unfortunately its not that easy (read, probably impossible, given the restrictions of look-arounds)
 
I consider it part of my job
just like I consider this a part of my job
 
Tek
@ircmaxell Sure, I could consider vacations part of my job as well, but would the boss approve paytime for that? :p
 
Am I not expected to keep current on new technologies? Am I not expected to constantly try to better myself and my community?
yes, and yes, therefore this fits in there
 
Tek
all right then : )
 
3:54 AM
@Tek your query was wrong......b3 and b4 shouldn't have been accesory to be 0
 
@TehShri Thank you
 
Hey guys, quick question: How do I read a string (variable) up to a delimiter like ".", in Grantlee (equivalent to Django 1.1 templates)?
these are the filters I can use: https://docs.djangoproject.com/en/1.1/ref/templates/builtins/
and http://www.grantlee.org/apidox/builtins.html
I know this isnt php at all, but im really stuck and need help on this - this place seems really active so I thought id give it a go.
Thanks :)
 
Tek
@user705339 Why not?
 
@Tek because first and last name match, and their dates are also in the date range you provided
 
Tek
@user705339 b3 and b4 aren't in the date range
@user705339 If you see my question the date range is `BETWEEN DATE( '2000-01-01' )
AND DATE( '2000-01-05' ) `
 
3:57 AM
@Tek oh my bad.....I put it wrong....no wonder it was giving me the wrong answer
 
Tek
@user705339 lol no problem
 
4:14 AM
Man, this post is going to be a long one...
Yeah, that was a long post. But it should be a good read
scheduled for 10:30 am tomorrow morning
*this morning
 
user895378
@ircmaxell Will look forward to it
 
Want to proof-read it for me early?
 
user895378
yeah sure
 
user895378
Please select your desired debug output level:
[_] *Technical:* theoretical aspects only
[_] *Verbose:* Spelling, grammar, style, and theoretical aspects
 
4:29 AM
Anything that you see fit
 
user895378
will do
 
I'm off to bed. Just @reply me with any comments, and I'll clean them up in the morning
thanks a bunch!
and good night
 
Night @ircmaxell
Oh, and I solved the inverse-regex-tokenization:
function non_token_callback($string, $pattern, $function)
{
    $result = '';
    $segments = \preg_split("#({$pattern})#", (string) $string, null, \PREG_SPLIT_DELIM_CAPTURE);
    for ($index = 0, $length = \count($segments); $index < $length; $index++)
    {
        $result .= ((bool) ($index % 2))
            ? (string) $segments[$index]
            : (string) $function($segments[$index]);
    }
    return $result;
}
 
4:45 AM
@Tek IMO, it's impossible to achieve what you want as long as the 'where' clause is there; its function is simply filter out rows that do not meet its criteria
 
Tek
4:59 AM
@user705339 There has to be a way! We just might not know it...
 
@Tek no simple way.....anyway, why must the 'where' clause be there?
@Tek it already works fine without it
 
Tek
@user705339 I need it to return no results on itemCoupon and itemReturn if those don't match
 
so, it checks the date, itemCoupon, and itemReturned?
 
Tek
@user705339 yes
 
hi
 
5:07 AM
@Tek so, include them right before the group by, and it should work fine
 
Tek
@user705339 It doesn't, remember it returns two results instead of four
 
I used 'no' and 'no'
@Tek you can use whatever you want, and you'll still get the 4 columns
 
Tek
@user705339 let me see
@user705339 It's not returning the correct results
 
@Tek what values are you using for itemCoupon and itemReturned?
 
Tek
@user705339 one second
@user705339 used yes on both
 
5:16 AM
hi all
 
Tek
@user705339 I need to use OR in that query
 
i observe stack over flow has changed the url format of the site and link 2 my profile now looks like
 
@Tek so, both of them don't have to be 'yes'?
 
with too many under scores
and words like igcodeigcodeigcodeigcodeigcodeiglocation
 
Tek
@user705339 nope, only one of them does, that's why the OR is on my original question
 
5:18 AM
@Tek ok...'or' should be used
@Tek but wrap them in ()
 
Tek
@user705339 I can't believe that's it... hold on, let me confirm! lol
 
@Tek not everything requires a 'while'
 
@ircmaxell @tereško wht do u infer sir
 
Tek
@user705339 That's one step closer. But there's one problem left.
@user705339 searching between dates "BETWEEN DATE( '2000-01-05' )
AND DATE( '2000-01-08' )"
 
ok.....what is it?
 
Tek
5:22 AM
@user705339 I want it to return "no results found", instead of counting all 0's
@user705339 Would I have to use something like this? stackoverflow.com/questions/2679865/…
@user705339 It returns "no results found" if I use WHERE but I don't think using WHERE is possible...
 
@Tek that might work, but I haven't used it in a long while
 
Tek
@user705339 It looks more like a hack, but I think it'll work for now
I think that's the closest I'll get
 
@Tek and something tells me it'll reduce your performance
 
Tek
@user705339 Yep... that's what I meant
 
@Tek do you use PHP?
 
Tek
5:28 AM
@user705339 Yes.
@user705339 You think looping through the results in php is better than looping the results in mysql and returning false in php that way?
 
@Tek so, while retrieving the values in an array, check if it's 0
that's what I would do
 
Tek
@user705339 right, so I guess it's better to check in PHP?
 
that case statement will check each row and try to match it........while might take a long time, depending on the number of rows.....so, since I cannot think of a better way, I have no choice but to check it in PHP
 
Tek
@user705339 All right, thanks for your help.
 
@Tek no prob
 
5:33 AM
hi to all
dear users i need ur help
 
hi Emil
@EmilAzizov what help do you need?
You can also post your question on SO, so that everyone can help you
 
i have such db table:

id name surname number
1 emil asadi 26
2 anybody anybody 27

I want to check number column-> that is if number not exists between 1-99 then generate new number from beginning of 1.

How can can i do that?
 
in a single query, or stored procedure?
 
in a single query
new number also should be between 1-99
 
a random number between 1 and 99?
 
5:43 AM
ok may be
 
I don't think it's possible to select a random number......I might be wrong though
 
not random but consistent is better
 
are the numbers unique?
 
no they are not unique
 
so, when the first query runs, and the number is not between 1 and 99, you want 1 to be returned, the second query returns 2, etc?
 
5:52 AM
yes u are right
 
would the number that's returned be inserted back in the db later?
 
then i it would be inserted to database
 
then your logic is flawed........cause when the first query runs, couldn't retrieve 1-99, returns 1, and that 1 is inserted into the db, the second time it runs, that 1 will be returned
 
i dont want to execute 2 query at the same time
 
that's not what I'm saying......when your query runs for the first time; assuming 1-99 isn't present in the table, 1 is returned, correct?
 
5:57 AM
yes correct
 
and that 1 is later inserted back into the same table, correct?
 
correct
:)
 
which means that the next time you run the same query, it's going to return that 1 because 1 is between 1-99
 
if 1 between 1-99 then return 2
 
oh ok
select ifnull((select max(url_id) + 1 from urls where url_id between 1 and 99), 1);
that should work
 
6:17 AM
Hi, I have a wordpress problem but since there is no Wordpress chat, I figured I can ask in here. Is there a way to modify the Add user page in the administrator so I can add several custom fields when creating new users?
 
I don't use Wordpress, so I don't know....but you can always post your questions on SO, and people will answer you within a few hours
 
The problem is I posted the question like 3 hours ago :S but yeah, I think I can edit it and ask again. Probably I extended too much, now that I read what I wrote in here, this looks much better lol
 
are you in the US?
 
Nope, I live in Colombia
 
oh ok....I found that I usually get the most replies when I post in the morning (US time)
 
user895378
6:30 AM
@ircmaxell (1) Great article. (2) I hope you don't mind, I reverted to my days as editor of the college newspaper and made lots of stylistic edits -- feel free to use or discard any/all of my changes with no need for attribution (3) Edits: pastebin.com/KC4r0i1C (4) Great article. Oh wait, I may have already said that.
 
if(category.get(position)=="Veg")
{
holder.icon.setImageResource(R.drawable.veg);

} never gets executed
 
Trying to search google, but can't figure out the right search terms. I have a data base table many to many (plus a "sort" field). [x,y,sort] I have a list manipulation form, and when the user clicks save, I have an array of these items that I need to add, update or remove. (Add values that don't exist, update sort values that do exist, and remove values that no longer exist.) Is there a paradigm for this? Seems like a lot of blunt force loop iteration. Is there an elegant way?
 
1 message moved from Android People
Sorry guys, by mistake its drawn here.
I apologize.
 
Interesting. I didn't know that could be done. (Moving a message and switching rooms.) Was amusing to watch.
 
6:45 AM
sorry guys
 
@DineshVenkata android?
 
yea that is my another passion
@user705339
 
@DineshVenkata lol......nice. been a while since I played with it
 
I'm a newbie to PHP but been developing for android for almost an year now
 
impressive.....functional applications or demos?
 
6:50 AM
I'm working as an intern for a company so developing for them
between I still am not able to make my quiz app in PHP @user705339
 
@DineshVenkata why not? I thought we've put you through yesterday?
 
actually I'm an infant in PHP
still not coded anything good
 
well....you are in the right room.....though they are probably sleeping at the moment
there are lots of PHP in human forms on here
 
great :D
would love to hear from them
and above all this is my college project so have a lot to do
 
ok......just come in here, and ask your questions
most of the time, they'll reply
 
6:55 AM
my first question is how do I get data from a database?
please dont mind my ignorance about PHP
 
well, that's not technically PHP; that's programming generally
and I don't think they'll answer questions like that
 
yea I know that
 
they'll probably tell you to learn SQL first
 
as I told u I know sql
a little bit
 
user895378
@DineshVenkata First, create a database connection
 
user895378
6:56 AM
 
user895378
There should be sufficient examples on those manual pages to get you started. Beyond that, just google "PHP PDO" for more tutorials
 
user895378
That's all the help I can offer, though, because it's 3am where I live and I need to sleep! Good luck.
 
thank u @rdlowrey
good night @rdlowrey
 
user895378
@DineshVenkata Same to you
 
6:58 AM
look forward to hear more from u in the future
 

« first day (529 days earlier)      last day (4416 days later) »