phpmyadmin problem

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

phpBrandNew
Forum Commoner
Posts: 36
Joined: Thu Sep 02, 2010 12:51 am

Re: phpmyadmin problem

Post by phpBrandNew »

There is no php.ini in C:\WINDOWS.
PHP is installed in C:\Program Files\PHP5\.
php.ini is in C:\Program Files\PHP5\
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: phpmyadmin problem

Post by requinix »

That's not what the phpinfo() is saying. At best it thinks there's a C:\WINDOWS\php.ini and at worst it doesn't know about the php.ini you have in that directory.
phpBrandNew
Forum Commoner
Posts: 36
Joined: Thu Sep 02, 2010 12:51 am

Re: phpmyadmin problem

Post by phpBrandNew »

I copy php.ini into C:\WINDOWS, Apache crash after restarting it. Apache is able to restart after I delete php.ini and restart computer.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: phpmyadmin problem

Post by requinix »

Didn't notice before:
phpBrandNew wrote:PHP is installed in C:\Program Files\PHP5\.
No it isn't. The phpinfo() output says it's installed in C:\Program Files\PHP.
phpBrandNew
Forum Commoner
Posts: 36
Joined: Thu Sep 02, 2010 12:51 am

Re: phpmyadmin problem

Post by phpBrandNew »

I rename PHP5 to PHP, phpMyAdmin still gets the same error.
I cut php.ini and paste into C:\WINDOWS, Apache couldn't start.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: phpmyadmin problem

Post by requinix »

When you install software on a computer you can't just move it around later. Move it back to just "PHP". Then, if you want it at "PHP5", uninstall from the old place and reinstall in the new place.

Also: get WAMP. If you're having a hard time getting this set up then let something else do it for you.
phpBrandNew
Forum Commoner
Posts: 36
Joined: Thu Sep 02, 2010 12:51 am

Re: phpmyadmin problem

Post by phpBrandNew »

Hi,
I already have my mysql setup, I am using MySql workbench 5.2 CE.
This is my 1st lesson in login to flash with php and mysql.


My flash to a button :
on (release, keyPress "<Enter>") {
if (user != "" && pass != "") {


loadVariablesNum("http://localhost/newlogin.php", 0, "POST");
}
}

2 input textfield,
username.text
passpassword.text

My php:
<?

$user=$_POST['user'];
$pass=$_POST['pass'];

//connect to database
if ($user && $pass){
mysql_pconnect("mysql.yourhost.com","yourusername","yourpassword") or die ("didn't connect to mysql");
mysql_select_db("dvd_collection") or die ("no database");
//make query
$query = "SELECT * FROM yourtable WHERE username = '$user' AND userpassword = '$pass'";
$result = mysql_query( $query ) or die ("didn't query");

//see if there's an EXACT match
$num = mysql_num_rows( $result );
if ($num == 1){
print "status=You're in&checklog=1";
} else {
print "status=Sorry, but your user name and password did not match a user name/password combination in our database. Usernames and passwords are entered in from a different file. Thank you for visiting test login script!!&checklog=2";
}
}

?>

No result found, need help.
Post Reply