Dynadot โ€” .com Registration $8.99

I need VERY simple PHP/MySQL help - Please

Spaceship Spaceship
Watch

Kamikaze

lan.guag.esEstablished Member
Impact
56
Aloha :hehe:

Listen up guys,

I wanted to make a site that sends anonymous emails (fake emails...).
I've got the fake-mailer script and edited all the files I needed (I think so... LOL).

I'm trying to upload the SQL I've cut out of the txt that's added to the zip file...
I've cutted out this :

CREATE TABLE `messages` (
`message_id` int(16) NOT NULL auto_increment,
`message_to` tinytext NOT NULL,
`message_from` tinytext NOT NULL,
`message_sender` tinytext NOT NULL,
`message_subject` text NOT NULL,
`message_body` longtext NOT NULL,
`message_sender_ip` varchar(16) NOT NULL default '',
`message_time` int(10) NOT NULL default '0',
PRIMARY KEY (`message_id`)
) ENGINE=MyISAM;

and saved it as abcd.SQL in notepad.
I've tried to import the file in phpmyadmin, and I'm getting a message telling me that 0 lines were added.
Why ?!
Secondly, I've edited the inc.definitions.php file while leaving the "mysql_hostname" as is (not edited it, like "user", "password" and "database name"...) -

Is this OK to leave it like this or should I enter something in there ?!?

PM if you need the url :)

I hope I'll be able to put this site up asap :'(
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
DoubleClick said:
I've tried to import the file in phpmyadmin, and I'm getting a message telling me that 0 lines were added.
Why ?!
That is perfectly normal, you have created an empty table (structure only). Your table will be filled by your scripts presumably
DoubleClick said:
Secondly, I've edited the inc.definitions.php file while leaving the "mysql_hostname" as is (not edited it, like "user", "password" and "database name"...) -
You should ask your host for the following information:
user name, database name, password and edit the configuration file accordingly. Host name is most often 'localhost'
 
0
•••
I'm guessing you're referring to the script which can be got freely at: http://www.namepros.com/free-resources/359407-free-normally-3-script-packs.html

PHP:
	define('mysql_hostname', 'localhost'); // This will normally stay the same, not always
	define('mysql_username', ''); // Create a database using your Control Panel, this will be the username
	define('mysql_password', ''); // And the password
	define('mysql_database', ''); // And the database name
 
0
•••
Daniel said:
I'm guessing you're referring to the script which can be got freely at: http://www.namepros.com/free-resources/359407-free-normally-3-script-packs.html

PHP:
	define('mysql_hostname', 'localhost'); // This will normally stay the same, not always
	define('mysql_username', ''); // Create a database using your Control Panel, this will be the username
	define('mysql_password', ''); // And the password
	define('mysql_database', ''); // And the database name

Yes, that's the one...
What should I do when it's written "Execute this in phpMyAdmin" in the txt file, mentioning this :

CREATE TABLE `messages` (
`message_id` int(16) NOT NULL auto_increment,
`message_to` tinytext NOT NULL,
`message_from` tinytext NOT NULL,
`message_sender` tinytext NOT NULL,
`message_subject` text NOT NULL,
`message_body` longtext NOT NULL,
`message_sender_ip` varchar(16) NOT NULL default '',
`message_time` int(10) NOT NULL default '0',
PRIMARY KEY (`message_id`)
) ENGINE=MyISAM;

I've copied and pasted it in a new notepad file and saved it as "abcd.sql".
While trying to import it, I'm getting the mentioned error... ("0 lines added")

sdsinc said:
That is perfectly normal, you have created an empty table (structure only). Your table will be filled by your scripts presumably
You should ask your host for the following information:
user name, database name, password and edit the configuration file accordingly. Host name is most often 'localhost'

I have the access to the servers I'm on...
I've opened a new database and then a user, then matched them both together (I've done this action before, never had problems like this...).
In the "inc.definitions.php" file, I have those :

define('mysql_hostname', 'localhost');
define('mysql_username', '');
define('mysql_password', '');
define('mysql_database', '');

the 3 LAST lines were edited with my info.
The FIRST line ("define('mysql_hostname', 'localhost')") - was left as-is...
 
0
•••
Just open MySQL, select your database on the side so you can see the tables there, then click SQL and just paste it in. Should be fine.
 
0
•••
Daniel said:
Just open MySQL, select your database on the side so you can see the tables there, then click SQL and just paste it in. Should be fine.

I found the place to paste the code, and pressed GO at the end.
Then recieved this error message :

ERROR
SQL query:

CREATE TABLE `messages` (
`message_id` int(16) NOT NULL auto_increment,
`message_to` tinytext NOT NULL,
`message_from` tinytext NOT NULL,
`message_sender` tinytext NOT NULL,
`message_subject` text NOT NULL,
`message_body` longtext NOT NULL,
`message_sender_ip` varchar(16) NOT NULL default '',
`message_time` int(10) NOT NULL default '0',
PRIMARY KEY (`message_id`)
) ENGINE=MyISAM

MySQL said: [?]
#1050 - Table 'messages' already exists

I've sent you the url so you'll be able to see what visitors recieves at the moment.

:)
 
0
•••
Code:
Table 'messages' already exists

Looks like its already been created. :p
 
0
•••
Daniel said:
Code:
Table 'messages' already exists

Looks like its already been created. :p

naaa :(

AW, PM sent. 10x !
 
0
•••
Sorry about slowness of reply. Done.
 
0
•••
Daniel said:
Sorry about slowness of reply. Done.

NP$ sent. from the bottom of my heart. thanks !!! :)
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back