My 1998 528i on a very hit

Accelerator did not work while driving on 1998 BMW 528i

Thought it was a transmission issue. But after being towed to mechanic he rang me the next day to say it was driving fine -and computer showed no transmission issues. When i thought about it although the engine continued to run fine there was no revving sound when you accelerated. No power but no sound. Almost like the accelerator was dead. Could this be an electrical issue?very scary when on a freeway and suddenly the accelerator us dead and you have no power. It was an extremely hot day but temp gauge perfect and no transmission warning lights showed. Have looked after this car like a baby and recently fitted replacement engine.HELP.

Asked by for the 1998 BMW 528i
Yes that seems to be computer glitch with the accel pedal..