| | |
PRoblem in Delete
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Sep 2009
Posts: 539
Reputation:
Solved Threads: 63
0
#22 29 Days Ago
•
•
•
•
is there any difference in any both the version of my sql??????
But its not the MySQL version issue. Can you put here the MySQL connection settings you making.Like i said previously, when you executing the script on the server, you need to do the proper changes in the server address like "localhost" won't work there.
Put the IP of your database server there.It might be possible that, the connection your script making on the server is to some other database and its executing fine there, but you checking with some other database as par your expectation.
"The discipline of writing something down is the first step towards making it happen."
follow me on twitter
follow me on twitter
•
•
Join Date: Nov 2009
Posts: 44
Reputation:
Solved Threads: 2
0
#23 29 Days Ago
hii thanks once again
see my script carefully 1st of all i am getting some date from the database in my tables with my php script the data has been appered on the web page without any problem but wenever i am selecting a records to delete from the data base query executes fine even the echo message has been apperead that records have been deleted.
but still no records have been deleted from the database
if records are coming well by select query on the table then its mean the selected database is correct
what to do???????
see my script carefully 1st of all i am getting some date from the database in my tables with my php script the data has been appered on the web page without any problem but wenever i am selecting a records to delete from the data base query executes fine even the echo message has been apperead that records have been deleted.
but still no records have been deleted from the database
if records are coming well by select query on the table then its mean the selected database is correct
what to do???????
•
•
Join Date: Sep 2009
Posts: 539
Reputation:
Solved Threads: 63
0
#24 29 Days Ago
•
•
•
•
hii thanks once again
see my script carefully 1st of all i am getting some date from the database in my tables with my php script the data has been appered on the web page without any problem but wenever i am selecting a records to delete from the data base query executes fine even the echo message has been apperead that records have been deleted.
but still no records have been deleted from the database
if records are coming well by select query on the table then its mean the selected database is correct
what to do???????
But what I am concerned about is that, are you using the same database for both,localhost and online too.That's what I was checking in the previous post.Please make it clear too.
"The discipline of writing something down is the first step towards making it happen."
follow me on twitter
follow me on twitter
•
•
Join Date: Sep 2009
Posts: 539
Reputation:
Solved Threads: 63
0
#26 29 Days Ago
•
•
•
•
no no no
i am using my diffterent database with locahost & with internet like
here in localhost i am using----- localhost,root,'no password'
on internet i am using some ----someIP address,hnitindia,"with password"
PHP Syntax (Toggle Plain Text)
echo mysql_error($connection);
I suspect your "this MySQL user" don't have a grant on the database.
You getting the echo that, "Successfully deleted " doesnt mean necessarily the query got executed. This echo will depend upon what you comparing against.
give it a try-
PHP Syntax (Toggle Plain Text)
$sql = "DELETE FROM $tbl_name WHERE id='$del_id' "; $result = mysql_query($sql,$con); echo "result=>".$result."Error=>".mysql_error($con);
"The discipline of writing something down is the first step towards making it happen."
follow me on twitter
follow me on twitter
•
•
Join Date: Sep 2009
Posts: 539
Reputation:
Solved Threads: 63
0
#28 29 Days Ago
"The discipline of writing something down is the first step towards making it happen."
follow me on twitter
follow me on twitter
![]() |
Similar Threads
- mysql - problem using delete (PHP)
- memory leak problem... (C)
- can't delete text from table cells (Site Layout and Usability)
- Aim Problem Need Help (Windows NT / 2000 / XP)
- CDRW Problem (USB Devices and other Peripherals)
- problem with accessing sites (Web Browsers)
- hijacker.exe help, have no clue what's causing problem and don't want to delete good (Viruses, Spyware and other Nasties)
- Can't delete three .tmp files (Windows 95 / 98 / Me)
- CommonNames problem (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: connecting with mysqli
- Next Thread: calling different images from one php file
| Thread Tools | Search this Thread |
5.2.10 action address ajax apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display domain dynamic echo email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image include insert integration ip java javascript joomla limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop paypal pdf php popup problem query radio random record recursion regex remote script search security server sessions sms soap sockets source space sql syntax system table tutorial update upload url validator variable video web xml youtube





