Jump to content

Trying to get property of non-object


desjardins2010

Recommended Posts

$user_query = "SELECT * FROM `referrals`";
    $user_querys = $con -> query($user_query);
        $count_query = $user_query -> num_rows;
    if ($count_query !=0) {
        while ($row = $user_querys -> fetch_assoc()) {
            $id = $row['id'];
            $REG_DATE = $row['regdate'];
            $username = $row['username'];
            $refd_user = $row['refd_user'];
            $commission = $row['commission'];
            $acct_status = $row['acct_status'];

anyone tell me why this Trying to get property of non-object  is happening on line $user_querys = $con -> query($user_query);

 

 

Link to comment
https://forums.phpfreaks.com/topic/287257-trying-to-get-property-of-non-object/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.