AS2 - problem with inserting of partition/name of the database/mysql
Hello
First of all... Sorry that I havn't put the ACE in a box, do not know how to do it on this forum!
Okay, so here's my problem:
I want to submit my score and the name in my database.
This is the script I've tried Flash.
Stop();
create objects loadVars
playerx = new LoadVars();
playerRegistered = new LoadVars();
playerRegistered.onLoad = showResult;
create the button handler code to call the function that sends & load php
_root.submitt.onRelease = submitScore;
function submitScore (): Void {}
playerx. Name = name_txt.text;
playerx.score = score_txt.text;
playerx.sendAndLoad ("register.php", playerRegistered);
}
This is the PHP script:
<? PHP
$connect = mysql_connect('x.com.mysql','x','password');
@mysql_select_db ('x', $connect);
$sql = "INSERT INTO high_scores_avoidthecars (name, score) VALUES ("'. ")" $_POST ['name']. '"," '. $_POST ['score'].'") ';"
? >
Nothing is posted to the database, no errors etc... any ideas?
If you went thru the link I provided you should see where you need to change the code that you did to get the Flash to work code. Here is a link to an example of work that takes into account the second part of the code in this link that involves sending data (from line 28) with your textfields, etc.
http://www.nedwebs.com/Flash/register.html
The main problem with your AS2 code involves the following line...
playerx.sendAndLoad ("register.php");
It should be...
playerx.sendAndLoad ("register.php", playerx. 'POST');
Here's the code I used for the example files, I did...
AS2 CODE
playerx = new LoadVars();
_root.submitt.onRelease = submitScore;
function submitScore (): Void {}
Response.Text = "clicked\n";
playerx. Name = name_txt.text;
playerx.score = score_txt.text;
playerx.sendAndLoad ("register.php", playerx, "POST");
}
playerx.onLoad = onLoadCallBack;
function onLoadCallBack (success)
{
Response.Text += "onLoad Processed\n";
{if (success)}
Response.Text += "Success\n;
Response.Text += this.lVar1 + "\n";
Response.Text += this.lVar2;
} else {}
Response.Text = "load error".
}
}
PHP CODE
<>
read the variables
$var1 = $_POST ['name'];
$var2 = $_POST ['mark'];
Send variables
echo "& lVar1 = $var1 return &";.
echo "& lVar2 = $var2 returned as well &";.
?>
Tags: Adobe Animate
Similar Questions
-
Problem with insertion of Hebrew language in the database.
Hello
I have improved my application Access Layer of NHibernate 1.2 to NHibernate 3.0 data.
I have configured the database using ODP.net 11 g on upgradation.
On insertion, it is not to throw any exception, but the Hebrew data goes like '?
Can I get any pointer that why it's happening now.
Here is my setup of NHibernate.
< db:provider id = "AMACDbProvider".
Provider = "OracleODP - 2.0".
connectionString = "Data Source = EP;" User ID = AUSER; Password = AER1234; "/ >
<! - for creating factory objects - >
< object id = "NHibernateSessionFactory" type = "Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate30" >
< property name = "Dbprovider" ref = "AMACDbProvider" / >
< property name = "MappingAssemblies" >
< list >
< value > CacheMappings < / value >
< / list >
< / property >
< property name = "HibernateProperties" >
< dictionary >
< key = "hibernate.connection.provider entry" value ="NHibernate.Connection.DriverConnectionProvider" > < / entry > "
< enter key = "dialect" value = "NHibernate.Dialect.Oracle10gDialect" > < / entry >
< key = "connection.driver_class entry" value ="NHibernate.Driver.OracleDataClientDriver" > < / entry > "
< key = "enter proxyfactory.factory_class"
value = "NHibernate.bytecode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle" / > "
< Enter key = "hbm2ddl.keywords" value = "none" / > "
< / dictionary >
< / property >
< / object >Windows 1255 codepage is supported by the Hebrew alphabet. (ISO 8859-8 it is.)
You will find the names of Oracle to support these character sets, if you search for "Latin/Hebrew" in table A-4 (recommended database character sets):
http://download.Oracle.com/docs/CD/E11882_01/server.112/e10729/applocaledata.htm#i635016If language letters provided by only Win - 1255 (IW8MSWIN1255) does not satisfy your app needs, you should consider migrating to the universal language support which is Unicode. Game for Unicode characters in Oracle database are named AL32UTF8.
http://download.Oracle.com/docs/CD/E11882_01/server.112/e10729/ch6unicode.htm
http://download.Oracle.com/docs/CD/E11882_01/server.112/e10729/ch11charsetmig.htmPublished by: orafad on August 1, 2011 20:24
-
Problem with display of contacts'names in the Vibe Lenovo X 2 - CU
Resolved, I found the option here:
Contacts - menu of the terroir - more features and settings - options - corresponding to the digits of the number - 7 digits display
Works fine now,
Kind regards
-
Question
I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, pleaseTo help other users find solutions, please come back to this Thread and connect you to the
Forum with your user name and password:Click on 'resolved' beside the answer above that BETTER resolved your issue
DO NOT CLICK on 'Solved It' next to this answer
-
I don't know why I had problems with FF 3.6.16 and the last update for thunderbird
I'm at the Canada and for some reason, downloads for the two FF 3.6.12 and Thunderbird was last updated was the BritishVersions is why I UK search engines, not the US versions is maybe why I'm struggling with my email and addons. The other 2 computers in my house is the American version.
But there is always something a bit screwey with 3.6.12 that some addons do not work correctly on other computers. Can you please change the software for the US version please? Thank you
I deleted the software twice already. before realizing I was downloading the British version... same problem with my Thunderbird cannot connect to the Internet service provider even if everything is done correctly! Help!
You can find the version en here:
-
I have printer color laserjet 5550N having problem with error 59.C0. What is the cause of the error?
Thanks Ray,
Hello... How can I get the manual download for all the error on any printer laser color spray top of HP range.
Kind regards
Monday Nwankwo
-
Hello, after 3 years of use of this helmet and having no problems with it, now I can hear the sound in the right ear... what should I do? Help, I don't want to say 'goodbye' to it already... Thank you
It could be the plug on the computer that is the cause of the problem. Try another helmet or a pair of speakers in it.
If you hear only on one side, who will tell you that is the question.
If you hear from both sides, you must obtain a new helmet
Software will fix either of the foregoing...
-
Problem with anchor points, shifts vertically in the browser view. What is the problem?
have you allowed for the height of your head? I had to put my anchor above my content by the height of the header, otherwise, the upper part of my content was hidden behind the header
-
Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put the password and "POOF" my signature would be there. With this new version, it won't do that or give me the option. The online help is useless. I need to explain to me how connect you as I used too?
I assumed that you had a digital signature created in your player application of old and whenever you use to fill out a pdf with a signature field signed you it. But in order to draw and then sign you must use Acrobat Pro DC no DC drive.
Thank you
Abhishek
-
I have a problem with a card being inadmissible for the zoom on a phone.
I have a problem with a card being inadmissible for the zoom on a phone. The Web site has been formatted for the phone using Muse. The plan should be saved in a way in Photoshop or y at - it a setting in the Muse who can fix this?
Please provide more details, as if the card is integrated an image or a real map generated by widget.
The generated plan must zoom in/out.
Thank you
Sanjit
-
I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please notify.
reset your preferences-
Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
Adobe media encoder: https://forums.adobe.com/thread/1713540
Legacy: http://helpx.adobe.com/after-effects/using/preferences.html
Bridge: https://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html
Dreamweaver: https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
Flash: http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
Illustrator: http://helpx.adobe.com/illustrator/using/setting-preferences.html
InDesign: https://forums.adobe.com/thread/526990
Lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
Muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
Photoshop: https://forums.adobe.com/thread/375776
Photoshop elements: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
elements of first: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
First pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html
-
After Effects customize template with web browser? (name of the layer by giving a variable name)?
so many web sites provideing this service... .online at the intro
Please help me what plugins using. How to set up this kind of service?
I think that we should move to an AE forum...
-
Inserting a new record in the database using a form empty ADF
Hello
I'm trying to insert a new record into the database using a form.
I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.
Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.
When I connect to the app and go to the page used to create, I have 2 problems:
1 - the form is filled with the logged in user info.
2. If I try to change the news and validation, the user info is changed in the database and no new record is created.
It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
NB: the employee id is not part of the form, I want to be filled using the sequence.
Kind regards
MBUser, please tell us your jdev version!
To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.
Timo
-
Unable to connect to sys giving the name of the database
Hi all
I can't connect to the sys user when you give the name of the database, but with no database name I can connect.
[oracle@ccoshs02xvdbs04 path] $ sqlplus sys/passwdA123system@mps01dev as sysdba
SQL * more: Production release 11.2.0.1.0 on Tue Mar 1 10:38:36 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01017: name of user and password invalid. connection refused
Enter the user name:
ERROR:
ORA-01017: name of user and password invalid. connection refused
Enter the user name:
ERROR:
ORA-01017: name of user and password invalid. connection refused
SP2-0157: unable to connect to ORACLE after 3 attempts, leaving SQL * more
[oracle@ccoshs02xvdbs04 path] $ sqlplus sys/passwdA123system as sysdba
SQL * more: Production release 11.2.0.1.0 on Tue Mar 1 10:40:06 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
SQL > show parameter instance
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
whole active_instance_count
cluster_database_instances integer 1
instance_groups string
instance_name string mps01dev
instance_number integer 0
instance_type string RDBMS
open_links_per_instance integer 4
parallel_instance_group string
parallel_server_instances integer 1Purchase below and post result here
sqlplus sys/passwdA123system as sysdba alter user sys identified by passwdA123system conn sys/ passwdA123@mps01dev as sysdba
In this case if you can not connect then your entry mps01dev actually made another service.
-
What is the sql SELECT statement to list all service names in the database?
What is the sql SELECT statement to list all service names in the database?
I tried
SELECT name FROM dba_services
But a long with valid service, he list also some other documents that are not the names of services.Hello
You can try this query:
select name, value from v$parameter where name = 'service_names';
Hope this helps.
Best regards
Jean Valentine
Maybe you are looking for
-
My RSS reader captures all of my favorites
My RSS reader (in a nutshell) does not pick up all my feeds. specifically, it does not pick up those with dotted square instead of logos in the label box. that means these squares, and how repair my drive to pick up? Thank you. Roger Blair
-
iaStor.sys BSOD on my new satellite U series
Hello. All of a sudden without any update, or a new program installation, my laptop start BSOD (BSOD iaStor.sys & iaStorA.sys) and restart...* Both on safe mode and normal mode.* I try the last known good configuration, but nothing.* I also tried to
-
Re: How to enable/disable the module BT on Satellite A300?
I have Toshiba Satellite A300 - 1 MM.When I try to connect to my Wi - Fi network NOW I have to ACTIVATE the switch, on the front of my laptop and all works well, but peripheral, Bluetooth is enabled. I would like to disable the Bluetooth and works wi
-
I just received the price for this filter to the United Kingdom as GBP 585 + taxes. How does this compare to other countries?
-
HP ENVY m6-k010dx fn key locked
I have a HP Envy m6-k010dx and it seems that the fn button is locked. Whenever I hit the volume buttons or brightness that it's as if I was now pressed the key fn as well. Does anyone know how to fix this?