MySQL in a Nutshell by Russell Dyer The unconfirmed error reports are from readers. They have not yet been approved or disproved by the author or editor and represent solely the opinion of the reader. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification This page was updated May 13, 2008. UNCONFIRMED errors and comments from readers: {231} Code listing line 17; while(mysql_fetch_row($results)) { should read: while($row = mysql_fetch_row($results)) { (255) lines 5-6; This sentence is more or less unintelligible: "The first line sets up the definition for MySQL, with mysql, which will be referenced by mysql later." [255] first line of code; As the code now stands, mysql is undefined when mysql_init is called, resulting in a blow-up; if you're lucky you get a segmentation fault. Fix it by replacing this line of code if(mysql_init(mysql) == NULL) with these two lines of code: mysql = mysql_init(NULL); if (mysql == NULL) (286) Table A-1; It looks as though Table A-1 was supposed to have been formatted with the name of the datatype (SMALLINT, BIGINT, etc.) and size (2 bytes, 4 bytes, etc.) in the left column and the range of representable values in the right column. However, the format of the table is corrupted starting with the MEDIUMINT row.