Menu
Home
Forum
Support
Audio
(7,804)
Hardware
(45,772)
Internet/Social Networks
(31,629)
Linux/Unix
(4,098)
MacOS
(1,765)
Messaging
(32,503)
Mobile
(27,388)
Network
(12,061)
Office Software
(15,776)
Programming
(2,424)
Software
(20,631)
Video
(122)
Video Games
(8,146)
Viruses/Security
(4,508)
Webmastering
(860)
Windows
(30,563)
Discussions & Threads
Bugs and Suggestions
(962)
Members' Cafe
(1,608)
Opinions About Reviews
(99)
Opinions About the News
(1,140)
Rankings
Ranking Software
(6)
How To
Download
Ask a question
Windows Software
Mac Software
Linux Software
Android Apps
BlackBerry Apps
iPhone Apps
Windows Phone Apps
News
Encyclopedia
Sign Up
Log In
Ask a question
Search
Sign Up
Log In
High-Tech
Health
Sign Up
Language
English
Español
Deutsch
Français
Italiano
Português
Nederlands
Polski
हिंदी
Bahasa Indonesia
Русский
Log In
Search
Home
Forum
Ask a question
Recently asked
Windows
Mac
Linux
Internet
Video games
Software
Hardware
Mobile
Network
Virus
Become a member
How To
Download
Ask a question
Windows Software
Mac Software
Linux Software
Android Apps
BlackBerry Apps
iPhone Apps
Windows Phone Apps
News
Encyclopedia
Home
Forum
Programming
Ask a question
Report
SQL statement/php
no_one - Mar 23, 2018 at 03:25 PM - Latest reply:
ac3mark
10759
Posts
Monday June 3, 2013
Registration date
Moderator
Status
November 2, 2018
Last seen
-
Mar 23, 2018 at 03:53 PM
Programming
Ask a question
Report
i got an unidentified index error in this line 6 and 7 please help
<?php if( ! defined( 'ACCESS' ) ) die( 'DIRECT ACCESS NOT ALLOWED' ); ?>
<?php
if( isset( $_POST ) ) {
$name = $_POST[ 'name' ];
$id = $_POST[ 'id' ];
if( $DB->query( "UPDATE products SET name='$name' WHERE id=$id" ) ) {
$MESSAGE = "Product successfully updated!";
$MESSAGE_TYPE = "info";
} else {
$MESSAGE = "Failed to update Product";
$MESSAGE_TYPE = "danger";
}
}
See more
SQL statement/php
SQL - Avoid duplicates in the result of a SELECT query
»
How-To - SQL
Help with sql statement
»
Forum - Programming
Undefined index in php
»
How-To - PHP
Php redirect to another page
»
How-To - PHP
Www.facebook.com/recover.php
»
How-To - Facebook
Your reply
Reply to this topic
3 replies
Best answer
Report
Respond to ac3mark
ac3mark
10759
Posts
Monday June 3, 2013
Registration date
Moderator
Status
November 2, 2018
Last seen
-
Mar 23, 2018 at 03:28 PM
1
Thank you
Get onto the SQL server, and issue the same QUERY with the same login credentials to see if it errors out.
Thank you, ac3mark
1
Something to say?
Add comment
has helped 1447 users this month
Report
Respond to no_one
no_one
-
Mar 23, 2018 at 03:38 PM
the sql in the server is correct but, in the web it still got an unidentified index
Report
Respond to ac3mark
ac3mark
10759
Posts
Monday June 3, 2013
Registration date
Moderator
Status
November 2, 2018
Last seen
-
Mar 23, 2018 at 03:53 PM
What credentials do the web server use to connect?
Respond to ac3mark
Your reply
Your reply
Reply to this topic
Ask a question
Featured
Get the Transcript of a YouTube Video
Sign Up for a Free Netflix Trial
Reverse Image Search with Google
No Sound from Headphone Jack
Writing Professional Emails in English