Jump to content

I was hoping to find some help with editing a script...


kleddon

Recommended Posts

I have an emailer script that I had boughten but I am not sure how to edit it..

 

Can some else help me.?

 

It is a small scripts and the other scripts I have edited in the past I was given unstructions on and I am a little confused.

 

I have attached the scripts I am looking to edit...

 

Any help would be greatly appreciated...

 

[attachment deleted by admin]

Sorry guys I do not think that I was clear enough on my post

 

I am not sure what to replace with my mysql information

 

Mysqp information is as follows:

 

host: localhost

database: kirkled1_gmailer

user: kirkled1_kleddon

PW: caleb123

If ($action=="mysql"){
    #Grab email addresses from MySQL
    include "./mysql.info.php";
    if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){

 

It would appear that your settings should probably be set in the "mysql.info.php" file under the names $sqlhost, $sqllogin, $sqlpass and $sqldb. It also appears that to use MySQL $action needs to be set to "mysql" at some point, I don't see it receiving a value at all in that script.

After reading though the script several times I got the impression that I needed to create a new file for the script to call up. I looked at another email script that I had loaded into my server and it was of course the config.php file that had all the sql server data. So, what I have done is I did create a new php file with the sql data and named it mysql.info.php.

 

I have uploaded the file and later today I am going to test out the script. The other script is a great script so if this was just for my use I would not worry about it since the script that i had mentioned works great on my server. I want to sell this new script as I have resale rights for it. But the working script I don't have resale rights to...

 

I just wanted to make sure that it works before I try to sell it...

 

thanks a bunch for your reply....

 

Kirk

You're selling an email script? I'm not sure why, there is a bunch of free email scripts out there. Unless yours does something that others do not, then sure go for it. Also, you need the MySQL database to be in a configuration file that would be pulled up on the original script.

 

Read this below,

 

<?php
include("config.php");
?>

 

You could always try require() too, but that returns fatal errors if not done right, which are ugly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.