A:
you can add script to html from where you have included your html code, something like this
if (navigator.userAgent.indexOf('iPhone') >= 0 || navigator.userAgent.indexOf('iPod') >= 0 || navigator.userAgent.indexOf('Android') >= 0) {
//alert('iOS');
document.getElementById('ad').innerHTML = '';
document.getElementById('add').innerHTML = '';
document.getElementById('price').innerHTML = '';
document.getElementById('discount').innerHTML = '';
document.getElementById('views').innerHTML = '';
}
put this code before the tag,
please click here for more information
best regards,
Q:
Error with PreparedStatement: Driver not found
I get the error
java.sql.SQLException: Driver not found: com.mysql.jdbc.Driver
at java.sql.DriverManager.getConnection(DriverManager.java:689)
at java.sql.DriverManager.getConnection(DriverManager.java:249)
at com.alentum.database.Database.getConnection(Database.java:31)
the code for this is
PreparedStatement ps;
Connection con = null;
try
{
// connect to the database
con = DriverManager.getConnection(
"jdbc:mysql://localhost:3306/alentum",
"root",
Related links:
Comments