Jump to content

[SOLVED] mysql_fetch_array ERROR


fesan

Recommended Posts

Hi...

 

This code results in this error:

Unknown column 'Ny_test' in 'where clause'

 

Cant figure out why it results in this error. I have a column named gruppe_navn, and i have double checked it several times. $_GET[gruppe] gives in this case Ny_nest, and i have a field in the column gruppe_navn named Ny_test...

 

Can anyone help me?

 

<?php
$query = "SELECT * FROM $dbtable WHERE gruppe_navn = $_GET[gruppe]";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
$mysql_select = $row['list_include'];
?>

Link to comment
https://forums.phpfreaks.com/topic/150847-solved-mysql_fetch_array-error/
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.