Page 2 of 2

Re: phpmyadmin problem

Posted: Fri May 17, 2013 1:58 am
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\

Re: phpmyadmin problem

Posted: Fri May 17, 2013 3:10 am
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.

Re: phpmyadmin problem

Posted: Fri May 17, 2013 7:04 am
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.

Re: phpmyadmin problem

Posted: Fri May 17, 2013 11:20 am
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.

Re: phpmyadmin problem

Posted: Fri May 17, 2013 9:03 pm
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.

Re: phpmyadmin problem

Posted: Fri May 17, 2013 11:03 pm
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.

Re: phpmyadmin problem

Posted: Mon May 20, 2013 11:54 pm
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.