w whyhi i keep getting this warning and i dont know why

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /users/2014/daf1/public_html/cs1109/lab18/adding.php on line 13

$add_topic_res = mysql_query($dbconnection, $add_topic_sql) or die(mysql_error($dbconnection));

if anyone could help me it would be great
cheers

Try this for me please. Change

mysql_query($dbconnection, $add_topic_sql)

to

mysql_query($add_topic_sql, $dbconnection)

I hope this helps.

ya cheers thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.