Skip to main content
added 286 characters in body; added 3 characters in body
Source Link
KoolKabin
  • 17.8k
  • 37
  • 113
  • 145

how about using limit 0,1limit 0,1 for mysql optimisation

and about your code:

$DBH = new PDO( "connection string goes here" );

$STH - $DBH -> prepare( "select figure from table1" );

$STH -> execute();

$result = $STH ->fetch(PDO::FETCH_ASSOC)

echo $result["figure"];

$DBH = null;

how about using limit 0,1 for mysql optimisation

how about using limit 0,1 for mysql optimisation

and about your code:

$DBH = new PDO( "connection string goes here" );

$STH - $DBH -> prepare( "select figure from table1" );

$STH -> execute();

$result = $STH ->fetch(PDO::FETCH_ASSOC)

echo $result["figure"];

$DBH = null;
Source Link
KoolKabin
  • 17.8k
  • 37
  • 113
  • 145

how about using limit 0,1 for mysql optimisation