« first day (1558 days earlier)      last day (3387 days later) » 

4:01 PM
@tereško s/will probably/did a year ago/ - but this isn't the right room for that discussion.
 
When I hear "Levi", my first thought is the son of Jacob. So yeah, masculine in my brain...
 
@Fabor glad it's all OK
 
user895378
@SaraGolemon same. Very Biblical.
 
<--- also biblically named
 
@ircmaxell Cheers. Better safe than sorry. :)
 
4:05 PM
@SaraGolemon well .. my brain goes "Attack on Titan"
 
Gender-ambiguous names tend to be male names
@SaraGolemon ooooh yeah just had that today
 
@Fabor If it's a leak inside their flat, and the leak was detectable outside......that's quite a leak.
 
I think "jeans" ... :/
 
^^ this.
 
that too
 
4:06 PM
haha
 
@AndreaFaulds except names like... andrea
 
Pronunciation key?
 
I'm going to surprised when I mean Levi, and his skin isn't blue denim....
 
@Danack Who knows. Would be nice if #12 were in to check but not much I can do. If it is fine with them I wonder where the smell came from.
 
@Patrick Andrea isn't gender-ambiguous. It's female in every European language bar Italian, Albanian, Romansh
 
4:07 PM
kelly
 
If you know someone has this name and isn't Italian or Albanian, they're female.
 
@tereško Haha, love you how knew instantly what I meant :P
 
If you know someone has this name and they're Italian or Albanian, they're male.
 
user895378
@SaraGolemon Every time I see your name I start humming the Ben Folds song in my head ... ♫ Sara spelled without an "H" was getting bored on a Peavey amp in 1984 ♫
 
Andrea (/ˈændriə, ˈɑːn-, ɑːnˈdreɪə/) is a given name which is common worldwide, cognate to Andrew. It is traditionally popular because, according to the Christian Bible, Saint Andrew was one of the earliest disciples of Jesus and one of the twelve Apostles. == Origin of the name == It derives from the Greek ἀνήρ (anēr), genitive ἀνδρός (andrós), that indicates the man as opposed to the woman (while man in the meaning of human being is ἄνθρωπος, ánthropos, ἀνθρώπου, anthrópou). The original male Greek name, Andréas, (directly etymologically related to andras/άνδρας, man/adult male, husband...
Look at the list of people
Notice how all the men are Italians with the odd exception :p
 
4:10 PM
I just spent like 2 hrs explaining something to someone, only to end up going "oh ffs, I'll do it". I never learn.
 
@DaveRandom ikr
 
user895378
@DaveRandom This is something I've gotten better at with age ... assessing the probability that certain efforts will be wasted.
 
user895378
(and avoiding them)
 
so we chatted briefly yesterday about public require function __construct() which must run on construction of the object (a child can override it, but must call the parent implementation)
 
@SaraGolemon Because your name lacks an h and Zeev and Andi are Israeli, I assumed you were for a brief while :p
 
4:12 PM
There is an annoying boy want to interrupt your speak to ask a question about encryption ? :D :3
 
would it be useful to generalize it? So you could say public require function whatever() which then requires any child implementation to call the parent?
 
@ircmaxell Ooh, is there an rfc for this?
Very interesting
 
no
 
How can I encrypt users data with a key to be safe even from server manager ? their passwords ? How can they recover their data in case of forgetting password ?
 
it was something we tossed around yesterday as an alternative to default constructors
@Goku hire an expert
 
4:16 PM
eh, I'm not sure I care for it in the first place. A parent forcing an implementation detail on the child makes me uncomfortable.
 
@ircmaxell That sounds like it would get annoying when you want to extend a class to deliberately avoid calling the original constructor....and just can't.
 
I want to thank you on behalf of my copassengers on this plane. After all that biblical name talk, I'm now whistling/humming Joseph and the Amazing Technicolor Dreamcoat.
 
@ircmaxell I like it. I like it much more than default ctors.
 
@Danack that's why you'd set it when you must call the parent
 
Yo @ircmaxell, how do you feel about single-static-method classes?
 
4:18 PM
Why must I call the parent?
 
when the parent does some critical setup. It could be abused, but I wouldn't make that default
 
@ircmaxell Made me think of protected internal function - can only be used by children in the same package (so an external lib can't use it)... C# has this functionality but for assemblies. PHP could have it for namespaces? :-)
 
See, I'm implementing a parser, and that needs a tokeniser, and I'll end up with a bunch of these
Like Tokeniser with tokenise
 
@Danack there are objects (such as SplFixedArray for one) where you must call the parent constructor otherwise badness ensues
 
@Jimbo Friend classes would probably be simpler.
 
4:18 PM
@AndreaFaulds elaborate
 
Should also cause ReflectionClass->newInstanceWithoutConstructor() to throw an exception (obviously)
 
@Jimbo if you build me first-class namespaces (meaning a module system similar to go or python), then I'm game :-)
 
@ircmaxell Should I make ajf\mangl\tokenise(), or make the class ajf\mangl\Tokenise with a single method tokenise()?
 
@DaveRandom precisely
@AndreaFaulds Why not use a function?
 
@ircmaxell That sounds like the class needs a separate init method which can be called by child classes, rather than chucking everything in the constructor.
 
4:20 PM
actually, why not make it an object, so you could swap out tokenizers at some point polymorphically
 
@ircmaxell Good idea
 
Would also have to be incompatible with __wakeup()
 
@ircmaxell There's also the benefit that a class lets me hide internal functions
 
no wait
err..
I forget how all the serialization stuff works
 
@AndreaFaulds s/tokenise/tokenize
 
4:21 PM
whatever variant causes the ctor to be skipped
 
@Danack it's not about "chucking everything in the constructor" but more that there are cases where it doesn't make sense to not construct the parent (ex: where you have private variables that are setup)
@DaveRandom __set_state? or something like that
 
> That sounds like the class needs a separate init method which can be called by child classes
 
not sure about Serializable though, since that has a more explicit replacement for the ctor
 
@Patrick s/tokenize/tokenise
It's my code base, I can use BrEng if I want to!
 
@Danack why have a separate init method? that's what the constructor's for
 
4:23 PM
thats no better than me starting to use german variable names... ;-)
 
@Patrick I don't see how.
 
@AndreaFaulds it's going to confuse people because they expect the us-en spelling
 
British English isn't foreign
There's always class_alias /s
 
user895378
@ircmaxell I dunno ... do we really want to add language features to make crappy inheritance more prevalent? These are things people largely don't need to be doing anyway. Seems like complication for no good reason. Why should a parent implementation know how children are doing things? Parents should know the end result -- NOT the implementation details used by the children to arrive at that result. Existing abstract and interface things do this just fine IMO.
 
user895378
Static coupling is a drawback of inheritance. There's no way to spirit that pitfall away with additional language features. I think trying to do so is a waste of time.
 
4:27 PM
@AndreaFaulds that's why I am saying it's the same as when I use german. It's foreign to everyone outside of the uk because we all learn american english in school
 
@Patrick No you don't.
Yes, some people learn American English
Others learn British English
 
@rdlowrey Maybe the parent doesn't know what it's children are doing, it just knows that it's child has a given property or constant that it can use
Like a gender
 
@rdlowrey true, but there are times where you want to enforce that a constructor is run, so you can reason about the setup of the object (specifically around private member variables). Today, you have two choices: take the risk or make the constructor final and add an init method. Both of which suck
 
Okay, not like a gender. But not getting into that bloody argument again. You know what I mean.
 
user895378
@ircmaxell Which is why inheritance is already the wrong choice. People should design their code better instead of looking for a crutch for bad code.
 
user895378
4:29 PM
I just wish we wouldn't add crutches to subsidize this ...
 
@rdlowrey Not arguing, but specifically around data structures inheritance may not be the wrong thing...
 
user895378
Data structures yes, I can agree with that, but do we really need additional language level support for this?
 
well, if you agree on datastructures, what about value objects?
the point being that it's not a trivial amount of code that could benefit from something like this
 
user895378
I have never written a value object class using inheritance :)
 
@AndreaFaulds even if they do, I'm pretty sure that us-en is the standard in the programming world. By using -ise instead of -ize you will just annoy people who use your libs because they'll get it wrong every time
 
user895378
4:31 PM
And still, I just don't think you can short-circuit the requirement of knowing what the code you're inheriting from does.
 
@rdlowrey I don't think you can either
 
@ircmaxell Is there a place entirely in userland, not extensions, where it makes sense to always force a child to call the constructor (or any other method) of the parent?
 
@ircmaxell Yes, but when you've got a constructor that works one way, and you want to create the class in a different way, then moving the initialisation of variables out to an init method, is a simpler and more effective way of refactoring: gist.github.com/Danack/7d7781ce924e0b4db7a1
> so you can reason about the setup of the object (specifically around private member variables)
You shouldn't force child class to work in a particular way - in general it's not a good idea to assume that you know better than the people who are using your code
 
@Danack then refactor so you're not inheriting in that case.
 
I know the code should probably be refactored, but you can't always refactor code when you want to.
And making problems for people just because they ought to be refactoring their code, is not a good addition to the language.
 
4:36 PM
but in that partiucular case, you're conflating construction with building
 
> you can't always refactor code when you want to.
 
the logic around "splitting strings" and all that jazz should be a factory, not part of the constructor
 
@ircmaxell So? If I'm using someones library and they've also conflated construction with building, what am I meant to do? Fork their library, abandon that library and use a different one?
 
Same.
 
4:37 PM
the point I'm trying to make
is there are times that a constructor must run
both in core classes, and in userland code
and in those cases, having an enforacble method to ensure that it runs may not be a bad thing
 
If we enforce it, we'll just see dirty hacks like Reflection with newInstanceWithoutCtor etc.
 
It's presumptuous for the person writing the class now to assume that they know better than anyone using that class later. The code that needs to be run, ought to be documented, but not enforced.
 
@bwoebi which would error on these classes
@Danack disagree whole heartedly
 
@Danack You must hate @Ocramius
 
user895378
__construct() is always an implementation detail, though. I don't see how it's ever good to enforce implementation details ...
 
4:42 PM
He uses "presumptuous" things like final ;)
 
user895378
Enforce APIs, not implementations.
 
@NikiC I hate his final beliefs , but I think he's also going to hate enforced constructors.
 
hating final, not liking enforced ctors for now.
sometimes we intentionally omit the parent ctor to overwrite what should happen there.
 
I personally never used final classes, but that's probably more laziness on my part than a deficiency in the approach
 
I'm hoping @Ocramius will see the light about final when he's on the other end of it. I can understand his current feelings as people are doing stupid, stupid stuff with Doctrine and then complaining when it doesn't work....
 
4:44 PM
@rdlowrey within an implementation, you MUST enforce implementation details. Outside of an implementation (interface, etc) you MUST NOT enforce them
 
user895378
inheritance ....
 
user895378
None of things matter IMO because it's a suboptimal way to write code in the first place.
 
For the record - to me constructors are just a special case of static methods. PHP might actually be a better language if it didn't have them at all and instead of doing new Foo() you always had to explicitly call a static method Foo::new().
And once you realise they are just static methods, making a child class be forced to call a static method of a parent class starts to sound very bad.
 
@rdlowrey suboptimal, yet 90% of all code is written that way
 
user895378
:(
 
4:51 PM
90% of all [php] code
:D
trololol
 
class Token
{
    private $type, $typeName;
    private $value;

    const NUMBER = 1;

    private static function getTypeName($type) /* : ?string */ {
        static $constants = NULL;
        if ($constants === NULL) {
            $constants = (new \ReflectionClass(static::class))->getConstants();
        }
        $typeName = array_search($type, $constants);
        if ($typeName === FALSE) {
            return NULL;
        } else {
            return $typeName;
        }
    }
Good code?
 
You like caps false and null?
 
asking the important questions
 
@Jimbo Yes.
 
heathen
 
4:52 PM
I think it's C influence on me
It makes them stand out more
Also, they are constants
They probably shouldn't be, but they are.
 
@FlorianMargaine As always ;-)
 
@AndreaFaulds I'd agree with you, but then we'd both be wrong
 
@ircmaxell :p
 
@AndreaFaulds Then, static is a constant?
(reserved keyword)s
 
@Jimbo No it isn't
 
4:54 PM
There was a ? at the end :P
 
TRUE, FALSE and NULL are not reserved words in PHP
They're just constants with special values
Much like how NULL in C is just the line #define NULL ((void*)0) in stdlib.h :p
 
@AndreaFaulds they may be implemented as constants, but they are not constants
they are values
 
@ircmaxell Oh sure
 
they have their own representation in the ZVAL, so they are not just a re-used sentinal value, but first-class values
hence they should be lower-cased
 
Right
But, yeah, C influence. To me they'll always be uppercase. :p
 
4:58 PM
@AndreaFaulds 3v4l.org/pAXK9
 
user895378
I use to prefer all-caps TRUE/FALSE/NULL but everyone here beat it out of me.
 
lol@php5.1
 
@FlorianMargaine You can't redefine, it's a case-insensitive constant
 
39 secs ago, by Florian Margaine
lol@php5.1
 
Wait, NULL is always NULL? Weird.
The weird thing is that case-insensitive and case-sensitive constants don't conflict
They should.
 
5:02 PM
@AndreaFaulds 3v4l.org/WAsOm
 
@ircmaxell Heh
 
posted on January 21, 2015 by kbironneau

/* by railwaylabs */

 
@AndreaFaulds bad Rasmus, no donut. PHP IS NOT C. Stop pretending it is :-P
3
 
private function isDigit(/* string */ $char) /* : bool */ {
    return ('0' <= $char || $char <= '9');
}
oops
Gosh, can we allow '0' <= $char <= '9'? Please?
 
5:08 PM
@AndreaFaulds bad Rasmus, no donut.
 
@ircmaxell What, why?
 
PHP is not C
'0' is a string, not a character literal
 
@ircmaxell You mean PHP is not Python?
 
@NikiC that too
 
@ircmaxell So?
 
5:09 PM
@AndreaFaulds oops being ||?
 
@NikiC Yes. Wouldn't it be nicer as return ('0' <= $char <= '9');, though?
 
OH, you want $a <= $b <= $c as a trinary operator (or whatever)
I thought you meant the '0' <= $char, where '0' becomes ord('0')
 
@ircmaxell Yes.
Unlike Java, we could actually implement this without breaking anything
 
why unlike Java?
 
@ircmaxell non-associative <, <=, >, >=
 
5:16 PM
ah
 
OT, but "Windows as a service" is a thing now apparently ;(
 
so it's a chromebook basically?
 
recent updates to my chromebook have introduced a memory leak requiring it to be restarted at least once a day.. if windows wants to go that route they can just re-release 98
 
@Rangad Gaaaah......if you're going to send someone up on stage and try to get them looking cool, make sure the shirt they're going to wear fits....
 
5:32 PM
It looks better than 7/8.1 and the upgrade appears to be free for the first year, so I'll update. But cortana will annoy me I guess.
and if it sucks... well, windows is not my main system anyway
 
I've a feeling my windows boxes are going to be on 7 for a very long time
 
"You can now set custom background images on phones?" That is something new on windows (haven't used one in some time)?
 
truly an OS of the future
 
"it showed that he was typing and the message popped just in", they should really rethink their way of presenting this stuff. Windows 10 on desktop looks surprisingly good (well, I had very low expectations) but the phone presentation was just ... meh so far.
 
5:51 PM
@AndreaFaulds what will be null <=> 1 , 'foo' <=> null or null <=> null ?
 
@AlmaDo whatever <, == and > do now
 
since in MySQL <=> is something completely different (:
 
Parallelism vs. Concurrency http://t.co/jvhPSIynWN
 
user895378
Nice.
 
6:05 PM
So Spartan is official, new rendering engine. Note taking mode. Within the next 2 years my bosses will force us all to use that exiting new feature...hell yeah <sarcasm here?>
 
Is anybody genuinely interested in that MS thing?
 
user895378
@PeeHaa -_____-
 
I will stop now, no worries. But everyone around me uses windows for almost everything (including windows servers)
 
Don't get me wrong I only can work on a windows desktop
Everything else is just full retard
Just too bad the MS also fucked that thing up
 
6:25 PM
@PeeHaa give linux a try, really has come a long way, especially when you have someone else managing it for you :-P
 
:)
The older I get the more I hate having to tinker with stuff that should just work TM
 
21:19 on default constructors
@PeeHaa older you get, what are you, 25?
 
@ircmaxell About your age
 
really? hmm, I figured you were a little younger
 
:)
 
6:30 PM
not in a bad way of course
 
Is it wrong to pass object instance to some class for it to use objects methods? Is it somehow resource waste ?
 
@animaacija Yes everybody is doing it wrong :P
 
huh?
 
@PeeHaa that's one of the reasons I ditched windows ... it doesn't apply to you, but it used to be extremely hard to compile C in windows, installing the right SDK, and further back than that, getting a free IDE was impossible ... modern linux really does just work ...
and it's free, in every sense of the word ...
 
6:33 PM
@animaacija You're meant to do that
As long as your object isn't reaching through the object to get to another object's methods, that's fine
 
@rdlowrey "we're" using your Aury something thingy :-) And was just wondering if there's a clean way to inject stuff into e.g. methods, like controller actions (parameters are passed from route), hope you get me.
 
@DejanMarjanovic Dude. See this
 
stuff, thingy e.g.
vague @DejanMarjanovic is vague :D
 
user895378
@DejanMarjanovic Yes, there is. Do this:
 
Yeah, got fed up of this shit :D
 
6:34 PM
array_walk($params, function($value, $key) use (&$args) {
        $args[sprintf(':%s', $key)] = $value;
    });
 
Ouh Jimbo if I could trust you?
 
Prefix them with a :
Then...
 
$this->injector->execute([$this->injector->make($controller), $action], $args);
 
@rdlowrey @Jimbo Yes. Yes.
Yes.
Yes?
 
6:36 PM
@JoeWatkins Looks like macos
 
@DejanMarjanovic It works beautifully. Once set up, and you have your alias, delegate etc read from a YAML config and cached, it's... amazing.. cries
 
user895378
class Dependency {
    public $value = 0;
}
class MyThing {
    function doSomething(Dependency $dep) {
        return $dep->value;
    }
}

$dependency = new Dependency;
$dependency->value = 42;
$injector->share($dependency);
$result = $injector->execute('MyThing::myDependency');
var_dump($result); // int(42)
 
user895378
^ If you use the injector to "execute" any callable it will automatically provision any parameters in the callable's method signature using any definitions you've already assigned on the injector
 
@PeeHaa it does, but it's free, no children were melted in any factories or anything ... it's really quite nice, a nice change from KDE for the last few years ...
everything is where I expect it to be ...
 
@PeeHaa Better than looking like Windows.
 
6:38 PM
@rdlowrey Give me a moment to compute, Sir :-) Thank you!
 
user895378
@webarto So for something like routing requests to controllers you can just map all your routes to MyClass::myMethod and then use the injector to execute the routed callable.
 
Too many Linux GUIs have copied Windows conventions
 
user895378
@DejanMarjanovic feel free to ask more questions -- I'm happy to help :)
 
@AndreaFaulds What's wrong with windows classic shell?
 
@Jimbo well here it is not reaching through, but reaching to (so i suppose it's ok?) Hard to put in words: An instance of object is passed to Some classes constructor, where it will be assigned to local variable and methods will be used..
 
6:39 PM
@AndreaFaulds other way around
 
But Windows lacks good conventions and is wildly inconsistent. It has no design philosophy, or at least none MS have stuck to.
 
It's good to see more environments copying OS X.
 
@AndreaFaulds causality, you fail at it
 
@rdlowrey Thanks :-) Currently it's major clusterfuck, butchered Kohana 2, we're trying to get rid of that stuff and first thing in composer.json is your thingy :-)
 
6:39 PM
@ircmaxell Not really. There's the odd exception, but everything uses, for example, Ctrl+C for copying, top-right for close/maximise/minimise, etc.
 
most of the OSX design functionality has been stolen from Linux.
 
user895378
@DejanMarjanovic \o/
 
@AndreaFaulds OSX doesn't even have a concept of maximize
you need a bloody program to do that
 
@ircmaxell True, it has expand and full-screen, or just the latter since Yosemite
 
@ircmaxell OS X maximizes into a separate space…
 
user895378
6:40 PM
@DejanMarjanovic Ah there's a problem in my code I just saw:
 
user895378
$result = $injector->execute('MyThing::myDependency');
 
@AndreaFaulds full screen, as long as you only use one monitor
 
@ircmaxell No, Linux and OS X have both copied ideas come up with decades ago
 
user895378
$result = $injector->execute('MyThing::doSomething'); // had the wrong method name
 
@ircmaxell ...not since Mavericks.
GUI design is like programming language design
 
6:41 PM
@AndreaFaulds KDE pioneered most of the windowing magic that OSX has introduced in the past decade
 
We keep reinventing stuff pioneered decades ago
 
@AndreaFaulds yes since mavericks
 
@rdlowrey Got it, mate. Hopefully soon enough millions of $ will go through it :-P
 
@ircmaxell thats the topic! thx
 
@ircmaxell huh?
 
6:42 PM
you what mavericks did was split the workspaces per monitor. So you can either have a single workspace crossing 2 monitors or have working fullscreen on multi-monitor, but not both
 
@ircmaxell ...huh?
 
in mavericks
you can choose between having a separate workspace per monitor, or haivng a single workspace that spans monitors
if you have a single workspace that spans monitors, full screen still nukes the other monitors (pre-mavericks behavior)
 
Oh yeah, a window can't span monitors, never noticed that
 
if you have a separate workspace per monitor, windows are pinned to one monitor at a time, and you switch monitor workspaces separately
 
Actually kinda convenient how it does this
 
6:44 PM
which completely bloody kills the point of workspaces
 
I don't think I've ever used anything with multiple monitors that really gets everything right ...
this elementary does okay, took some fiddling, but there are still niggling problems like not being able to set different desktop backgrounds ...
 
@JoeWatkins KDE4 was amazing at it
 
I was just using KDE4
the problem there was that no matter what I done, the menu bar was on the wrong screen (on the right) ...
 
Having each monitor get its own workspace is great actually, means I don't have windows hanging off the side
 
the things I care about: being able to pin an application window (not app, the specific window) to a specific monitor
 
6:45 PM
tried rearranging, tried plugging in the other way around, it always resulted in crashed drivers so I gave up trying ...
 
being able to switch workspaces to context-switch
 
@ircmaxell OS X has that
 
@AndreaFaulds nope
 
@ircmaxell How not?
 
6:46 PM
OSX doesn't even have the concept of a window without third party software
 
...what?
 
@AndreaFaulds you can pin an application to a workspace, but I can't have 2 chrome instances and pin one to one workspace, and the other to another
like I do when I have my "browsing" and "development" workspaces. I want a browser in each
OSX says "nope, screw you"
 
Works fine for me.
 
I've never used workspaces ...
 
get it setup, but god forbid you change a windowing parameter
like plugging in a display, or rebooting
 
6:47 PM
I have two Firefox windows open just now
 
that's a rather good idea though ...
 
because the apps will re-pin themselves randomly
 
both full-screen
 
@AndreaFaulds sure, you can open and place them in different places
but you can't pin them
meaning so that they always open on the correct workspace
and that they don't move workspaces without me telling them to
 
the apps only move workspaces if you logout/login
 
6:48 PM
really, OSX's workspaces are such a crippled version of what KDE4 did 7 years ago
 
Somehow I doubt what KDE4 did was novel
 
but really… how often do you reboot…
 
@bwoebi not true, any windowing config change which triggers a windowing manager restart (including plugging in or removing monitors) will sometimes cause non-pinned apps to move
@AndreaFaulds I can only tell you that OSX did nothing of the sort, windows still has no concept of workspaces, and Gnome's was primitive at best.
 
Windows, OS X, GNOME and KDE aren't the only window managers out there
 
of course not
and if it wasn't novel by absolute definitions, it was novel by mainstream release definition
in that no other OS or windowing manager in mainstream use came anywhere near what it did at the time
 
6:51 PM
The Amiga did multiple monitors with virtual desktops in 1985. I'd be interested to see how it handled this.
BeOS had "workspaces", not sure how it worked.
 
sigh
 
Hi guys I'm doing show tables and I can't get the name of the table. Does anybody know the tag?
 
Depends on the database...
But, really? Doesn't SHOW TABLES always show the name? Isn't that the point?
 
array(1) { [0]=> object(stdClass)#2 (13) { ["name"]=> string(28) "Tables_in_information_schema" ["orgname"]=> string(10) "TABLE_NAME" ["table"]=> string(11) "TABLE_NAMES" ["orgtable"]=> string(11) "TABLE_NAMES" ["def"]=> string(0) "" ["db"]=> string(18) "information_schema" ["catalog"]=> string(3) "def" ["max_length"]=> int(37) ["length"]=> int(64) ["charsetnr"]=> int(8) ["flags"]=> int(1) ["type"]=> int(253) ["decimals"]=> int(0) } }
This is returning array
 
don't use SHOW TABLES
 
6:59 PM
What else?
 
use INFORMATION_SCHEMA
161
A: MySQL query to get column names?

ircmaxellThe best way is to use the INFORMATION_SCHEMA metadata virtual database. Specifically the INFORMATION_SCHEMA.COLUMNS table... SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA`='yourdatabasename' AND `TABLE_NAME`='yourtablename'; It's VERY powerful, and can g...

 
$this->vads = $this->slegums->prepare("DESC {$galds}");
 

« first day (1558 days earlier)      last day (3387 days later) »