Help - Search - Members - Calendar
Full Version: How To?
Zymic Webmaster Forums > Zymic.com Support > Zymic Free Web Templates
boxer12
Hey all! I am new here ! And I need help, I buy one good script and I dont know how to upload it can someone help me?? I think just to try it here on free host so then after I see how it all working buy good host and domain! Can someone help me and tell me more about it plz? unsure.gif
swordz
The fastest way to upload a script is via ftp. Download filezilla, and use that.

swordz
boxer12
swordz I upload script via filezilla ! And I upload just to try that! And what I need to do now to start website?? When I click on one file witch I upload it wrote this :

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in /www/vndv.com/t/r/y/trydemo/htdocs/config.php on line 14
Cannot Connect
swordz
You need to set up a mysql data base via the control panel, then alter the script with you connection details.

swordz
boxer12
I set up mysql base
* MySQL databases: 1/5
* MySQL users: 1/5

And what now how to alert the script with you connection details?
swordz
Search the script for anything to do with mysql, mysql_select, mysql_connect etc. If it says username, password or database, replace it with the details you have just created.

swordz
boxer12
I made mysql base and I can connect as admin but I dont know what I need next to do? I serch for the script and I download but I dont know what I need to do??
boxer12
I wanna made my PTC(Paid To Click) look something like this just different design:






And I buy script one good script with protection of hackers and all, I think to upload it here on Free host so that I see how it all working and when I see that I think to buy one good host I mean with more space and all I know everything about PTC but I dont know everthing about start PTC this thing with host and that! I upload all files from script it have 108 files and I set mysql base ! I just dont know what I need to do next?? help plz
boxer12
Anybody can help ?? Swordz ?? plz
swordz
What exact error are you getting at the moment? I'm a bit lost about what you want to do now.

swordz
boxer12
I wanna open my PTC its somethink like website!
Ok I bought script this is pictures of script and all files in script:





And I upload all script all files from script FTP look pic:





And I set I set up mysql base
* MySQL databases: 1/5
* MySQL users: 1/5

Look pic




And when I try to open one of files from script witch I upload it show this:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in /www/vndv.com/t/r/y/trydemo/htdocs/config.php on line 14
Cannot Connect

look pick:




And what I need to do now? What must i do to start my PTC website??
swordz
You need to edit the php files with your log in details that you created when you set up your database, as I said above.

swordz
boxer12
Hey swordz I edit all php files I have only problem with config.php
my host: www.trydemo.vndv.com , mysql name: trydemo_trydemo , pass - trydemo ( its inccorect pass ) tell me this

<?php
/********************************************************************************
**************************************************************
SecureBux Version 2.00
This Script has been created and coded by Gabrola and sold by Hamza.
If you find any bugs in the script report at ygabrola@gmail.com or contact Hamza.
Copywrite Gabrola 2008;
********************************************************************************
****************************************************************/
$dhost = "localhost"; //usually localhost, or ip
$dusername = "user_name"; // database user
$dpassword = "db_pass"; // database pass
$ddatabase = "db_name"; // database name

$con = mysql_connect($dhost, $dusername, $dpassword) or die("Cannot Connect");
mysql_select_db($ddatabase, $con);

if($_COOKIE["usNick"] and $_COOKIE["usPass"])
{
$q = mysql_query("SELECT * FROM tb_users WHERE username='{$_COOKIE['usNick']}' AND password='{$_COOKIE['usPass']}'") or die(mysql_error());
if(mysql_num_rows($q) == 0)
{
$_COOKIE['usNick'] = false;
$_COOKIE['usPass'] = false;
} else {
$loggedin = 1;
$r = mysql_fetch_array($q);
}
}
$da = date("j");

$queryxx = "DELETE FROM ad_clicks WHERE day!='$da'";
mysql_query($queryxx);

$q2 = mysql_query("SELECT * FROM settings");
while($r2=mysql_fetch_array($q2))
{
$set[$r2[setname]]=$r2["setvalue"];
}
mysql_query("UPDATE settings SET setvalue='0', set_day='{$da}' WHERE set_day!='{$da}' AND set_day>'0'") or die(mysql_error());
$user=$_COOKIE['usNick'];
?>

This is config.php I need to edit only this first part :
$dhost = "localhost"; //usually localhost, or ip
$dusername = "user_name"; // database user
$dpassword = "db_pass"; // database pass
$ddatabase = "db_name"; // database name

Help me with this I made all but never works! plz help edit this that I see how it neeed to be!
my host: www.trydemo.vndv.com , mysql name: trydemo_trydemo , pass - trydemo ( its inccorect pass )
swordz
Have you set up a data base and a user? Use this if you haven't.

If you have, dusername is the user name you set up, ddatabase is the database you set up, and dpassword is the corresponding password.

swordz
boxer12
I made MySql and my username is trydemo_boxer12 ! Now what I need change:
$dhost = "localhost"; //usually localhost, or ip
$dusername = "user_name"; // database user
$dpassword = "db_pass"; // database pass
$ddatabase = "db_name"; // database name


my host: trydemo.vndv.com
MySql username : trydemo_boxer12
Pass: trydemo ( its inccorect pass )
Tell me what I need to change I change and upload but it wont work
swordz
$dhost = "localhost"; //usually localhost, or ip
$dusername = "trydemo_boxer12"; // database user
$dpassword = "trydemo"; // database pass
$ddatabase = "db_name"; // database name - you need to put your database name here - you haven't mentioned it yet.

swordz
boxer12
Database name is trydemo_boxer12
What is with :
$dhost = "localhost"; //usually localhost, or ip
Do i need to wrote there http://www.trydemo.vndv.com ???
boxer12
Database name is trydemo_boxer12
What is with :
$dhost = "localhost"; //usually localhost, or ip
Do i need to wrote there http://www.trydemo.vndv.com ???

swordz
Leave that - it's correct.

The script won't work atm - vndv is down for a fsck.

swordz
boxer12
What that mean I cant upload script or if I upload it won't work swordz?
boxer12
Any way I upload script and I made MySQL base and I edit all php files in script and when I press on config.php file or some other files it show this:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /www/vndv.com/d/e/m/demotry/htdocs/config.php on line 34
Table 'demotry_bux.settings' doesn't exist


How to fix that ? How to made demotry_bux.settings ? Do I need to made it ? Swordz plz help?
boxer12
Ok I fix that I finaly made all ! Thank you very much on help Swordz!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.