Re: Programming MySQL in C

From: The Natural Philosopher <tnp_at_invalid.invalid>
Date: Tue, 16 May 2017 07:46:50 +0100
Message-ID: <ofe78q$auj$1_at_news.albasani.net>


On 16/05/17 07:31, bit-naughty_at_hotmail.com wrote:
> I'd like some info on this - my book has a little, so I was just
> wondering - does anyone do this these days?

I do

> Is like, the mysql C
> library included with a modern, say, CentOS?

Probably. You have to install the libraries tho.

> And, most importantly -
> what's a quick n easy way to print HTML in C? For a page that will
> have normal HTML interspersed with DB output, do I have to put a
> slash before every quote mark if I haave a PRINT statement with HTML
> in it? I suppose I could do a search-and-repace in my text editor to
> replace every " with a \", but - IS THERE A BETTER WAY? One other way
> I guess would be to put every separate little bit of HTML in a
> separate file, and pull it up and print it in the C proggy, but -
> that would be Bloody Slow!

not really.
Id build the static HTML as a series of constant string variables, and just printf em.

most folks use php for the HTML side of things tho for this reason.

PHP for web pages: C for backend stuff

>
> Anything else?
>
>
> Thanks.
>

-- 
New Socialism consists essentially in being seen to have your heart in
the right place whilst your head is in the clouds and your hand is in
someone else's pocket.
Received on Tue May 16 2017 - 08:46:50 CEST

Original text of this message