Jump to content

fetch_assoc


newhip

Recommended Posts

Hey I have a piece of code that I sort of understand why it is not working but then i dont know how to get around it

 

<?php
include 'xconn.php';
$get_id = $_REQUEST["name"];
$seartt=mysql_query("SELECT * FROM work WHERE name=".$get_id);
$row = mysql_fetch_assoc($seartt);
?>

 

 The error is "mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in"

Not sure how to stagger or make this work. Any help is appreciated. Thanks.

Link to comment
https://forums.phpfreaks.com/topic/276553-fetch_assoc/
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.