0

Hi, again...

Can someone help me with the following code:

(LINE 74:) $get_addresses_sql = "SELECT address, city, state, zipcode, type FROM address WHERE master_id ='".$_POST['sel_id']."'";

(LINE 75:) $get_addresses_res = mysqli_fetch_array($mysqli, $get_addresses_sql) or die(mysqli_error($mysqli));

it brings up this error:

Notice: Undefined index: sel_id in /hermes/bosweb/web185/b1859/sl.mavedog21/public_html/address_book/selEntry.php on line 74

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in /hermes/bosweb/web185/b1859/sl.mavedog21/public_html/address_book/selEntry.php on line 75

thanks again,
NLC

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Shanti C
0

LINE 75 was resolved:

$get_addresses_res = mysqli_query()
NOT
$get_addresses_res = mysqli_fetch_array()

Now:
LINE 74: has to do with .$_POST["sel_id"]."'";

0
$sel_id = $_POST['sel_id'];

$get_addresses_sql = "SELECT address, city, state, zipcode, type FROM address WHERE master_id ='$sel_id' ";
This topic has been dead for over six months. 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.