Problem with Insert Record
Hello
I currently work in the second part of the tutorial "build your first dynamic Web site. The specific page may be found here:
http://www.Adobe.com/devnet/Dreamweaver/articles/first_dynamic_site_pt2.html
I spend all this without any problems... until I get to the section called "Test the insert record Behavior. When I get here and open my code in the web browser, the page rest sleep.
What I have done:
1A asked a representative of Adobe by phone what they suggest. They had no suggestions and no page to read on.
2 remove my entire site and has completely and going through the tutorial everything Word for Word. I'm stuck at the same point each time.
What I need:
1. any possible solution. I have already read through every possible article, and there is not one that resolves this problem.
* Note: later in the tutorial, I was told to find the name of the file "php_test.sql" when looking on the files Panel. This file wasn't there. Just thought I would mention it.
Thank you
SWEKO wrote:
Thank you for your understanding.
No, the file opens. But after all done werecreated, the database was created and the server is connected, the action "Insert record" will not work for my forms.
I thought that I made a mistake somewhere, so I Redid the entire site. It still does not work.
Have you checked YOUR code against the working version in the tutorial folder?
Please copy - paste the code pages here so someone can take a look.
Tags: Dreamweaver
Similar Questions
-
Skype 'problem with sound recorder '.
After working perfectly for months, when I now try to use Skype I get the above message. CD works perfectly all the other its OK. Skype gave me a chapter and verse to uninstall and reinstall Skype without change. I guess the problem is in the web cam that contains the microphone and there is no purple light on that. What can I do else?
After working perfectly for months, when I now try to use Skype I get the above message. CD works perfectly all the other its OK. Skype gave me a chapter and verse to uninstall and reinstall Skype without change. I guess the problem is in the web cam that contains the microphone and there is no purple light on that. What can I do else?
"Problem with sound recorder" suggests that there may be a problem with your input device.
Open Device Manager (right click on my computer > properties > hardware > Device Manager) and search for "imaging devices". Click on the + to expand the category. There is a warning (yellow!)? Right-click and select Properties. Is it the box at low say "use this device (enable)"? If not, do so and click OK.
While still in the Device Manager, click on the + next to "Sound, video controllers and game." Locate the entry of your webcam microphone. There is a warning (yellow!)? Right-click and select Properties. Is it the box at low say "use this device (enable)"? If not, do so and click OK.
Take a look at control panel > sounds and Audio devices
Click on the tab "Audio". What is the default device for sound recording? It should be your webcam; If this is not the case, adjust it using the drop-down list box. Same thing for the "Voice" tab and the default device for voice recording. Be sure to click on the "Apply" or the OK button.
Click Start , point to programs , point toAccessories , point to entertainment and then clicksound recorder . That you get error messages when you open or you try to open the sound recorder? If so, please include the entire message, without paraphrase, in your response.
-
problem with insert cfquery.
Hello;
I have problems with my query insert to add a new record. Is not to launch any errors, I empty all the variables of of that feeds it and their... but it does not add the record to the database. It IS an Access db, not my choice... customers. Maybe that's the problem? (I'm kidding) Can someone help me understand why this code won't add a new record. I write my request to insert, if you need more I can provide. But I think it's a problem with this code.
< cfset EventDate = "#DateFormat(form.edit1,"mm/dd/yyyy") #" >
< result cfquery = "yourResults" datasource = "" #APPLICATION.dataSource # "dbtype ="ODBC">"
INSERT INTO events
(title, eventDate, eventTime, location, contact, telephone, fax, email, URL, sponsor, body)
VALUES (< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.title #" >,)
< cfqueryparam cfsqltype = 'cf_sql_date' value = "" #EventDate # ">,"
< cfqueryparam cfsqltype = "cf_sql_time" value = "#form.eventTime #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.location #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.contact #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.phone #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.fax #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.email #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form. "URL #" >.
< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.sponsor #" >.
< cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form. PDSeditor # ">).
< / cfquery >
< name cfquery = "qFetchID" datasource = "#APPLICATION.dataSource #" >
SELECT id
Events
WHERE title = ' #form.title #
< / cfquery >< cflocation url = "events_RecordView.cfm? id = #qFetchID.id #" >
Everything looks good to me... I even tried what in fact throw errors to perhaps trigger the real problem and it does not work. Obviously... I'm missing something.
You have another potential error of logic. After you do your
Insert, your select query can return multiple rows.
That being the case, perhaps the id that you pass to the next page
not to be whatever you want.
In CF8 +, you can use the result attribute to return the value of auto-generated ID of single INSERT statements.
http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=Tags_p-q_18.html
Furthermore, I wonder about your cfsqltypes. What database you use?
-
Problem with 'insert into array.
First of all, sorry for my English.
I have a problem with this function, I want to insert an item in the table of size 16 based on the index, but when I insert an element in position 4 (for example) and then I insert another element at position 2, the element that was at position 4 is moved to position 5, and I have no why understan
Can you help me? Thank you
Table Insert will increase the size of the table and therefore all which comes after your insert index will be its index increased by the number of items you enter.
If you want to replace an item in a table - use "replace the subset of the table.
Here is an example:
Output:
-
problem with the recorder on my clip
I recently had problems with my clip. It was freezing, slow (20 seconds for any action), and stoped working in total recorder. because of these problems, I reformatted it and solved all the problems. the only problem I have is that after reformatting, the recordings began to make a constant hum in the background, and I was wondering if there is any way to fix it.
and a two second recording takes up double the memory of what a record of one hour ahead
Download the firmware and reinstall it in the drive.
-
Hello
I have some problems with the video recording on the BlackBerry.
On the BB 9700 my application crashes when I try to stop recording. The file produced
the app is empty.
On BB 9800 I have the same problem unless I have explicitly defined the video resolution, but
in this case, the resolution of the resulting video is different from what I
specify (640 x 480 instead of 320 x 240).
On BB 9300 an application works without problem.Here's the example I use:
//////////////////////////////////////// App.java
VCR package;Import net.rim.device.api.ui.UiApplication;
public class App extends UiApplication
{Public Shared Sub main (String [] args)
{
final App app = new App();
app.enterEventDispatcher ();
}public App()
{
last screen VideoRecorderScreen = new VideoRecorderScreen();
pushScreen (screen);
}}
VideoRecorderScreen.java
VCR package;import java.io.IOException;
import java.util.Timer.
java.util.TimerTask to import;Import javax.microedition.media.MediaException;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.container.MainScreen;/ public final class VideoRecorderScreen extends screen
{Private final int DELAY = 1000;
Private final String VIDEO_PATH = "file:///SDCard/BlackBerry/videos/video.3gp";
Private final String VIDEO_ENCODING = "video/3gpp";
Private final int VIDEO_DURATION = 5000;
Private final int VIDEO_WIDTH = 320;
Private final int VIDEO_HEIGHT = 240;recorder recorder private;
Public Sub onDisplay()
{
new timer() .schedule (new TimerTask() {}
public void run() {}
Start();
}
(}, DELAY);
}private void start()
{
Exception Exception = null;
try {}
This.Recorder = new recorder (this. VIDEO_ENCODING, this. VIDEO_WIDTH, this. VIDEO_HEIGHT);
This.Recorder.record (this.) VIDEO_PATH);
} catch (MediaException ex) {}
Exception = ex;
} catch (IOException ex) {}
Exception = ex;
}If (exception! = null) {}
Warn (exception);
return;
}new timer() .schedule (new TimerTask() {}
public void run() {}
try {}
VideoRecorderScreen.this.recorder.end ();
warn ("check");
} catch (IOException ex) {}
Warn (ex);
}
}
}, this. VIDEO_DURATION);
}private void warn (Object, object)
{
the final String message = String.valueOf (object);
UiApplication.getApplication () .invokeLater (new Runnable() {}
public void run() {}
Dialog.Alert (message);
}
});
}}
Recorder.Java
VCR package;import java.io.IOException;
Import javax.microedition.media.Manager;
Import javax.microedition.media.MediaException;
Import javax.microedition.media.Player;
Import javax.microedition.media.control.RecordControl;public class logger
{Final private player vp;
private RecordControl rc;
Recorder of public (encoding String, int w, int h)
throws MediaException, IOException
{
This.VP = Manager.createPlayer ("capture://video?encoding=" + coding
+ '&' + 'Width' + '=' + w
+ '&' + 'height' + '=' + h);
}public void save (String path)
throws MediaException, IOException
{
This.VP.Start ();This.RC = this.vp.getControl ("RecordControl") (RecordControl);
If (this.rc == null) {}
throw new MediaException ("RecordControl could not be obtained");
}this.rc.setRecordLocation (path);
this.rc.startRecord ();
}public void end()
throws IOException
{
If (this.rc == null) {}
throw new IllegalStateException ("RecordControl not initialized");
}this.rc.stopRecord ();
This.rc.Commit ();//
This.VP.Close ();
}}
Upgrade to an operating system that has the fix is the only solution I'm aware of, but depending on who may or may not be an option.
-
Cannot use Skype download message problem with the recording device.
Original title: Windows Livecam
Hi my Skype can't my webcam micro and constantly sentds me a message saying "problem with recording device" How can I solve this problem?
He also says that my audio device is disabled in windows. I don't know what to do if someone could help that would be great :)
I had this problem too. This isn't a matter of Skype but there is a problem with the Audio driver on your system.
I used the following steps to detect the problem:
(a) I uninstalled the existing version of Skype
(b) installed the new version of Skype
(c) check if the problem still persists. Given that the problem still persisted.
(d) consulted the sound link in the Panel control, updated sound card driver software.
Problem solved.
-
Problem with microphone recording in Windows 7
Original title: problem with the microphone
Sir my drivers are perfectly fine but my microphone does not work and my default set and apply the buttons are grayed out in the record of devices.when im trying to put my problem its evrything saying isn't alrght theres no problem in my drivers... when im recording my voice, I found another seems not my voice... what should I do Sir
Hello
1 - is a built-in microphone? If Yes, what is the brand and model of the computer?
If not, then what is the brand and model of the Microphone?
2 did you recent hardware or software changes to your computer before this problem?
3. what applications do you use to make use of the Microphone?
4. are you able to record sounds using the sound recorder?5. what exactly do you mean when you say an different sound and not my voice?
I suggest you to follow the steps and check if it helps.
Method 1:
Try to run the Audio recording utility and check if it helps.
http://Windows.Microsoft.com/en-us/Windows7/open-the-recording-audio-Troubleshooter
Method 2:
I suggest you to check if the microphone is set as default as playback devices.
a. click Start, type Sound in the area start search.
b. click on his research at the top of the start menu.
c. click the Read tab. Notice the check mark next to the default device. For most users, the default device is speakers. Make sure that the audio settings are configured as expected. Follow these steps:
d. on the Read tab, select the playback device, click Properties, click the Advanced taband make sure that the default Format is set to the value you expect. When you are finished, close this window to return to the previous window.
e. on the Read tab, select the playback device, click set upand make sure that the configurations are set correctly.
f. Select the audio device you want as default audio deviceand then click on set default.
g. click OK to save your settings and close the sound dialog box.Hope this helps and keep us posted.
-
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 &";.
?> -
Problem with sychronising records
After taking a photo of LR (4) in the PS (CS6) for editing, I save (Ctrl-S) and close the file in PS. It does not show in LR automatically. I import it back physically photography. This just started hapenning... .previously I did have a problem and the photo shows automaticall in LR. Can anyone help please?
Hello
Sorry for the late reply.
Seems to be a problem with temporary files.
Can you please delete all the temporary files, and then restart the computer and try.
Concerning
Jitendra
-
I'm the only one having problems with Insert NAV in Dreamweaver cc?
I'm following a couple of tutorial using HTML 5 with Dreamweaver CC, and when I insert the following
< class header = "header" > contents of class "header" goes here < / header >
Will tag < side > happy for New side here < / side >
Happy <>for New label article goes here < / item >
for new main tag < main > content goes here < / hand >
< section > content for the new Tag section goes here < / section >
<>content footer footer new tag goes here < / footer >
I don't have a problem. But when I insert the NAVIGATION, I get the following error:
X while executing onLoad in InsertNav.htm, the following JavaScript error occurred:
In file, "InsertNav":
initializeUI is undefined
I know that I can work around the problem, but I do not have too.
Any ideas?
Thank you
As soon as you get a JavaScript error, follow the removal of a corrupt cache file
-
Transparency problem with insert function of the title logo
I have a PSD that appears correctly in the panel mounting PP. What I'm trying to do is to insert this logo in my in a title with credits scrolling element. When I click on insert logo, the logo appears correct partically and some parts are missing or transparent? I tried to convert image tiff and png but encounter you the same problem.
-
Problem with TV recording with databases store
Hi all
someone might know the explanation when I want to record movies, memory is apparently complete, even if I remove little by little my programs it's always the same problem
for some time, I can not save more,
It automatically stops, the fact that there are still titles that take the memory on my external hard drive?You can use this HARD drive properly as part of a computer?
If so, the HARD drive seems to be OK and it should be another problem, why you are not able to save the recorded TV programs and shows. -
Skype Call Failed: The problem with the recording device.
Well, whenever I try Skype call my friends, or even the test thing, he always falls the appeal and there is a yellow popup at the top that says: "Proem with recording device"... Including"
[17: 07:01] * call to Echo / Sound Test Service, no response. ***" .
I have no idea what is wrong, I've updated two times this week, a subject 2 days ago, anoter only a few minutes ago... >
Help, please...How I fixed it, was that my microphone was not completely connected. Make sure any mic you use for Skype is completely plugged
-
Problem with insert/update statements on the MS Access database
Hi all
Before posting this question, I did a search and found this thread.
I have the same problem as pawel had (in this thread), i.e. cannot insert or update data in the Access database. However, the reason is not that I am using some keywords in my domain name - it has been several years using SQL, some things are 'unwritten' rules But this is the first time I try something in LV
However, after losing all day for work that I expect to do the same morning in 1 hour, try many different options and debugging until the level low in the Toolbox of data base screw (building or higher), I saw some weird SQL statement being trained in-house - so I tried what Troy has tried.
"password" is a reserved word in the Jet. I just looked at MOManagers_M, but by changing the field "password" to 'passworda', it does the job.
Maybe you are looking for
-
Media Center cannot detect the CBS signal
When I connect my antenna directly to the TV, I pick up CBS (channel 19-1) live without any problems, but no matter what I do or I place the antenna, when I connect the antenna to my dvr PC, Windows Media Center does not detect any signal of CBS and
-
Cascades - how to get the actual size of the item?
Hi all Is it possible to get the actual width/height of the Visual element in cascade? I developed before Qt Quick applications and Qt Quick solution was simple - there's width and height properties which was always updated to the size of the real th
-
Original title: calendar How can I get the details on my agenda which is on my iPhone and iPad in the calendar on the windows start page?
-
Problem activating CS4 Master collection upgrade edition when you enter the previous CS2 product key
Hello Adobe,I'm trying to reinstall CS4 Master collection edition update that, as part of the installation process, asking you a CS2 product key, I have my Ye Olde CS2 software. However, when I try with the key of CS2 - who has worked in the past whe
-
.gifv or .mp4 format create gallery in Muse?
Hi allI'm sure that most of you is aware that .gif animations are starting to be replaced with video .mp4 or even formats of .gifv to create "cinmeagraphs", short of high-quality looping of the animation from movie files that play without needing a v