0

I don't know how to enquiry the "informationtype" which are message and email? How to rewrite the below code?

$information = mysql_query("SELECT * FROM table WHERE informationtype='message'");
$row = mysql_fetch_assoc($information);
$result=($row['informationno']);
3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Stefano Mtangoo
0
$information = mysql_query("SELECT * FROM table WHERE informationtype='message' or 'email'");

Edited by cliffcc: n/a

0

Correction...

$information = mysql_query("SELECT * FROM table WHERE informationtype='message' OR informationtype='email'");
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.