There is no php.ini in C:\WINDOWS.
PHP is installed in C:\Program Files\PHP5\.
php.ini is in C:\Program Files\PHP5\
phpmyadmin problem
Moderator: General Moderators
Re: phpmyadmin problem
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
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.
Re: phpmyadmin problem
Didn't notice before:
No it isn't. The phpinfo() output says it's installed in C:\Program Files\PHP.phpBrandNew wrote:PHP is installed in C:\Program Files\PHP5\.
-
phpBrandNew
- Forum Commoner
- Posts: 36
- Joined: Thu Sep 02, 2010 12:51 am
Re: phpmyadmin problem
I rename PHP5 to PHP, phpMyAdmin still gets the same error.
I cut php.ini and paste into C:\WINDOWS, Apache couldn't start.
I cut php.ini and paste into C:\WINDOWS, Apache couldn't start.
Re: phpmyadmin problem
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.
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
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.
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.