TOPIC:

How to parse SQL "Update..." or "Insert Into..." 9 years 8 months ago #67957

  • Topic Author
  • 1euro63
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 8
  • Thanks: 0
Hi all,
How may I parse some SQL-Command to the database?
Problem: I want to send some "Insert into .." or "Update ... " SQL-Commands to mySQL

I need SQL fired
- before I open a view (Content prepare?)
- before I edit a record (Editable prepare?)
- after the record is saved (?)

Example:

update jos_vw_unternehmen_akt set datum = curdate()

to be fired before a view is called.
(in phpmyadmin the command works fine)

According to other posts in this forum, I tried to put the following line into a content prepare of a view:
$result = mysql_query(" update jos_vw_unternehmen_akt set datum = curdate() ");

But it doesn't work.

Thanks for an advice

Please Log in or Create an account to join the conversation.

Re: How to parse SQL "Update..." or "Insert Into..." 9 years 8 months ago #68175

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.042 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!