Click here to Skip to main content
15,891,529 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Call to Member function execute() on null... Pin
samflex27-Feb-17 11:44
samflex27-Feb-17 11:44 
GeneralRe: Call to Member function execute() on null... Pin
Richard MacCutchan27-Feb-17 21:28
mveRichard MacCutchan27-Feb-17 21:28 
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 1:09
mveRichard Deeming28-Feb-17 1:09 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 1:23
samflex28-Feb-17 1:23 
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 1:40
mveRichard Deeming28-Feb-17 1:40 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 3:30
samflex28-Feb-17 3:30 
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 3:39
mveRichard Deeming28-Feb-17 3:39 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 4:00
samflex28-Feb-17 4:00 
Ok I see.

So, let me say for instance that I have these three tables (they will be up to 7).

PHP
CEATE TABLE employees (
    employeeid INT NOT NULL,
    employeename varchar(25),
    ttitle varchar(25), 
    email varchar(25), 
    PRIMARY KEY (employeeid)
);
create table wp_spousedetails
(
    spouseid INT NOT NULL, 
    name varchar(30) not null, 
    foreign key (employeeid) references menus(employeeid),
    primary key (spouseid)
);

create table wp_sourcedetails
(
    sourceid INT NOT NULL, 
    name varchar(30) not null, 
    foreign key (employeeid) references menus(employeeid),
    primary key (sourceid)
);

Please don't worry if there is any syntax error with these. That's not the point of posting these ddl statements. I can fix those.

My question is to reference them all, all I need is employeeid, no?

PHP
Select e.employeename, e.ttitle, e.email, so.sourcename,so.sourceincome, sp.spousename,sp.spouseincome.... from employees e on so.employeeid = e.employeeid, sp.employeeid = e.employeeid.


That's really all I need right?

I am trying to calm down from excitement. This has been agonizing.

Thank you, thank you sir
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 4:11
mveRichard Deeming28-Feb-17 4:11 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 4:28
samflex28-Feb-17 4:28 
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 4:32
mveRichard Deeming28-Feb-17 4:32 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 5:38
samflex28-Feb-17 5:38 
QuestionGetting "Notice: Undefined offset: 1" error (SOLVED) Pin
samflex21-Feb-17 6:12
samflex21-Feb-17 6:12 
AnswerRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 8:37
mveRichard Deeming21-Feb-17 8:37 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 8:46
samflex21-Feb-17 8:46 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 9:03
mveRichard Deeming21-Feb-17 9:03 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 9:12
samflex21-Feb-17 9:12 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 9:22
mveRichard Deeming21-Feb-17 9:22 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 9:34
samflex21-Feb-17 9:34 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 9:37
mveRichard Deeming21-Feb-17 9:37 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 10:04
samflex21-Feb-17 10:04 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 11:06
mveRichard Deeming21-Feb-17 11:06 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 15:34
samflex21-Feb-17 15:34 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming22-Feb-17 2:41
mveRichard Deeming22-Feb-17 2:41 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex22-Feb-17 3:22
samflex22-Feb-17 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.