Error in PHP with Mysql

Posted by maltad on Stack Overflow See other posts from Stack Overflow or by maltad
Published on 2010-12-31T02:51:49Z Indexed on 2010/12/31 2:54 UTC
Read the original article Hit count: 139

Filed under:

Hello, Im starting to learn PHP. When I run the script it had an error that said: "Assigned Employee:resource(6) of type (mysql result)" . Please help me and sorry for my bad English Here is the code:

    include_once 'rnheader.php';
    include_once 'rnfunctions.php';

echo '

'; echo ' Assigned Employee:'; $query = "SELECT UserName FROM employee where Classification_ClassificationID = '2'"; $result = queryMysql($query);

if (!queryMysql($query)) { echo "Query fail: $query
" . mysql_error() . "

"; } else {

var_dump($result); exit;

echo ''; // or name="toinsert[]" while ($row = mysqli_fetch_array($result)) { echo '' . htmlspecialchars($row['UserName']) . ''; } } echo ''; ?>

© Stack Overflow or respective owner

Related posts about php