Notice: Undefined variable: table in C:on line 22,  passed myql table name through function