|
-
March 11th, 2010, 12:56 PM
#1
I've done the searching
I've searched and searched, and gotten many answers, but I can't solve this simple problem. I'm a rookie php/sql writer so please provide an example if the answer is more complicated than I think it is.
Here is my code:
Code:
<?php
$host = 10.0.0.1;
$user = 'user1';
$password = '*******';
$dbName = 'dbone';
$dbTable = 'tbone';
$conn = mysql_connect($host, $user, $password) or die(mysql_error());
$db = mysql_select_db($dbName, $conn) or die(mysql_error());
$select_resultx = $db->query_read("SELECT * FROM $dbTable", $conn);
and this is my result:
Call to a member function on a non-object ....pertaining to the $select_resultx line.
I've stripped it down to just SELECT *, removed all grouping and ordering, trying to isolate the problem. I am stuck on this basic script.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|