811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
|
const char *zUrl = db_column_text(&q, 0);
const char *zSnippet = db_column_text(&q, 1);
const char *zLabel = db_column_text(&q, 2);
if( nRow==0 ){
@ <ol>
}
nRow++;
@ <li><p><a href='%s(zUrl)'>%h(zLabel)</a><br>
@ <span class='snippet'>%s(zSnippet)</span></li>
}
db_finalize(&q);
if( nRow ){
@ </ol>
}
return nRow;
|
|
|
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
|
const char *zUrl = db_column_text(&q, 0);
const char *zSnippet = db_column_text(&q, 1);
const char *zLabel = db_column_text(&q, 2);
if( nRow==0 ){
@ <ol>
}
nRow++;
@ <li><p><a href='%R%s(zUrl)'>%h(zLabel)</a><br>
@ <span class='snippet'>%s(zSnippet)</span></li>
}
db_finalize(&q);
if( nRow ){
@ </ol>
}
return nRow;
|