Sorry if my question is stupid I was just wondering is there a difference in security of funds on a sidechain and drivechain?
"Sidechain" is a general term for blockchains that are in some way "pegged" to another blockchain like Bitcoin. The most simple of them work with an "1-way-peg": If you want to transact 1 BTC to the sidechain, then you freeze a BTC on the main chain and one token on the sidechain is created. So initially the peg is 1=1.
The problem: If you want to exchange sidechain tokens to mainchain BTC, then you must buy them at an exchange - so effectively these kinds of sidechains are an "altcoin".
"Drivechain" is not something different than a "sidechain", but a sidechain
concept where a two-way peg exists. The mechanism to transfer BTC from the main chain to the drivechain works like in 1-way sidechains. But you can go back: you destroy a "DrivechainBTC" on the drivechain and (with a somewhat complicated mechanism) miners "unfreeze" a freezed BTC on the main chain.
There is a second kind of "2-way-peg" that is more centralized, used for example by Blockstream and Rootstock. In this sidechain concept the frozen BTC are controlled by a "federation" (a group of "trusted" users, like exchanges) that unfreeze the BTC if they detect that a "SidechainBTC" is destroyed.
You can compare the Blockstream sidechain concept and the Drivechain concept with respect to security: In the Blockstream concept, it depends that the "Federation" does not collude to steal frozen Bitcoins or censor transactions that go from the sidechain to the main chain. In the Drivechain concept, miners decide - as long as they don't collude, it's secure.
In my opinion the Drivechain concept is more secure because miners have high costs (energy, mining equipment) and so they would lose more if they collude and lose credibility. For small sidechains, however, the Blockstream model may be more secure (see Paul Sztorc's
article, above all the section "Drivechain’s Security" - long read but essential if you want to really understand the concept).