Define error ?
Posted: Wed May 21, 2008 5:36 pm
If I use the following
define('MENUS','menuitems');
and then later try
$sql ="SELECT * FROM MENUS where Menu = '$menuname'";
I keep getting the message that the table ....MENUS does not exist. It does not matter what I put after the FROM, it takes it literally and does not use the pre defined define.
Is there something wrong with the declaration or using the single quotes (I have tried all variations).
define('MENUS','menuitems');
and then later try
$sql ="SELECT * FROM MENUS where Menu = '$menuname'";
I keep getting the message that the table ....MENUS does not exist. It does not matter what I put after the FROM, it takes it literally and does not use the pre defined define.
Is there something wrong with the declaration or using the single quotes (I have tried all variations).