Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Dreamweaver Generated Code To Delete Record


I use the dreamweaver generated code to delete a record, how would i add some code to it to delete the files (images) stored in my../images folder, that are linked to the record being deleted, there field names are photo1, photo2, ect..... and there image names are stored in the database Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Record Paging Using Dreamweaver MX
Basically I have got a Database with a stock list table. I want to display a stock list from this table. I then want to display 25 records at a time. Then I want to be able to go the next page of records or previous or first of last page etc...

Well i had thought I had managed this as I got it all workong on my localhost testing server, however when I uploaded it all to the hosting companies server (Yes I imported the database and changed the DB connection settings to connect to the DB online rather than on my testing server) I try and click on next for example and it just brings up the same 25 rows from the table.

View Replies !
Update A Record Using Dreamweaver
I recently started using the server behaviors in Dreamweaver but I'm stuck at something, I'm not being able to update a record using it.

I have created a master details page showing all the rows from my mysql DB, and I have created a detailed page showing the info of a record, now I'm trying to create an update record page to be able to update the record but I'm not succeeding,

View Replies !
Delete Record - When The Delete Link Is Clicked The Next Page Is Blank And Nothing Is Deleted.
This is my "delete.php" and this "todo/delete.php?id=64" an example of a link to it generated from the index.php page. When the delete link is clicked the next page is blank and nothing is deleted. What have I done wrong?

<?
include("dbinfo.inc.php");

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$id="delete from todo where id='$id'";
mysql_query($id);

mysql_close();
?>

View Replies !
Passing Record ID Problem W/Dreamweaver
Quick Dreamweaver problem: I've got an add_inventory.php page that populates my database keyed off of 'id'. When I built the record insertion form it asked for a destination, which I put in as show_inventory.php. I built this page later on, to show certain fields the user just entered.

Added a recordset to the add page (rs_add_inventory), only choosing the 'id' field.  I need to pass that parameter to the show page, so it can display all the fields.  So going into the code, I saw Dreamweaver had written the following lines of code:

View Replies !
Delete Record
i have this code for my site that will connect to my database and grab all my members there id email and ip the problem is that it dont have a button where you can select a member and delete that member can anyone help me with this?i want to add a button and a check box so if i check off a member and click a delete button it will delete that member here is the code:

View Replies !
Delete Record!
I am using PHP5 , MySQL5, Apache 2 My Database was created with phpmyAdmin.Then I inserted with script and phpmyAdmin data into the Database. Now I am Unable to empty or delete or remove any fields out of the Database. Neither a script ot phpmyAdmin can delete.What has blocked the database? I have restarted my pc, Still I am unable to remove anything.

View Replies !
Delete Record And Files
I have a code that uploads images along with some info into a directory and database, this all works fine. I can delete the record but the images relevent to that record continue to exsist in my images directory. How would i set up a php code to delete a file in ../images when the record of its name is stored in a column in my database. Here is my delete record code:

View Replies !
Mysql Delete Record
when I run this code below it doesn't delete the record or display any error message

$id = $_GET['id'];
include("../dbconnect.php");
mysql_query("DELETE FROM promotions WHERE id='$id'") or die(mysql_error());

Such a simple thing to do but I don't no why it doesn't work 

View Replies !
Unable To Delete A Record Using Php
I am having a form which displays a couple of values from database and a delete button which is used to delete that particular record. Below is the code that I am using, but I am unable to delete the record. Please help me to get the record deleted. Code:

View Replies !
Confirmation When Delete A Record
I want to add a confirmation before I delete a record. For example if the user wants to delete they press "Yes" otherwise "NO" and go back.

<?php

//delete user
$sSQL = "DELETE FROM user WHERE (`userid` = ".$_GET['record_id'].")";

$result = mysql_query($sSQL) or die(mysql_error());

echo "<h1> User deleted succesfully</h1><br>";

?>

View Replies !
Delete Record - You Have An Error In Your SQL Syntax;
Im some having  trouble with deleting a record, surely it isnt that hard, dont know what im doing wrong. this is the error i am gettin:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '` WHERE id=1' at line 1Here is my delete code:

View Replies !
Delete Record If Older Than 5 Minutes?
Can someone help me in writing a query command, to delete a record, if the last_update field on a record is older than 5 minutes?

My table has a last_update field, which holds a value as this for example: 2007-04-08 01:33:12

I need a query that when I access a php file, if a record is older than 5 minutes, it will delete it.

View Replies !
Click Link To Delete Record
I am trying to add a function to one of my scripts.  I would like to be able to click a link and have it delete a particular row from by DB.  Links are generated by a PHP script and are based on entries on a DB.  In this DB I have a column called 'users'.  The table is generated by the following snippet: Code:

View Replies !
Using Checkboxes To Delete Record From Database
i would like to use check boxes to delete records from the database. my problem is, the records belong to different tables. how do i indicate in my code "DELETE from blah blah... " from which table to delete from..

View Replies !
Displaying Html Code On PHP Generated Page
I am trying to create a link page in my php application. this is a page that will display a block of html code that a visitor can copy and paste into their web site to create a link back to mine. My PHP page has a line in it like this:

define('TEXT_INFORMATION', '<html page code is here>');

I have added the html code to create the page as noted above. the page contains a same of the banner image file and the html code that goes alon with it. My problem is that I haven't been able to "quote" the html code so that ir will not be executed.

every time I try to run the application from my web server my page will display two copies of the banner iimage not on banner image and text block like it should. Any suggestions?

View Replies !
Source Code Generated - But Still Blank Screen
This is a very odd problem I've run into and I currently have no idea what to do about it despite having looked over the code dozens of times.

I run an RPG online that, among other things, has a character creation system. Without going into any details of the system, I'm trying to add a feature that allows a member to change a skill of the character and reset the skill level of the new skill.

The function of the page may or may not be relevant. The code of the file first checks to see if username and password of the member are set. If they have been set, it checks the mysql database table for that combination. If it finds a record matching both, it generates the first page of the feature (giving a form in which to select skill to change and the new skill). If it doesn't find the record, it generates a page to display a typical "Login Incorrect" error page.

For testing purposes, I simply visit the page (passing username & password in through the URL) and it brings up a blank screen without any warnings or error messages. Upon viewing source, I see that it generated the "exact" html code in full that I wanted it to, but none of it is being displayed in the browser.

View Replies !
Audio CAPTCHA - Listen To The Generated Code
I write here because I wasn't sure where else to write... Anyways, I made an Audio CAPTCHA script that might be interesting to some of you. This script makes your visiters listen to a generated audiofile (mp3) to get access to the code. For a working demo and to download the script, go here ....

View Replies !
Code For Save Automatically Generated Barcode
We are generating barcode automatically through code. Now we want to give option for save the barcode for user. Now, we are unable to write a code for saving this barcode.

View Replies !
Auto Delete Record/Send Email After X Hours
What I have is a MySQL database which stores records that each have a date stamp on them (2 of them - one for record created date and one for record last updated date), what I want to do is try and have it so that records that haven't been updated in say 72 hours are automatically removed from the database, or the record is updated to set a flag as being out of date, or an email is sent to alert a user of the out of date record etc.

I can easily write the script with the SQL query to check the records by the datestamp and perform the actions needed if the records are out of date, however that requires someone to physically visit that page to run the script and clean up the out dated records. What I want to try and do is have this happen automatically on its own without someone needing to actually visit the page to run the script.

A good example is on eBay how emails are sent to you to let you know when your auctions are about to expire, i wouldnt imagine that eBay would rely on people visiting their website to make those queries run on the database so there must be a way of doing some automated script executio or having a scheduled task run on the server to have a PHP script run each day at midnight or something? Anyone know how to do this?

View Replies !
Inserting PHP Code Into HTML Generated By A CGI/PERL Script
Is there a way to have PHP code included into HTML generated by a CGI/PERL script? The problem is that the CGI-generated HTML can not be interpreted/parsed by PHP. Unless you know how.

View Replies !
Code To Delete
Table name: Subjects
subject_id
student_id (foreign key)
subject_name

i want to delete all subjects by the student where the student_id is x

wht would be the code to delete in tables having relationship

View Replies !
Delete Code Error
i'm trying to delete old entries in the database but i'm getting a "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result " when the code is ran. Code:

View Replies !
How To Code Add,find,delete Buttons
Hello, I am new to PHP and Postgres. I am creating a page that displays a form to allow entry of details about a piece of equipment. The form is intially blank. I want to have 3 buttons: Add, Find, Delete. It shows only one piece of eqipment at a time.

The user can fill the form out, press Add and it will insert into the database. Or they can enter the equipment ID, click Find and then modify or delete (by pressing the Delete button) the returned record.

I am able to create the form and the SQL but I am not sure how to have the buttons fire to execute the PHP code for each functionality (Insert, Find, Delete, Update).

Can someone point me to a resource that shows how to do this?

View Replies !
Code Loop Through The Array And Delete Everything From Each Of The Tables
Will this code loop through the array and delete everything from each of the tables for a particular user. PHP Code:

$tables = array (
"user",
"user_info",
"foo",
"bar"
);
foreach ($tables as $value) {
DELETE * FROM $value WHERE user=$username
echo 'user deleted from '.$value;
}

Also is there a better way to delete all user info across multiple tables? This seems as if it could be quite inefficient.

View Replies !
Script Repeat Updates The Record And Also Inserts Another Record With The Same Information.
I have a form which contains some fields that are populated with data from a table. This same form also has fields that are empty because the data has not been collected yet. The main table is called client with a primary key of client_id. What I need to do with this form is select the client and update the record into a new table with the missing information. If the client doesn't not exist in this second table, I need to insert the row otherwise if the client does exist in this table because of a previous update, update the record.

When I run my script, the insert works. When I try to run the script again and try to update the record, the script not only updates the record but also inserts another record with the same information. How can I write my script so it checks whether a client exists in a table and if it does, update the record and if the client does not exist in the table, add the client?

View Replies !
How To Securely Store A Record Index When Editing A Mysql Record
is there a secure way
to do this? the non-secure ways are, as i understand it, to populate
a listbox with indices as names, or maybe use a hidden control. is the
only secure way with sessions? i was also thinking about perhaps
creating a meta table that says who is editing which record right
now. any advice?

View Replies !
Compare Record With Session Variable And Update Record If Different
I'm trying to figure out how to create a session variable from a recordset field value in a mySQL database and compare this with subsequent values from the same field each time the page reloads. When the value of the field changes (as a result of a user update) I want to trigger an event (redirecting to another page). It's probably a very basic PHP function but I am a newbie with this language.


View Replies !
Mysql Delete - $query = Mysql_query("DELETE
how would i do the following ?

$query = mysql_query("DELETE notes, datestamp, abs_value, ID FROM absence_mgt  WHERE datestamp='$date' AND ID='$vtc_login' ") or die(mysql_error());
im just getting "Unknown table 'notes' in MULTI DELETE" ?

View Replies !
When Posting The Record Only The Last Record Is Getting Posted?
I'm able to collect data and place all the records under editing mode and able to edit the records. But when posting the record only the last record is getting posted. Code:

View Replies !
Do You Use PHP And Dreamweaver 3?
If you are a Dreamweaver 3 User and you author sites with PHP. We have been working on some extensions for Dreamwever to help quickly insert PHP code.

At the present we have about 10 or 11 extensions written for some of the common
PHP functions, like form elements, phpinfo, phpversion, php include, php include array, php require, php date/time stamp (time and lastmod), and several more.

http://dreamweaver.snr-graphics.com/ for a complete list, since the extensions are beta, you will have to contact us via email to get download instructions.

View Replies !
What About Dreamweaver And PHP?
I have been constructing HTML websites for several years. Background is Graphic Design, Photography, Photoshop, HTML, Dreamweaver etc. Just recently started a website using CSS and Dreamweaver and working my way through it including image swaps, cascading menus and other good stuff. Now wanting to dive into PHP and some server side work. Any suggestions on learning PHP material and a direction to take? What about Dreamweaver and PHP?

View Replies !
Dreamweaver 8
Why doesnt dreamweaver 8 recognize functions like session_regenerate_id()? And is there a fix?

View Replies !
Dreamweaver Mx And Php
I've got a friend who is using Dreamweaver mx for site development. Up until now he's been serving static content, however his web server has php support so he wants to add some frills to his pages, a hit counter, some other adaptations using php scripts. I want to integrate the php scripts with the old site with as little fuss as possible.

View Replies !
PHP Editors - Dreamweaver MX
Thought about posting this in the WYSIWYG section but I'm after an editor that specifically handles php includes and commands etc.

I've recently started getting a bit more serious about php and I'm sick of uploading my pages simply to test a one line change.

I've also considered rebuilding my laptop with Linux / Windows and installing PHP (I'm currently running XP SP2).

But, before I do, what options do I have for an editor that provides:
colour highlighting for php, (x)html and css (can be context sensitive or constant but prefer to have that as configurable) realtime syntax helper (does not have to be autocomplete but "tool tips" or whatever they're called would be nice) syntax checking basic php stuff (ie. pulls in includes, and executes self-contained functions); (nice to have) slightly more complex development environment (eg. executes functions from other files and passes control to another file and executes that etc). (nice to have) reads a php.ini file or some such. I host on two different servers and they are configured slightly differently.


It does not have to support databases (yet) but I guess I'll get there at some stage (MySQL).

I guess Zend Standard is one option and also PHPEdit .... any others (including ones that have but point 5)..... or a comparison of the two above?

PS. I've had experience with:

Dreamweaver MX - I like the way it updates all references to filenames / images names etc if I change a change a name (but it's really annoying me at the moment and only goes part the way - and I do not use anywhere near all the features to justify the cost);
TextPad (free version) (but it does not have the development environment stuff as far as I can see);
I used to use PHPEdit (when it was free - and I used to like it even though it threw up the odd error message in French!).

View Replies !
IF Question In Dreamweaver
I am trying to set up a page that gets a dump from a database. One of the fields is capable of 2 values, 0 and 1. What I am trying to do is set it up to when a value comes in it displays one of two pictures. Essentially, what I am doing is this:

<? $status = recordsetname(field);
?>
<?
if ($status == "0" {
echo "<img src="img/status0.gif" />";
} else {
echo "<img src="img/status1.gif" />";
}
?>

I am unsure of using HTML in an echo command. I dont know if it works or not. But that is essentially what i have on my page. When I go to load it in a browser... nothing comes up. But I have tried every thing. Its probably something dumb with a space or a quotation.

View Replies !
PHP Editor Like Dreamweaver
Are there any WSIWYG development programs like Macromedia Dreamweaver so that when i'm creating my webpages, instead of writing in html in the code, im writing php code ??

View Replies !
Setting Up PHP With Dreamweaver 8
how to set up a testing server with dreamweaver 8 please? How do I make dreamweaver go directly to the site for eg http://localhost/test/test.php? cause if I want to see my test.php I have to type it up everytime.

View Replies !
DreamWeaver With Big Database
I got this database thats around 10000 entrys is their a simple plugin that I can put in to dreamweaver8 and have it make the echo the table automaticly instead of one by one typing it out.

View Replies !
Dreamweaver Libraries
Starting a new site and am wondering if I should go with a:

custom PHP/MySQL content management system. or a HTML website made using Dreamweaver and utilize the library updating feature. Let me know which method I should go with from the different perspectives below: -

1. cost-effective
2. search engine friendly
3. server resource friendly .

View Replies !
Dreamweaver Binding
I've created my tables on PHPMyAdmin and I've managed to connect dreamweaver to the site and database. I'm following a tutorial and now onto a stage where I'm have to go to the bindings panel and add "record set (query)". Well I've clicked the plus button and I get this message:

the recordset script does not define the applyServerBehaviour function

Then it doesn't do anything. so I'm gathering I've done something wrong along the way. But everything else is working and I can't work out what to change to sort out my bindings issue.

View Replies !
Dreamweaver MX 2004
can i have some tutorial, hints and techniques in using Dreamweaver MX... regarding with PHP Scripts. tnx a lot^_^

View Replies !
Files In Dreamweaver
I used the steps provided in following post to set up php5 apache and mysql. I want to use dreamweaver to build dynamic sites.So far apache and msyql is working fine but not PHP5 :( .Everytime I open the file (php_info as test file), it reopens in Dreamweaver as code! and not as a website. I think I am doing mistake in Dreamweaver settings. I dont know what "testing server" is referring to in dreamweaver.

View Replies !
Macromedia Dreamweaver
I have just starting using PHP for developing a website. I am using macromedia dreamweaver in the process. Macromedia does generate a lot of code for you. I created a login/authorisation page in a matter of seconds. My concern is how robust is the code generated is. Any one has experince with this.

View Replies !
Zend Vs Dreamweaver
I use Dreamweaver to develop the basics of my PHP stuff and then hand tune anything that I need to. I'm now looking at the next level and was wondering about Zend. What I like about DW from a lazy man's point of view is that I can click on a button to add loops or user authorisation or all sorts of other things that would take me hours to hand code. Is the same sort of thing available for Zend.

View Replies !
Connecting Dreamweaver To MySQL
I'm new to MySQL. I recently installed it as part of a preconfigured package (Apache, PHP and MySQL) from "Apache Friends (XAMPP).

I was following a tutorial on connecting Dreamweaver to MySQL at
http://www.macromedia.com/support/dr...sql_config.htm
when I hit a snag. I think I created the MySQL username and password in the wrong directory, and it messed everything up. I reinstalled XAMPP and am giving it another try.

But before I mess with the MySQL password again, I'd like to ask a couple questions. First, do I really need one? I'm only using MySQL on my computer, which no one else uses. I publish my sites to an ISP, which has their own MySQL program installed. Or is MySQL something that has to be customized and published along with your websites?

This is what the Deramweaver instructions say about the password:

"During the MySQL installation, MySQL creates an account called root with no password, which can be used to log into the database. It is highly recommended that a password is assigned to this account since root has full control over the MySQL databases. To assign the root account a password run the following command, which will set the root password to new-password. You should replace new-password with a password of your choice that is harder to guess."

> mysqladmin -u root password new-password

My next question regards this statement:

"It is recommended that separate MySQL accounts are created for each PHP web application. You can create as many MySQL accounts as you wish and assign different rights and permissions to each account. Web application users do not need the same level of privileges as the root account."

When they say "each PHP web application," do they mean create a separate MySQL account for each WEBSITE? Does that mean I have to create a new MySQL password for each of my websites and connect it to Dreamweaver individually?

I also have PHPMyAdmin installed, but I haven't learned how to use it yet. When I click "Test PHPMyAdmin," I get a page that has a setting labeled "Create new database."

There's also a link to "Privileges," which leads to a page with keywords like "user," "password," "root" and "edit." Maybe I should use one of these pages to add a MySQL password (if necessary).

But I thought I should first ask if it's NECESSARY to create a password for MySQL.

View Replies !
Dreamweaver?ph<MM: Beginlock TranslatorClass
Some time ago there was a thread in this forum in which the following problem was discribed:

When I open a PHP page for editing in Dreamweaver the code '<MM: Beginlock TranslatorClass......' is added in the middle of a PHP tag by DW. This results in invalid code.

I came across the same problem on my system. (btw: I also received a message that I should check the Third-party tag library.....)

The previous answer to this was to reinstall DW completely... this work around does not appeal to me, I don't want to reinstall all extensions and reconfigure.

I have looked in to the problem and it was easy to fix:
When I opened the [drive:]documents and settings[your name]Application DataMacromediaDreamweaver MX 2004ConfigurationThirdPartyTags - folder there was a dud extension there called iframe. I removed the three corresponding files and restarted DW.

This fixed my problem (and saved me from having to reinstall).

Hope this works for you too.. I expect that other problems with 'phantom code' can also be solved in this way.

View Replies !
PHP+PHP Admin+ Myssql In Dreamweaver
Installed apache, it works fine. PHP also works fine. But now probs is that I cant correlate php and mysql. I have phpMyAdmin installed but dunno how to synchronize php and mysql thru this.
On dreamweaver it when i want to include database mysql , it asks for (1) connection name (2) mysql server (3)username (4) password . i dont know any such except password whihc i gave when i installed mysql.

also cant figure out how to make database in mysql!

View Replies !
PHP, Apache, MySQL, Dreamweaver MX
How to get it all to work!!! I've tried looking at docs, and notepad files, and text and manuals..I'm lost. I'm not sure how to set them all up to run with each other, and get DMX to recognize the apache server, and what to config, and edit and all that mess.

View Replies !
Dreamweaver Testing Server Help
I am trying to set up a localhost testing server on windows xp home system using xampp. It installs and runs fine but I am having issues trying to get dreamweaver MX to connect to it for testing a MySQL database and PHP pages. Also wondering how to view php pages on local machine with IE7.

View Replies !
PHP And Dreamweaver Recommendations Needed
Somebody on here recommended Dreamweaver with PHP. I am coming from
(still using really) ASP and ASP.NET. PHP is more like ASP and not a
whole lot like .net, but I wanted to know how Dreamweaver will help me
with PHP. Is it easier to make a website "prettier" with Dreamweaver?
Just need guidance on why to use Dreamweaver with PHP. I am using
HTML kit or notepad and, of course, Google. Usually use the languages
and objects for hitting databases.

I am a good coder, but horrible artist and was hoping the Dreamweaver
combo might just be the ticket.

View Replies !
Dreamweaver UltraDev Research
I work at Macromedia as the Product Manager for Dreamweaver UltraDev. If you're not familiar with UltraDev, it's a leading tool for visually creating dynamic websites.

We are in the research phase for our next version and we're looking for experienced PHP developers in the San Francisco Bay Area to help us in our planning. We are inviting a small set of experienced developers to our offices for focus group discussions about the future architecture of UltraDev. Usually the discussions last on the order of an hour or two. It's a pretty exciting opportunity for developers to meet the team behind a leading authoring tool, and help to affect its development. We will provide a light dinner and a small gift for volunteers' time.

View Replies !
Mysql Question Using Dreamweaver
I can add a repeat region no problem to a page, but how do i reset the
recordset to add a second loop
Is it something to do with reset()

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved