FrançaisEnglishEspañol
PC SOFTForums homeLast messagesOnline repository
PC SOFT
Find...
Perform the searchSearch in...
Newsgroup dedicated to WINDEV (current version), in English
MYSQL UPDATE through WEBDEV INTO MYSQL SERVER
Dec., 22nd 2009 at 09:46 AM
Mitchell
<gu...st@news.pcsoft.fr>


Dear coders,
I have the following scenario : (webdev - php - mysql )
1. I have one table called "TblUsers" which I create from analysis and data type is MySQL, The "Tblusers" table contains two columns "LogonName", "LogonPass" , When I run the Webdev PHP project "index.php" , dynamically it will create a tables to MYSQL server. (I put a code Hcreationifnotfound("*")) on the Global Initialization of the project.
2. When I add another column through analysis and I add a column "LogonFullName", then I again run the Webdev PHP project. the table "TblUsers" on my MYSQL server will does'nt update , it is still having two columns .
How to update the Table column dynamically ? If I want to add new tables on my analysis and to add a new column to any tables, I want also that it should update the tables on MYSQL SERVER.
Advise please.
Thanks


Replies to this message:
Re: MYSQL UPDATE through WEBDEV INTO MYSQL SERVER
thanks issah, nice one!
From Mitchell - Dec., 25th 2009 - More »
Re: MYSQL UPDATE through WEBDEV INTO MYSQL SERVER
Thanks a lot Paulo and Arie, I thought there is automatic way of updating it. what I did was everytime I add new column to my table on the analysis, I also open the MySQL Administrator then I add it a ...
From Mitchell - Dec., 22nd 2009 - More »
Re: MYSQL UPDATE through WEBDEV INTO MYSQL SERVER
If you use MYSQL, MSSQL, ORACLE ... you a have to take care of the changes made to existing tables. Creating new tables works ok but changing existing ones must be made by code. You con do in several ...
From Paulo Oliveira - Dec., 22nd 2009 - More »
Re: MYSQL UPDATE through WEBDEV INTO MYSQL SERVER
One way is to run the necessary SQL-statements. sSQL is string = "ALTER TABLE Tblusers ADD LogonFullName varchar(50)" dsTmp is data source IF NOT HExecuteSqlQuery(dsTmp,yourconnection,hQueryWithoutCor ...
From Arie Mars - Dec., 22nd 2009 - More »