With the help of creator of the Recordset object to connect PHP to the ODBC connection
Alright. I have worked with ASP for a long time and with the tools built into Dreamweaver 8 (and earlier versions), it is easy to connect my ASP pages to an ODBC connection to create sets of records and the execution of orders. But I finally accepted the fact that I need to learn to develop in PHP. I've got PHP running on my computer and I am able to put a code ODBC data source connections but I'm curious to know how to get the Recordset creation wizard and the command Wizard to connect to anything but a mySQL table.And for those of you who will say I spent my data in mySQL, it is simply not an option.
Thanks in advance for any help you can provide.
derfiticulum wrote:
> Alright. I have worked with ASP for a long time and with built-in tools
> in Dreamweaver 8 (and earlier versions), it is simple to connect my ASP pages.
> for an ODBC connection to create sets of records and the execution of orders. But I did not
> finally accepted the fact that I need to learn to develop in PHP. I've got PHP
> running on my computer and I am able to code an ODBC data connections
> source, but I'm curious to know how to get the game of records and the order Wizard
> Creation wizard to connect to all but one table mySQL.
>
> And for those of you who will tell me to just my data to mySQL,.
> is not an option.
Dreamweaver built in PHP server model is not designed to connect to any other database that MySQL, though I'm afraid that the answer is to convert to MySQL or hand code all of your database interaction, that is you will not be able to use the Dreamweaver recordsets to connect to MySQL (and therefore will not get data bindings or the other). I did not at least at any time recently, so cannot provide specific advice on that, except maybe to look for PHP ADODB.
If you use access as long as your database, then perhaps this research can help with a conversion if ever you don't want to go this way:
http://www.Google.com/search?hl=en&q=convert+access+to+MySQL
--
Danilo Micen
| http://blog.Extensioneering.com/
| Extensioneer WebAssist
| Adobe Community Expert
Tags: Dreamweaver
Similar Questions
-
Problem with the named instance of SQL Server using DG4ODBC
I am running DG4ODBC on a computer LINUX 64-bit with the Microsoft SQL Server driver is installed. I tested successfully with an instance of SQL Server that is not named (GENERALI_DSN). The named instance gives the following when trying to query:
ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
[unixODBC] [Microsoft] [SQL Server Native Client 11.0] Connection timeout expired {HYT00} [unixODBC] [Microsoft] [SQL Server Native Client 11.0] SQL Server Network Interfaces: Error Search Server/Instance specified [xFFFFFFFF]. {NativeErr 08001, = - 1} [unixODBC] [Microsoft] [SQL Server Native Client 11.0] A network-related or instance-specific error all by establishing a connection to SQL Server. Server is not found or is not accessible. Check if the instance name is correct and if SQL Server is configured to allow remote connections. For more information, see SQL Server Books Online. {NativeErr 08001, = - 1}
ORA-02063: preceding 2 lines of DEVMISC
ODBC.ini
[GENERALI_DSN]
Driver = SQL Server Native Client 11.0
Server = CLTDMJCWBYZ.eu.scor.local
User = everest
Password = everest
Database = Everest_Generali[DEVMISC_DSN]
Driver = SQL Server Native Client 11.0
Server = [USVCLTDEVSQL02\DEVMISC]
User = link_user
Password = password1
Database = s/ninitDG4ODBC2.ora
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = DEVMISC_DSN
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so#
# ODBC specific environment variables
#
Set ODBCINI=/home/oracle/.odbc.iniListener.ora
SID_LIST_LISTENER_GW =
(SID_LIST =
(SID_DESC =
(SID_NAME = DG4ODBC)
(ORACLE_HOME=/home/oracle/product/11.2.0)
(ENV=LD_LIBRARY_PATH=/usr/lib64:/home/oracle/product/11.2.0/lib:/opt/micro
Soft/SQLNCLI/lib)
(PROGRAM = dg4odbc)
)
(SID_DESC =
(SID_NAME = DG4ODBC2)
(ORACLE_HOME=/home/oracle/product/11.2.0)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/home/oracle/product/11.2.0/lib:/opt/micr
OSoft/SQLNCLI/lib)
(PROGRAM = dg4odbc)
)
)LISTENER_GW =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = usvcltprdoragw) (PORT = 1521))
)
)tnsnames.ora
DG4ODBC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=usvcltprdoragw) (PORT = 1521))
(CONNECT_DATA = (SID = DG4ODBC))
(HS = OK)
)DG4ODBC2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=usvcltprdoragw) (PORT = 1521))
(CONNECT_DATA = (SID = DG4ODBC2))
(HS = OK)
)I can't understand why the named instance is not working but the other is. Any help would be greatly appreciated!
Have you checked with the ODBC test utility isql (it is installed by default when you install the unixODBC Driver Manager) If your ODBC driver can connect at all to this named instance? I doubt it will work either as there was that a blog has commented by MS engineer:
which States that the instance named connections are not supported using this driver.
-Klaus
-
Suspected that the security fix for Windows Server 2008 R2 that affect the ODBC connection.
I use Windows Server 2008 R2 and have been able to generate the crystal report connection automatically through the (System DSN) ODBC for MS SQL Server 2008 R2.
When I perform the security updates below, the crystal report would not be able to generate automatically.KB2641653KB2667402KB2665364KB2621440When I tried to manually generate the crystal report, it prompted me the user DSN instead of the system DSN which I was their use without problems so far.Therefore, I created the user and system DSN in the ODBC DSN and so able to invite me for connection (System dsn) but not with the ODBC connection id I created.Everyone has experienced problems connecting to ODBC after this hotfix was updated?Thank you.Hello
Because you are using a Windows Server, this would be addressed at the address provided below on the Microsoft TechNet Forums
You can follow the link to your question:
TechNet - Windows Server Forums -
Equium A200-1V0 - need help with the installation of the recovery system
I WANT TO DO A FACTORY RESTORE, BUT CAN NOT FIND MY DISK AND WHEN I PRESS ON 0 AT START UP IT ME GIVES THE OPPORTUNITY TO RESTORE BUT ONLY WITH THE DRIVE AND I CAN FIND THE PROGRAM ON THE LAPTOP TO CREATE ANOTHER DISC! ANY HELP ON HOW I CAN RESTORE THE LAPTOP WOULD BE GREAT
Thank you!
If I m well to remember this old book was offered with Vista and recovery image was recorded on the second partition of HARD drive in the folder called HDDRecovery.
This file is always available?
Original recovery disk can be created if the laptop to factory settings, pre-installed Toshiba disk creator tool and recovery recovery image stored on the HARD disk.Of course, I don't know what it looks like with all this, but you can try to find this Toshiba tool and check if the creation of recovery disks is possible. If this isn't the case, then you have a problem.
In General original recovery disk can be ordered on https://backupmedia.toshiba.eu/landing.aspx but I don't know if you can order it for this older model laptop. Check it out.
-
Satellite U400 cannot create DVDs of recovery with the recovery disk creator
Hello
I have a Satellite U400 (a few years), and I never created the recovery DVDs.
Now I want to do, but for some reason, when I run creator of Toshiba Recovery disk, nothing happens...
The partition containing the files of recovery is there, as well as the folder HDDRecovery. I have add a few files on this partition, this could be the problem?Thanks for your help.
> I have some files on this partition, this could be the problem?
N ° if you didn t change the partition structure should not be the problem.It is: does this Toshiba recovery disc creator market or not? If you can not star this tool has nothing to do with the recovery files.
You will find this file - C:\Program Toshiba Toshiba Recovery Disc Creator\TRORDCLauncher.exe? -
Help with the session variable PHP CS5.5 - Please
Hi all
I am needing a little help with the help of a session variable, and I hope someone can point me in the right direction.
I created a PHP page that uses the Dreamweaver 'User authentication' feature and the basics of this works very well, to direct a user to the correct page depending on whether they are or are not a valid user. I want to customize the page 'user valid' with people, user name entered in the authentication of the user table... a seemingly simple task using a session variable, but I just seem not to be able to make it work!
The generated code for the AU on page 1 is the following:
<? PHP
Validate request to connect to this site.
If (! isset {})
session_start();
}
$loginFormAction = $_SERVER ['PHP_SELF'];
If (isset($_GET['accesscheck'])) {}
$_SESSION ['PrevUrl'] = $_GET ['accesscheck"];
}
If (isset($_POST['txtfirst_name'])) {}
$loginUsername = $_POST ['txtfirst_name'];
$password = $_POST ['txtsurname'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "member_update.php";
$MM_redirectLoginFailed = 'login.php ';
$MM_redirecttoReferrer = false;
@mysql_select_db ($database_panto, $panto);
$LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",
GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));
$LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());
$loginFoundUser = mysql_num_rows ($LoginRS);
If {($loginFoundUser)
$loginStrGroup = "";
If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}
Declare two session variables and assign them
$_SESSION ['MM_Username'] = $loginUsername;
$_SESSION ["MM_UserGroup"] = $loginStrGroup;
If (isset($_SESSION['PrevUrl']) & & false) {}
$MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];
}
Header ("Location:".) $MM_redirectLoginSuccess);
}
else {}
Header ("Location:".) $MM_redirectLoginFailed);
}
}
? >
First of all, the text highlighted in red above seems to be setting the session variable that I need. Is this correct?
If so, what is the code that I need to put on page 2 to use this session variable? or
I have to do something else on the page 1 to correctly assign the session variable?
Would be very grateful for your expertise
Mark
It seems that you put the columns incorrectly in the user authentication server behavior. This is the SQL query that checks the credentials of the user:
$LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",
GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));
You are looking for first name and last name, while you should look for the user name and password of the user.
$_SESSION ['MM_Username"] is a session variable that stores the login name of the user. To use it in a page, all that is needed is the page start with session_start(). You can then echo the value to display.
If you want to display the person's true name, you must create a recordset in the second page, use of $_SESSION ['MM_Username'] to search for the first name and the patronymic. Alternatively, you can change the code like this (I copied only part of it):
$LoginRS__query = sprintf ("SELECT firstname, surname OF web_access WHERE firstname = %s AND password is %s",
GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));
$LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());
$loginFoundUser = mysql_num_rows ($LoginRS);
If {($loginFoundUser)
$loginStrGroup = "";
$row = mysql_fetch_assoc ($LoginRS);
$_SESSION ['full_name'] = $row ["FirstName"]. ' ' . $row ['name'];
If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}
Declare two session variables and assign them
$_SESSION ['MM_Username"] = $loginUsername;
$_SESSION ["MM_UserGroup"] = $loginStrGroup;
You can then use $_SESSION ['full_name'] in a page which begins with session_start().
-
Passing the user name to a recordset with the login page
Hello
I help develop a page for one of our courses at our school. Is it possible that when you create a login form and authenticate on a new page that the user name also get sent to a recordset so that it can be used to fill hidden fields, to other forms on the new page?
Yes. If you use the built in the behavior of connection DW, DW will put the user name in a session variable. Look carefully in the login code to see what we call this variable. If you use ASP this session variable is called MM_Username. In PHP, there is an equivalent, but I don't remember now how it's called. If the page with the recordset is to display only the data that user, filter the recordset on the username column by using the Session variable setting and enter the name of the session variable in the text box.
-
Need help with the update server behaviors and deleting records
I am 'trying' to use the update and delete record server behaviors and I can't get the redirection page to set up correctly. What I'm trying to do, is to have the redirection came up with the right records depending on the CompId page. It seems that it is taking the CompId and agreementId (which are my unique ID) and use them in the url of the redirection page. Also, it updates the table. Here is the url that appears after I have send the update:
http://localhost:8888/dotweb/maintenance/agreement_home.php?CompId= & agreementId = 7
Here is the code for the update page:
Pending patent, trade mark, Tradesecret and straightened to copy recordedCopyright KML designs 2009Can someone tell me why it would show the CompId and agreementId when everything I asked the CompId? Thanks for your help. Just in case, I enclose you an html version of this file. It must be a php file, but is not one of the allowed file types.
CompId is not filled in the URL because you try to use the result of the rsAgree recordset object until the result of the recordset is created. However, you pass the CompId value via array $_POST as a hidden field.
Change this line (52):
$updateGoTo = "agreement_home.php?CompId=" . $row_rsAgree['CompId'] . "";
to do this:
$updateGoTo = "agreement_home.php?CompId=" . $_POST['CompId'];
-
With the help of Control Source of Robo - project record
There are two writers working on an HTML project, both using Source control explore 3.8 with RoboHelp 6. I was the creator of the project and added to Source code control.
When another writer click on the button "save all", it takes 20-30 minutes until registration ends (when the hourglass disappears), allowing him to work again in the project.
I have no problem with the backup. The Source code control database is on a separate server from one of our machines.
We are new to this workflow, so it could very well be something done out of ignorance, but mine works fine and I installed the software on the other machine and has helped put in place under Version control.
In the Task Manager CPU usage is up with the RoboHTML process using about 95 percent. I don't see anything different in his installation/configuration that should cause this. All suggestions, ideas, would be most appreciated.A good starting point would be to have your colleague to rebuild his CPD record. (In this order: make a backup copy of the project, check all of the files, close the project, delete the PCD file, and then reopen the project.)
RoboHelp will rebuild the cpd file when it opens the project. Depending on the size of the project, it can go fast (almost imperceptible) to VERY slow (hours). Spin for as long as it takes this time - the following instances of the opening of the project should be normal.
HTH,
G -
Although im workin on the PHP platform, I'm not a PHP programmer.
Could u please help me integrating the stuff of session through Dreamweaver. In fact, my site requires the following:
A registered user connections and it is directed to its account page, where he can change his billing address, shiiping, email address, password, etc...
When connections that he he has to see his account information, rather than others, so my problem its when it inserts its billing address for the first time only the billing information becomes inserted not the user_id.
Tables used to store the billing address is ORDERS and store passsword and user e-mail its USERS.
ORDERS table contains a field called user_id and USERS table also contain a domain name called user_id. Actuall user_id is present in the USERS table and I need the corresponding user_id to get inserted into the ORDERS table. Please help me with this problem.prashi123 wrote:
> A registered user connections and it is directed to the account page, where it can
> change his billing address, shiiping, email address, password, etc...The Log in user server behavior creates a named session variable
$_SERVER ['MM_Username"]. Use this variable to control everything seen by
the user after login. You can get the ID of the user by creating a
Recordset in the simple Recordset dialog box. Select the ID and use
Session variable and MM_Username as the filter.Once you have the user ID, save that as a control session variable
the rest of the operations.$_SESSION ['user_id'] = $row_recordsetName ['user_id'];
--
David powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
My AirPort Extreme end not implemented with the help of AirPort Utility
Bought a used AirPort Extreme (Genesis 4) of a person who showed me that he worked at home. When I try to set up as a Wireless extender to my last existing AirPort Extreme, he will not carry out synchronization upward with AirPort Utility. It appears as a new extreme, but get a message 'unexpected error' before or after the name. Have you tried to reset the two while it is powered and turning the as explained in the help.
When I try to set up as a Wireless extender...
Gen 4 airport will connect to your existing AirPort Extreme wireless... or... it will connect using wired Ethernet wired, Permanent?
.. .it will not accomplish the synchronization upward with AirPort Utility.
Which version of AirPort Utility? If it's on your Mac... and you don't know what version you have...
Open AirPort Utility
Click the AirPort Utility menu in the upper left corner of the screen
Click on about AirPort Utility
Report on the version number you see here
You have an iPhone or a handy iPad that could be used to implement the 4th Gen airport if the problems continue with the help of your Mac?
-
Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.
maryml wrote:
Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.
Press and hold on the text and wait for the copy/more pop up.
-
help with the new option of memories
Sorry for my English
Please help me with the new option of memories
no memories option appears me
I have an iphone with IOS 10.02 5
Hello
Try this support article > enjoy your memories in pictures - Apple Support
-
With the help of Club running on the Nike watch +.
Hello
This is something I have tried to work for a while and have not yet been able to find an answer. At the moment I use Nike + management club on my iPhone to follow the tracks that I find that gps is better than just using the application of the workout on my watch. However, something that really bothers me is that I start the race on my phone, but I can't then view my stats while running without having to press on and tap the watch and wait for the application to load, very irritating to race. I want to be able to lift my wrist and live stats are there to watch me, not listening and not get my phone out of my pocket. Surely this is something that can make the original watch?
As a separate issue with the new app, Nike +, it does not recognize the songs I downloaded on my phone of Apple music in my playlists, then I have to play the separatelay of music through the application of music as opposed to go with Nike +? The ides on how to fix or is this a known problem with the latest Nike + app?
Hello
You may find it useful to consult the support resources of Nike and/or contact Nike for assistance with the help of their application:
- Contact Nike (support is available by phone and via social media):
- Nike + running Club to support:
More information:
https://iTunes.Apple.com/us/app/Nike+-run-Club/id387771637?Mt=8
-
I have an imac 27 "... on power there is no signal to startap, usb ports are not working and its deadlock with the logo of the Apple with the circle of rotation... Help, please
Wake the computer to your Apple store or Apple authorized service for the service provider. He probably suffered a hardware failure.
Maybe you are looking for
-
Need help with pictures on iMac re: "Summary", "optimize Mac storage."
iMac mid 2011 1 TB, 2.7 ghz, i5, 16 GB memory hard drive; and MacBook Air mid 2012 128 MB HDD, 1.7 ghz, i5, memory 4gm, both El Capitan 10.11.5 running I use Photos since it was released, although I prefer iPhoto (continue to use it separately for no
-
Failed to load messages from LinkedIn or notice.
Since the last update of Firefox, I can open is more no message on my Samsung GalaxyIII LinkedIn group. Help?
-
Sync Contacts on Mac for iPhone contacts of delays
Hello When I update my iPhone Contacts changes are reflected on my iMac Contacts almost immediately. It is ok. When I update my iMac Contacts changes can take days or no update to all my Contacts from the iPhone. This is NOT good. However, my iClou
-
Poor quality of GPS and WiFi reception, iPhone 6
I can't use applications that use GPS, maps, waze. My iPhone cannot connect to wifi which are more than 10 meters. I restored network settings did not work. I restored to factory settings, none worked. This phone was purchased in October to November
-
How to get a list of the updates of Windows XP, released in 2010.
How to obtain the list of all updates, patches, patches applied to Windows XP and released in 2010 with the possibility to download this update.