I did a search for the following error I received:
Warning: Wrong parameter count for mysql_query() in /export/www/... on line 83
The code on line 83 is very simple:
$query= mysql_query("SELECT * FROM request2") or die(mysql_error());
Since the syntax seems correct, I assume something is wrong with my table, nonetheless, another thread suggested adding this:
$run = mysql_query($query) or die(mysql_query());
Result: Same error.
My table looks like this:
id | int(11) | | | 0 | |
| rarea | varchar(5) | | | | |
| rspecs | varchar(50) | | | | |
| farea | varchar(5) | | | | |
| fspecs | varchar(50) | | | | |
| fmem | varchar(5) | | | | |
| fmspecs | varchar(50) | | | | |
| sarea | varchar(5) | | | | |
| sspecs | varchar(50) | | | | |
| parea | varchar(5) | | | | |
| pspecs | varchar(50) | | | | |
| session_id | int(11) | | PRI | NULL | auto_increment |
I've tried adding a unique key and obviously a primary auto_incrementing key, what else might be causing this error? Is there any way to get a more specific error message? Any suggestions would be appreciated, thanks.