665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
|
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>%s(href("%s",zUrl))%h(zLabel)</a><br>%s(zSnippet)</li>
}
db_finalize(&q);
if( nRow ){
@ </ol>
}
return nRow;
}
|
|
|
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
|
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>%s(zSnippet)</li>
}
db_finalize(&q);
if( nRow ){
@ </ol>
}
return nRow;
}
|