Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7406515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:34:13+00:00 2026-05-29T05:34:13+00:00

I have been able to create simple MVC app to display the form and

  • 0

I have been able to create simple MVC app to display the form and use information from the database. [ so sql I use SELECT ].

However, when I use ‘update’ or ‘delete’ the data in the database stay the same. I don’t understand!?!

[ I use controller.php call model and pass id to match with the row in the table]

  1. I check data that pass in there, and it did echo the value of id.

  2. The page I load from the controller that call method in model has complete without the error (it could be that the syntax is right, but logic is wrong).

  3. so i start to change sql statement to SELECT and it gives me the value that match with $id param’

I don’t understand? any clue?

 $query = JFactory::getDbo()->getQuery(true);

 $db =& JFactory::getDBO();
 $query = "DELETE FROM `menutables`  WHERE `id2` = $id ";


$db->setQuery($query);
$db->query(); // this line I also take it out to test, it is fine but no data change either
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:34:14+00:00Added an answer on May 29, 2026 at 5:34 am

    Do you try to modify a Joomla database or a personal one?

    Look at this pages :
    http://docs.joomla.org/How_to_connect_to_an_external_database
    http://docs.joomla.org/How_to_use_the_database_classes_in_your_script#Tips.2C_Tricks_.26_FAQ

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been able to create ASPX pages without the code behind, but I
I have been able to copy the raw data from an otherwise inaccessible USB
Based on several good articles I have been able to successfully create a few
I have been able to zip the contents of my folder. But I would
I have been able to design my layout so that it has 2 columns
The best that I have been able to come up with is: strlen(preg_replace('/^([\\*]*)\s(.+)/',$1,$line)); ^^That
Hi I have been able to extract a VARCHAR to a date using string_to_date
It seems obvious that some people have been able to figure out how to
My knowledge of xml and php is somewhat basic but have been able to
I'm having problems refreshing .Net 2.0 with IIS 6. I have been able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.