That won't work. The electrolysis takes more energy than the combustion (or fuel cell) gives off.

That's why it's not very economical. Obviously if they tried to make it from water it wouldn't work. Most nowdays comes from oil reserves. They're working on ways to make it biologically. There's also problems with storing it. So we're aways from making it work well.