note 5822 modified in ref.msql by irchtml

From: Date: Tue, 02 Mar 2004 07:56:32 +0000
Subject: note 5822 modified in ref.msql by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66074@lists.php.net to get a copy of this message
To those porting code from w3-msql/lite to php, a few functions are different or missing (aside from the fact that the order of arguments is reversed and the other signatures are different...not good design work, imho, or was it built for msql 1.x? At any rate, conformity with the C and Lite API should have been maintained.). The lite/C function msqlStoreResult() is automatically done in msql_query() and msql(). msql_fetch_field() doesn't give you the field length value (unlike msqlFetchField()). You have to call msql_fieldlen() to get that. msqlEncode() is missing. The functionality (which is needed for pretty much ALL SQL based rdbms's) is in addSlashes() in the String library. --was-- To those porting code from w3-msql/lite to php, a few functions are different or missing (aside from the fact that the order of arguments is reversed and the other signatures are different...not good design work, imho, or was it built for msql 1.x? At any rate, conformity with the C and Lite API should have been maintained.). <P><UL><LI> The lite/C function msqlStoreResult() is automatically done in msql_query() and msql(). <LI>msql_fetch_field() doesn't give you the field length value (unlike msqlFetchField()). You have to call msql_fieldlen() to get that. <LI>msqlEncode() is missing. The functionality (which is needed for pretty much ALL SQL based rdbms's) is in addSlashes() in the String library. </UL> http://www.php.net/manual/en/ref.msql.php

« previous php.notes (#66074) next »