If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > 2 problems?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-10, 09:49
cookpau01 cookpau01 is offline
Registered User
 
Join Date: Apr 2010
Posts: 15
2 problems?

‘SELECT e.*
FROM emp e
WHERE e.ename = ' || $formvariable;

What are the 2 problems??
Reply With Quote
  #2 (permalink)  
Old 04-23-10, 09:56
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
I thought you would have got the idea with the last question we went through.

I'll be explicit: if you expect people to answer your homework questions then you have joined the wrong forum. Feel free to try another.

If you want to carry on here then at an absolute minimum you do the work. There are plenty of people here who will not help you even in that case just on principle.
Reply With Quote
  #3 (permalink)  
Old 04-23-10, 09:59
cookpau01 cookpau01 is offline
Registered User
 
Join Date: Apr 2010
Posts: 15
This is not a homework problem.

I came to the forum for help / discussion. I am not expecting a complete answer. I have already done research into the problem and trying to get a more concrete idea.

oww and by the way:

You seem like the most stuck up person I know. If you do not want to answer the question do not look at it and do not waste your time replying with rude comments.

Get a life!!.
Reply With Quote
  #4 (permalink)  
Old 04-23-10, 10:04
cookpau01 cookpau01 is offline
Registered User
 
Join Date: Apr 2010
Posts: 15
Oww and you like to contradict. You seem to think it is ok if you can post questions such as:
Format numbers with commas???
Reply With Quote
  #5 (permalink)  
Old 04-23-10, 10:12
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Quote:
Originally Posted by cookpau01 View Post
This is not a homework problem.
Bullshit.

Good luck with your assignment
Reply With Quote
  #6 (permalink)  
Old 04-23-10, 10:54
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Problem 1 is there is no assignment, just expression.

Problem 2 is schema element(s) undefined.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #7 (permalink)  
Old 04-23-10, 10:55
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by cookpau01 View Post
This is not a homework problem
Are you suggesting that someone actually employed you to solve this???
__________________
Mike
Reply With Quote
  #8 (permalink)  
Old 04-23-10, 10:58
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Quote:
Originally Posted by cookpau01 View Post
You seem like the most stuck up person I know.
You don't know many people, do you??? I'm way more stuck up than Poots even on a good day.
Quote:
Originally Posted by cookpau01 View Post
If you do not want to answer the question do not look at it and do not waste your time replying with rude comments.
What was the rude part?
Quote:
Originally Posted by cookpau01 View Post
Get a life!!.
I've suggested that many a time, but Poots seems content so I've stopped trying. Such is life.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #9 (permalink)  
Old 04-23-10, 11:35
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by cookpau01 View Post
‘SELECT e.*
FROM emp e
WHERE e.ename = ' || $formvariable;

What are the 2 problems??
Only two? I see at least six.
Reply With Quote
  #10 (permalink)  
Old 04-23-10, 11:46
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by cookpau01
What are the 2 problems??
The first two problems you have are:
  1. posting homework without making any effort at solving it
  2. posting a simple SQL/PHP question in the "database concepts forum" - sadly we still don't have a homework forum
Oddly there also appears to 4 syntax errors in the code supplied but I'm sure you know this plus you could also make a few changes to make the code more maintainable.

EDIT
: 6 syntax errors ? - I must be loosing my touch
__________________
Mike
Reply With Quote
  #11 (permalink)  
Old 04-23-10, 11:58
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Quote:
Originally Posted by cookpau01 View Post
You seem like the most stuck up person I know.
Not fair! You have yet to meet me.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #12 (permalink)  
Old 04-23-10, 12:15
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Eh - I thought you'd changed to become Mr Nice with the students?
__________________
Mike
Reply With Quote
  #13 (permalink)  
Old 04-23-10, 12:35
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by mike_bike_kite View Post
I must be loosing my touch
it's losing, not loosing

and you lost it long, long ago

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #14 (permalink)  
Old 04-23-10, 12:44
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
and now my spelling
__________________
Mike
Reply With Quote
  #15 (permalink)  
Old 04-23-10, 12:50
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Quote:
Originally Posted by mike_bike_kite View Post
Eh - I thought you'd changed to become Mr Nice with the students?
Was that rude?

Certainly not according to my standards.

Even so, I don't pick on people for being students, but thankless jackasses are always in my crosshairs.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On