$result = mysql_query('blah blah blah this is your query');
if ($result) {
if (mysql_num_rows($result) == 0) {
// do one thing
}
else {
// do another thing
}
}
the link to your cpanel may have changed. login to http://x10hosting.com/panel.php with your forum login. In the middle of that page there is a link to your CPanel. If that link doesn't work, you should try yourdomain.com/cpanel (replace yourdomain.com with your actual domain)
I think you can delete everything after this line:
--
-- Volcar la base de datos para la tabla `tb_ads`
--
To me, all this data looks like you don't need it.
It's been like 2 weeks since I posted this. I thought you'd all stop being nice to me by now :biggrin:
Thanks for all your compliments, but my boss doesn't want me on X10 anymore at work, so that will slow me down a little :rant2:
edit the php file like this:
<?php
// Database configuration
$bd_host = "localhost"; // leave this the same
$bd_usuario = "username"; // change this to the database name, example: username_user
$bd_password = "pass"; // password for username_user
$bd_base = "database"; // database you created...
the underscores are automatic. For example, if you type in: database, your database name is username_database where "username" is your cpanel user name. The box is the one that says "new database" Make sure you use the MySQL wizard and not MySQL databases tool. They have the same icon.
Thank you very much :biggrin:
I'd have more if I didn't have so much competition. *cough* zen-r *cough* mission * cough* zubair12 *chough* ichwar *cough* smith6112 *cough* fguy64 *cough* *cough*
Sorry, something in my throat :laugh:
Using CPanel go to MySQL Database Wizard.
Create database using whatever name you want. It will be named like username_dbname where username is your CPanel login and dbname is what you typed in the box. Next, create a user with whatever name you want. Again, it will be like username_user. Set...
No, the delay won't change server load.
You could also increase the delay so that the user can choose their browser though links placed on the page. If the user doesn't have javascript enabled, this method will fail and they will have to click a link anyways.
If you want help with more code...
If you are not on Absolut or Stoli, there is still maintenance on the servers and it will appear like your files are not up to date. You can read the sticky at the top of this forum or check the news forum for when this is done. Corey estimated that it will be done today.
If you aren't doing any other server side programming at all, it wouldn't make sense to do this one page. They will do exactly the same the exact thing. The only difference is the server side option will not have a loading page.
I've used this script before with some success...