Dr. D is correct, as it looks like you forgot to actually perform a separation of variables. To do this, you get all the x's and dx's to one side and all the t's and dt's two one side. Then you integrate both sides, and after some simplifying, you will use your initial condition to solve for your integration constant.
The relevant equation you posted is not the same here, because you have x in the denominator, not the numerator.
To do \LaTeX on the Physics Forums, you enclose your \LaTeX within come code brackets. For example:
\frac{dx}{dt} = \frac{6}{x}
Click on the graphic to see the code. Use itex if you want your graphics to fit on the same line as your text.