Mystixs
Feb 1 2007, 01:12 AM
| | I need help with a couple of things. First, I need to know how to retrieve information from a mysql database and edit it then re add it to the database.
I also would like to know how to easily delete a mysql row.
And I want this done without going to phpMyAdmin.
Thanks for the help! |
Reply
jlhaslip
Feb 1 2007, 01:45 AM
It will require some server-side coding. Php is commonly used. Here is a link to a previous topic which deals with the delete aspect. http://www.trap17.com/forums/how-delete-ro...sql-t43451.htmlHope this helps.
Reply
Mystixs
Feb 1 2007, 01:48 AM
Well. I did that thread and for some reason I can't understand it... Btw, I know it uses PHP and Mysql.
Reply
shadowx
Feb 1 2007, 03:33 PM
Hey there, for a basic example of UPDATE check this: http://www.tizag.com/mysqlTutorial/mysqlupdate.phpIf you click on the "next" link then youll see an example of delete also. i think its worth expanding on this part though: QUOTE // Get Sandy's record from the "example" table $result = mysql_query("UPDATE example SET age='22' WHERE age='21'") or die(mysql_error()); i dont like the WHERE part of this example so let me show how i would explain... we will assume that there is a table of say usernames and passwords called "users" and a user wants to change their password. So of course they login and put the new password and click a button to change their password. the php code to edit the field "password" in the DB and change it to their new password would be like this assuming their username is "bob" and their old password was "bobspass" and their new password is "bobnew": CODE $result = mysql_query("UPDATE users SET password='bobnew' WHERE username='bob'") or die(mysql_error()); simple the syntax for update is: CODE UPDATE table_name SET field_name='New_value' WHERE field_name='Old_value' and DELETE is: CODE DELETE FROM table_name WHERE field_name='a_value' If you need help with connecting to the database etc just ask and we will be glad to help. I wont post it now but if you need any more help just ask!
Reply
Saint_Michael
Feb 2 2007, 02:02 AM
I know I have seen several tutorials on pixel2life about adding tables and info, can't think of the links of the top of my head but I have some others, I know posts some links about mysql db's but have to look for it later and let you know.
Reply
Mystixs
Feb 2 2007, 05:09 AM
Well, I got the delete thing to work. I will add edit at a later time. Thanks for the help.
Reply
Recent Queries:--
deleting-rows mysql - 1015.95 hr back. (1)
Similar Topics
Keywords : editing, information, mysql, database, deleting, rows
- Mysql Hacks
(1)
Database Normalization
(0) For those of you... who really reall Ok... I am sharing to trap17 an easy to use image file to
brush up your understanding of database normalization. Everytime I have to understand the concepts,
I have to go through the complete text and its a little hard to do that... Had some requirement
recently, and I thought I will prepare something like this and refer to, when there are future
requirements. This is not exhaustive and very detailed. Helps to get some basic understanding. Prior
knowledge about the databases, structure will help in understanding the complete concepts....
Editing Posts Alters Credits?
Does being retrospecitvely pedantic pay? (24) I am wondering about the Credit System calculations on the Trap17 forums. If I were to make a post
and submit it, then the calculation system does its magic and attributes a certain number of Credits
for that post, right? So, what happens if I later revisit the post and edit it? For argument's
sake, if I get am a bit sloppy in my speeling and don't rite proper Inglish, then your algorithm
will give me less Credits than if I had been more accurate with my spelling and grammar. However, if
after I have pressed the "Post New Topic" or "Add Reply" button I notice the....
How To Use A Database For Chess Results?
How to set-up, configure, and utilize a database to store chess result (0) Hi, I'm running a website for our chess club. Recently we decided to add a feature for members
to simply enter their tourney results there but I do not exactly know how to do it. The first
problem is how to create form for people to enter their game results. I just have an idea that
working with drop down menus is faster, esaier and more precise than typing the information. The
second problem is how to make these results search-able? Let me tell you the final problem which is
the worst of all that is I do not know how to build a member area. Because Qupis does no....
Creating A Php Login System Using Mysql
I need help in creating a login system, what I want is a login system (10) Hey everyone! I am helping someone make a login system using MySQL databases and a PHP login
form. I have a fair bit of experiance in HTML and some javascript too. I have virtually no
experiance in MySQL or PHP. Anybody know of any good PHP login systems that allow you to creat a
personalised page for each user and when they login the system transfers the user to their page.
Another thing that the system MUST have is a way of stopping unwanted users entering someones page.
CODE For example lets say I register and my UN is jesse123 and my personalised pages a....
Mysql Database Not Working
(3) well i'm getting an error message(a databass connection warning) for all of the parts of my site
that connects to a mysql database i check my database users pertmissions and i try to do the repair
database thing and it's still not woeking. am i the only person having this or is it an overall
trap17 issue and how do i fix it.....
Ips Installer Database Details [resolved]
It wont accept localhost... (6) CODE Access denied for user 'skyed211_central'@'localhost' to database
'skyed211_centralgaming' I get this error message when trying to install my IPB. It will
not accept localhost, nor mysql. Can I get any help please? I've tried many times to get past
this part, but it's not happening /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
alt="sad.gif" />....
The Only Reason I Choose Ms Sql Server Rather Than Mysql
(0) The only reason i choose ms sql server rather than mysql is, MS SQL has more security
features!! MySQL is lacking a lot in my opinions - Lack in wide char, like nvarchar, I
developed some application to support chinese letter, and dont know how to build one in mysql - Lack
in t-sql syntax, like query in query is not fully supported - Does not have today SQL features like
BI support (today really required) And compare MS SQL to MySQL, the only reason why mysql is
favourable is - it is free! Dont u guys agree?....
Need Advice On Setting Up Mysql Database.
I have a huge amount of daily data updates to be inserted. (4) First of all, to get the idea of what I am trying to achieve here, please have a look at my
idea thread, entitled Idea For Using A Cron Job To Grab Daily Travian Map.sql Updates . This gives
a prelude to the project, what it is for, what it is supposed to do, etc. Now, what I need is
specific advice on setting up the mySQL database(s) to implement this idea. There is a useful FAQ
file for how to make use of the map.sql data located on the help.travian.com website, which also
gives an example of the CREATE TABLE instruction that matches the data in the map.sql fi....
Mysql Db Is Down Getting Following Error
(2) My Mysql is Down can I get some help please? Appreciate it. Patrick Domain: patrickcurl.com Error:
phpMyAdmin - Error #2002 - The server is not responding (or the local MySQL server's socket is
not correctly configured)....
Panasonic Lumix - Problems With Movie Files
troubles managing (renaming, moving, deleting) movie files from the ca (0) I've recently bought a Panasonic Lumix TZ3, the one with a wideangle to telephoto lens (10x zoom
from 28mm to 280mm equivalent) and I am very satisfied with the overall performance. Obviously I
didn't buy the camera because of the movie features but occasionally I do take some short clip
or use the "picture with audio" to comment on a photo, these functions are pretty easy to use and
the quality of the video is reasonable. The movie files (or the audio attached to a picture) get
saved in Jpeg Motion Picture format, generating a .MOV file which appears on the me....
I Forgot My Log In Information
need help (5) Due to having registered to many sites lately and not logging in to my hosting account in last few
weeks, I seem to have forgotten my log in info. Is there any way to retrieve it?....
It Went Well For A While
MySQL problem back in all its glory. (5) Some time ago I had a stubborn problem when trying to access one of the interactive pages on my
website and getting the following error: QUOTE Warning: fopen() : open_basedir restriction in
effect. File(include/errors.xml) is not within the allowed path(s):
(/home/mrdee:/usr/lib/php:/usr/local/lib/php:/tmp) in
/home/mrdee/public_html/admin/include/commonfunctions.php on line 682 Warning:
fopen(include/errors.xml) : failed to open stream: Operation not permitted in
/home/mrdee/public_html/admin/include/commonfunctions.php on line 682 Cannot open XML data file:
incl....
Deleting Account?
(4) Hi, Is it possible to have my forum account and all posts deleted? THanks /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
Select All Rows With Same Name
how to do this ??? (7) I have a table called albums it contains the following: QUOTE albumid bandname albumname the
following data is in it CODE albumid bandname albumname 0 Grendel test
album 1 1 Grendel test album 2 2 VNV test album 1
3 VNV test album 2 Now I want to display the albumname from only grendel or
vnv or anyother band who comes in the table. How can I do this ??? thanks in advance....
Database Or Pdf
Best way to list books on my site (3) Hi all, I am not sure if this is the right place to post but I'm sure you'll tell
me if it's not. My problem is this: I have a website where I sell books and it's one of
those simpleton sites where I don't need to know code, I just click icons etc Anyway, I can
upload images to the server and need to have them in different resolutions and link from a thumbnail
to the larger picture. What I am trying to say is I have about 6000 books to display on my
website which is impractical as it takes me about 10 mins to load 1 copy. What is the ....
Phpmyadmin
Create new database: No Privileges (7) i can not make a sql for diff srcipt, but the sricpt i have is php, DJ-cpanel.. all tho i can not
install it the error is like this Creating Database Tables No database selected there a mysql
database is made, but i can not use it for othere stuff... plz note that this is Free script and not
for paid.. is there a way that the myqsul can not use sql other scripts? or it maybe not working...
but i am not sure if the script not working or it can be the server may be down on mysql...? ....
Best Video Editing Software
(8) Its really distracting seeing people "create" what they think are master pieces on windows movie
maker. Its the lamest and really requires no skill. So im gunna whack my vote on Adobe Premiere Pro
2 and Adobe After Affects 7 combined to make the best in the video editing range. It requires stacks
of skills, you can download plenty of add-on effects and you can futher mod it if you wish in After
Affects. These versions are one behind in the Adobe range since Adobe released its CS3 Prefix to all
their newly upgraded versions. The new CS3 Prefixed Premiere is now compatibl....
Recomend Me Some Software, Pleaes.
(video editing and capturing) (17) Hey guys, Sorry if this isn't in an appropriate section it's kinda difficult to navigate
all the sections to find one that suits each issue, and from what I can tell there isn't a
general " ask questions here about random stuff" section. I'm sure almost everyone here has
been on YouTube, Google video, or a site like those that contain tutorials for photo shop,
programing, or anything else that you can find on your computer. I was wondering if you guys knew
what kind of software they use? I'm looking to take video of me working on my computer....
Video Editing Software
(11) I am looking for a free, decent video editing software. It does not need a lot of features. But I
would like it to have the "slicing options", so I can split/cut films. I would also like it to have
a simple intro option, just making simple intros with text. And the last thing, this is really
important so listen up: It must not require my computer to have sound. I messed something up, so the
sound is not working. This is causing my Windows Movie Maker not to work - since it requires some
stuff. I know that I should fix this, but I will be getting a new laptop in a few mon....
Carpentry Information
Based on my experiences as a Carpenter (10) This is my "Day Job". If anyone has any questions about Carpentry, Cabinetmaking, Finish
Carpentry, Timber Framing or Woodworking (in general), I would be pleased to assist them with find
answers. I am not "ticketed", which means I haven't learned any bad habits from schools, but
with more than a few years in Construction, and having worked from Concrete to Countertops, I am
very experienced. And that is a fair to middling Teacher... /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Residential, Commercial,
Industrial, Interior....
Quick Question
Is there a limit on the size of the MySQL database? (10) Question's in the title!....
Is My Computer Overheated?
Please look at the information! (15) My computer has a temputure sensor and showing 43 celcius is this to hot and i have a pentium 4.
2.40 GHz - My fan i running at a speed of 2949 RPM - Please make sure that the Topic title &
description has to be descriptive ....
Subquery In Mysql
(5) Is there anyway to make subqueries work in MySQL? I'm pretty certain someone out there knows
how. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Can anyone help?
CODE Select * from ITEMS where ID="Select Max(ID) from ORDERS"; This works
for MSAccess and SQL Server but why not in MySQL? I'll be writing some reports and I've
shifted database from MSAccess to MySQL. Help! Thanks.....
Connect To Remote Oracle Database With Toad
i'm lost (7) Hey gang, long time no see, my bad! Anyway, I got me a question. Does anybody know how to
connect to a remote oracle database using toad? When I read the docs for toad I get the impression
that I have to have a local oracle installation in order to use toad, but that just seems silly. I
guess I'm stuck at the point of trying to figure out how to tell toad where to look for all of
the configuration information it needs for the connection if I don't have any "Oracle Home"
directories. :crosses fingers: Peace!....
Mysql Database Size
related to the free database space (7) hi all! this is my first post /biggrin.gif' border='0' style='vertical-align:middle'
alt='biggrin.gif' /> and i have a doubt, how much mysql space i am allowed to use... i mean how
much is available for my free account....
Import From Excel File Into Mysql Database
(11) Has anyone tried using the excel import function that comes with phpmyadmin
http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
to import the data to , there is a link on the bottom left corner which says "insert data from a
text file into the table" - although it says text file it still can be used to import an excel file.
When you click on this link you will be taken to a page where you will be asked for the file name
(the....
Increment A Mysql Column
how to increment a MySQL column one unit (7) Hi, I have a column in a MySQL table which contains a counter of the views of the object described
by this table. I would like to increment this value by one everytime the object is viewed. Obviously
came into my mind the possibility of retrieving the value of this field, store it in a variable
increment this value by one and perform an UPDATE query again with this new value. My question is if
there is a MySQL option to update the field with its actual value plus an unit increment. I hope you
understand the issue.....
Complete Login System
With PHP + MYSQL (57) Its an complete login sistem made and tested by me and I think itwill be very usefull for people who
are tryn to learn PHP. First, let's make register.php: CODE <?
include("conn.php"); // create a file with all the database connections
if($do_register){ // if the submit button were clicked if((!$name)
|| (!$email) || (!$age) || (!$login) ||
(!$password) || (!$password2)){ print "You can't let
any fields in blank....
Mysql Database Setup : Setting Up Mysql Database
Guide to use MySQL database in your site (6) A SMALL INTRODUCTION TO DATABASE ============================= I have seen that many members have
problems with Database. Here is a small INFO which should give you the IDEA. mySQL is a DATABASE
server. You can access it using the link in Cpanel. Cpanel can be accessed by
"www.YOUR-SITE.com/Cpanel" There you have 4 Main Options :- 1> CREATE A DATABASE 2> CREATE A USER
3> ADD USER TO DATABASE 4> PHPMYADMIN CREATE : IT ALLOWS YOU TO CREATE A DATABASE CREATE USER
: IT ALLOWS YOU TO CREATE A USER. USING THIS, YOU CAN ACCESS THE DATABASE. A DATABASE CANNOT BE....
Looking for editing, information, mysql, database, deleting, rows
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for editing, information, mysql, database, deleting, rows
*MORE FROM TRAP17.COM*
|
advertisement
|
|