All pastes #241712 Raw Edit

dexen

public php v1 · immutable
·published 2006-11-06 15:18 UTC
rendered paste body
$handle = mysql_query( 'SELECT * from `SOME_TABLE WHERE SOEMTHING ');if ( ! $handle ) die ( 'SQL error: ' . mysql_error() );// either this, to get whole row (array) of result$row = mysql_fetch_array( $handle );//or this, to get one cell$row = mysql_result( .... );mysql_free_result( $handle ); // frees up data from this querySOME MORE QUERIES;mysql_close(); // closes SQL connection