Don't know how to connect to phpMyAdmin to flex
Hello
I am new to flex and phpMyAdmin.
I have a php file named "myTest, php, have a wamp server and a flex project.
I want to connect to an application that connects to my database, checks the text of textinputs for the user and passwords and shows me alert with the text "login succeeded or failed", but every time I run this application it shows me "failed to connect". I don't know what is of couse a problem it shows any errors. Maybe you could help me? Tell me what I'm doing wrong?
(hope you understood what I want to do)
Sorry for my English...
myTest, php:
<? PHP
echo "<? XML version=\"1.0\"? " "> \n";
$hostname_conn = "localhost";
$database_conn = "test";
$username_conn = 'root ';
$password_conn = "";
$conn = mysql_connect ($hostname_conn, $username_conn, $password_conn);
If (! $conn) {}
die ("not connected:".) mysql_error());
}
$db_selected = @mysql_select_db ($database_conn, $conn);
If (! $db_selected)
{
die ("not connected:".) mysql_error());
}
$query = "UPDATE connection SET password = 'veikia' WHERE username = 'Admin'"; "
$testresult = mysql_query ($query)
$user = $_Post ('user');
$pass = $_Post ('pass');
$results = mysql_query ("SELECT * FROM connection where 1");
$loged = false;
and that ($row = mysql_fetch_assoc ($results));
{
if (strtolower ($user) == strtolower ($row ['username']) & &)
strtolower ($pass) == strtolower ($row ['password']))
{
$loged = true;
}
}
If ($loged is true)
echo "< status > true < / status >.
else
echo "< status > true < / status >.
? >
Flex application named login.mxml
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="vertical"verticalAlign ="middle"> "
< mx:Script >
<![ CDATA [ ]
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
private void logintest (): void { }
loginService.send ();
}
private void onResult(e:ResultEvent):void { }
If (e.result.status is true)
Alert.show ("login successful", "Success");
else
Alert.show ("failedl Login", "Failure");
}
]]>
< / mx:Script >
< mx:HTTPService id = "loginService" url = "D:\Flex workspace\wamp\ www\myTest.php" method = "post" result = "onResult (event)" >
< mx:request xmlns = "" >
< user > {userEdit.text} < / user >
< pass > {passEdit.text} < / pass >
< / mx:request >
< / mx:HTTPService >
< mx:Panel title = "LogIn" >
< mx:VBox >
< mx:HBox >
< text mx:Label = 'user' / >
< mx:TextInput id = 'userEdit' / >
< / mx:HBox >
< mx:HBox >
< mx:Label text = "pass" / >
< mx:TextInput id = "passEdit" / >
< / mx:HBox >
< mx:Button label = "login" click = "logintest ()" / >
< / mx:VBox >
< / mx:Panel >
< / mx:Application >
alcaponis wrote:
with this... I saw in the tutorial when you run a php file, it replaces the 'veikia' password and you can see that your php file works, but it doesn't change anything in my database...
Maybe there is something wrong with my browser or something? I have never done that before, so maybe I need to change something in Explorer? Or something?
Yes basically your old PHP file would change the user 'Admin' password "veikia" whenever he was executed. I don't really understand the point of this!
Anyway, tell me exactly what you want this program to do, and I'll try to help
Tags: Flex
Similar Questions
-
Does anyone know how after I connect to my office 2008 Mac (which will not start.) to my computer laptop (2013 Mac Air). What are the steps that I need to know to get the Desktop files is displayed on my mac air so I can copy files to your laptop, especially my Itunes folder.
Thanks Jerri
If you can't get the iMac began and ongoing implementation, you will not be able to use the target disk Mode:
https://support.Apple.com/en-us/HT201462
Then the option is to take the iMac HARD drive, install it in an enclosed, and connect the HARD drive to the MBA via the USB port. If the HARD drive is recognized, you can copy the data out of it.
Ciao.
-
I have a small home network wireless. I configured the printer today but it says I have to connect to the internet (part fax machine works). The bureau only I have, I keep out of most of the time and just use my laptop (which is for work so I can't set the printer up to now).
Is it possible to connect the printer directly to my router? They are only a few feet from one of the other; However, I have no idea how do and the instructions don't me much. Do I need a phone line? What can I use to connect the two?
Use an Ethernet cable, available in any tech store, online or even target will have them.
Plug it into the back of the printer and the router. You should be able to add the printer to your laptop. Let me know which operating system you have and I can help you.
-
I don't know how to connect as an administrator windows 7 ultimate
just bought this computer and have tried to add gadgets and it tells me that I need an administrator to do that.i can't change settings and customize my own computer.help please
Is your current account, an administrator account?
-
Can someone advise me on how get Opera met at the request of my computer to Apple TV? I have Netflix and many other sources which works very well. I can receive puts it on demand on my computer programs but I don't know how to connect to Apple TV. I'm sure it's simple, but I am at a loss. Help would be very appreciated.
You need reflect your Mac. Use Native requires a Mac OSX 2011 10.8 or later running or later version. The alternative is to use a program like Airparrot. If you have a 4th gen ATV and app is available, then there is also the option to install it directly.
-
original title: connection problem
Hello. I have windows xp and Explorer 8 - no other firewall. There are a few sites that I just can't log in, gmail and sometimes cpanel of my site. My computer says check my firewall, but I don't know how. The port 80, 443, 21 ftp https http says I have no idea what it is.
I think you may have (or get) a virus or other malware/parasites that some of you changed may be used in Internet Explorer. You should run a Malwarebytes scan on your machine: http://www.malwarebytes.org/
Reset the settings of your Lan IE:
In the menu Tools of IE, select Internet Options, then click on the 'Connections' tab and then click on the button "network settings." Deselect the options (remove all checkmarks that might be present).
Reset IE advanced settings:
While staying in Internet Options, click on the "Advanced" tab and then click on the button 'Restore advanced settings'.
John
-
I had Microsoft Updates-ITMU 23 and 12 did not update. I am 73 and not very computer. I finally (discovered by chance) at least part of the problem, is that I must have installed Explorer 9. He told me to update to a new driver/software. I tried to do it step by step and this is where I deleted the smart Web printing. On the second try to fix it, it would not update because he says, it does not support 64 bit (which I have). We assume that 32-bit. Help. I can't figure out how to get my smart web printing back. In addition, I don't know how to recover my system to an Explorer from the lowest since apparently I was 9.
Hello BarbG,
Let us know how it turns out after that Geek Squad is done with your computer. Since there are other issues past with your computer, that they could have connected HP Smart Print issues as well. However, if they get everything fixed and you continue to have problems with smart printing software HP (or any other product of the HP) do not hesitate to come back and we will help you as best we can!
Good luck!
-
Need to know how to connect to the internet, anywhere
Original title: internet connection on laptop
10 years ago, I got a laptop and was able to connect to the internet anywhere I went. I don't remember how I was able to do it without a motem
Hi Susan,.
Thanks to join Microsoft Community where you will find all necessary information about the Windows operating systems.
Want to know how to connect to the internet wherever you go.
You can use USB dongles to connect to the Internet via a wireless connection.
We need more information to help you better:
What version of OS are you using?
You can use your favorite search engine to search for USB dongles.
Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
You can also contact an Internet service provider for assistance.
I hope this helps. If you need assistance or if you have problems of Windows in the future, let us know and we would be happy to help you.
-
My Dell laptop refered me article 871122 # to fix the wifi feature. I don't know how to solve this problem. Could someone help me solve this?
Thank you and have a great day...original title: Internet connection via wireless networkHello
- What were the changes made before the issue started?
You can view these methods:
Method 1:
Please see the steps that are provided in this link:
http://support.Microsoft.com/kb/871122
Method 2:
In Windows network connection issues
-
My wireless network card is disabled, and I don't know how to activate it.
My wireless network card is disabled, and I don't know how to activate it. I have a laptop HP Pavilion Dv9000, which originally had Vista but I installed XP Professional on it. According to Wefi all I had to do is click Start and then click on connect to and right-click on wireless connection and click Activate. My problem is when I click on start... There is no connect to click the button. Anyone know where I can find my connect button? Thank you!!
Hello
Try changing your preferences in the start menu.
Click with the right button on the task bar > select Properties > start menu tab > and make sure that this Start Menu, menu classic start no is selected. Then check to connect to.
Or, go to control panel > network connections. Find your wi - fi adapter and right click, select Enable.
-
don't know how to find out the server for my email information.
I had to reinstall Windows Vista (my computer was a mess), and now I don't know how to get information on the mail server
I don't know how to find out the server information I need
to set up my email again.
Also, my pictures 'lost' since I have done this?
Hello
Contact your ISP (Internet Service Provider); They provide your broadband / dial connection.
Ask them to:
1. your username with them
2. your password with them.
3 incoming mail POP3 server.
4. the outgoing mail SMTP server
All the settings that you need to come from them, not Microsoft; and they are usually happy to help you set up your e-mail program.
You can use this guide to set up Windows Mail, too:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
A relocation normally wipes the hard clean everything, as part of the resettlement process.
Two things you can try:
1. find a windows.old folder (depends how you reinstalled Vista)
"How to restore your personal files after performing an installation of Windows Vista or Windows 7"
http://support.Microsoft.com/kb/932912
2. This program has had good results in data recovery in circumstances similar to yours.
http://www.Piriform.com/Recuva
See you soon.
-
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Less error have a playstation 3 and windows vista. I have a combination of problems aggravated by not being not very Internet / computer savvy. The issue is around file sharing and lower my firewall. I don't know how to get my playstation 3 appears on my network and I don't know how to enable file sharing. at one point, the RAD icon appeared and without changing anything, he disappeared. I can follow the simple instructions but my absence I have a playstation 3 and windows vista. I have a combination of problems aggravated by not being not very Internet / computer savvy. The issue is around file sharing and lower my firewall. I don't know how to get my playstation 3 appears on my network and I don't know how to enable file sharing. at one point, the RAD icon appeared and without changing anything, he disappeared. I can follow simple instructions, but my lack of expertise is really crippling my ability to do for himself. I tried to lower my firewall (not sure if I did) but I need to be walked up to the baby step by baby stepof expertise is really crippling my ability to do for himself. I tried to lower my firewall (not sure if I did) but I need to be crossed self-study baby baby
- Recent changes to your computer
- What you have already tried to solve the problem
Google comes up with these:
http://www.ehow.com/how_5074747_network-PlayStation-computer.html
http://www.ehow.com/how_2216306_add-PlayStation-3-LAN.html
http://www.Google.com/search?q=network+a+PlayStation+and+a+home+computer&start=10&hl=en&SA=N&RLS=com.Microsoft: en - us & prmd = ivns & to source = univ & to TBS = vid:1 & to tbo = u & ei = PrtKTanFLMmCgAfjscnVDw & to oi = video_result_group & to ct = title & to resnum = 10 & ved = 0CGoQqwQwCTgK
http://www.absolute-PlayStation.com/PlayStation-Network/expert-PlayStation-3-hardware-accessory-help-PlayStation3-PS3-console/10631-PlayStation-3-wireless-connection-setup.html Brian Tillman [MVP-Outlook]
--------------------------------
https://MVP.support.Microsoft.com/profile/Brian.Tillman
If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer. -
Telstra new 4G Dongle Sierra - worked OK with 3G but don't know how to run a new.
My connection to the 3G network is not available on my ASUS Windows 7 Net book now that I changed to a new 4G Telstra Sierra Wireless dongle and I don't know how to operate. On the dongle, a blue light is constantly on the other flashes blue. Can someone help me with this please.
George.[Moved from comments]Hello
1. what exactly happens when you try to connect?
2. you get any error message?
Method 1: I suggest you to download and install the software and check if it helps.
http://www.Telstra.com.au/business-enterprise/help-support/software-downloads/#
Method 2: Wi - Fi and in Windows network connection issues:
http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-WindowsFor all windows questions do not hesitate to contact us and we will be happy to help you.
-
I have already buy the status of cloud, but the program is until trial. I don't know how I can do?
Try to connect and then reconnect again.
Sign out, sign in | Creative office cloud app
http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html
FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?
-
I already buy Photoshop CC over the phone, but I don't know how to install it. What can I do?
Hello
You can access the following link and download/install Adobe Creative Cloud App. Once installed, connect with the Adobe ID (email) according to which the CC members was bought and go to the tab "' Apps'" and start the installation of Photoshop CC.
Download Adobe Creative cloud apps | Free trial of Adobe Creative Cloud
Thank you.
Maybe you are looking for
-
Below is a screenshot of Photos with photo with the name IMG_1758.JPG. On top of the image is my Finder window you are looking for this image under "This Mac" with no results. Below the resulting from the spotlight that does not show the result. I
-
Example one an entry of my analog PXI-7841R DAQ
I want to sample an analog input from my PXI-7841R AI0 to. The issue I'm having is when I drag the entry of my project in my VI, the element is defined as a signed integer value, and I can't change it to a floating/double. Why is this? I am experi
-
Vista will install my game, but does not open it
I try to install Superpower 2 and it gives me a message of compatibility that this game can only runs under windows ME / XP 2003 server. Is there something else that you try to run the game as administrator, because it does not work
-
Ordinal 423 could not be located in the dynamic link library urlmon.dll
After the download of Internet Explorer 8 and computer restart, I get the error message that the ordinal 423 could not be located in the dynamic link library urlmon.dll. I have nothing, no start menu, icons whatever it is. even when you start in safe
-
My premium Z5 hang and become inadmissible
My phone freezes up all of a sudden, warm up and all the buttons and screens are block. Is it possible for me to reboot the phone? For my old phones, when that happens. I would normally connect the battery but Z5 premium does not allow that at all. N