How is this supposed to work? mysql_error() doesn't return a STRING object and printf() still expects a const char format string as first argument!
Code:
STRING *Errortext =mysql_error (res);
				if(!res)
				{
					printf(Errortext);
                                 }



Beside that, don't try to evaluate a third party string with printf!


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com