Re: Using MySQL and WebDNA

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58553
interpreted = N
texte = Do you need to add a where statement in your update? ----- Original Message ----- From: "Edwin Hoevers" To: "WebDNA Talk" Sent: Wednesday, June 23, 2004 11:56 AM Subject: Using MySQL and WebDNA > Hello, > > I'm going to use mySQL as a database for a website. > > Connect: > [SQLConnect > dbType=MySQL&host=localhost&database=cms&uid=root&pwd=&conn_var=conn1][/SQLC > onnect] > > Search record: > [SQLExecute conn_ref=conn1&result_var=rs2] > SELECT * > FROM `website` > WHERE 1 AND `page` = '[page]' > [/SQLExecute] > > View record: > [SQLResult result_ref=rs2] > [title] > [/SQLResult] > > I want to update the record with a new title like this: > [SQLExecute conn_ref=conn1&result_var=rs3] > UPDATE `website` SET `title` = '[url][title][/url]' > [/SQLExecute] > > I keep trying but it's not working yet. > Who's the answer to give commands to UPDATE and DELETE records? > > Greetings, > Edwin Hoevers > > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Using MySQL and WebDNA ( "Erol Guneri" 2004)
  2. Using MySQL and WebDNA ( "Edwin Hoevers" 2004)
  3. Using MySQL and WebDNA ( "Edwin Hoevers" 2004)
Do you need to add a where statement in your update? ----- Original Message ----- From: "Edwin Hoevers" To: "WebDNA Talk" Sent: Wednesday, June 23, 2004 11:56 AM Subject: Using MySQL and WebDNA > Hello, > > I'm going to use mySQL as a database for a website. > > Connect: > [SQLConnect > dbType=MySQL&host=localhost&database=cms&uid=root&pwd=&conn_var=conn1][/SQLC > onnect] > > Search record: > [SQLExecute conn_ref=conn1&result_var=rs2] > SELECT * > FROM `website` > WHERE 1 AND `page` = '[page]' > [/SQLExecute] > > View record: > [SQLResult result_ref=rs2] > [title] > [/SQLResult] > > I want to update the record with a new title like this: > [SQLExecute conn_ref=conn1&result_var=rs3] > UPDATE `website` SET `title` = '[url][title][/url]' > [/SQLExecute] > > I keep trying but it's not working yet. > Who's the answer to give commands to UPDATE and DELETE records? > > Greetings, > Edwin Hoevers > > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Erol Guneri"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

RequiredFields template (1997) [append] vs. [appendfile] delta + question? (1997) Re:Dumb Question about Docs (1997) Random Images (2000) Digest Version (2000) Still Pulling my hair out (2001) listfiles shows invisible files ... (1999) [WebDNA] WebDNA Sciprt for Zipping files? (2012) Emailing html (1998) WebCat2b15MacPlugin - showing [math] (1997) WebCat2 - [format thousands] (1997) Re[2]: Problem with new formvariables (2000) Welcome! (2000) WebCatalog.acgi quitting with error Type 2 (1998) macosx 1 process, linux N processes, macosx chokes under load (2001) Setting up shop (1997) Duplicate Cart ID (2001) Multiple fields on 1 input (1997) WebCat/CyberStudio Compatibility (1998) user selectable sort order (2000)