PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Data Base
Data Base
Débuté par Marta Reis, 27 sep. 2013 14:09 - 5 réponses
Posté le 27 septembre 2013 - 14:09
omg.. i dont understood NOTHING about DB in this program...

i can use a extern db?

for example, i instale wamp, and i can create a DB localhost for PHPMYADMIN

i try connect but give a error..

so i create a intern db

and now? i cant connect..
i dont fond nothing in toturials

can help me?

(send a DB print







(sorry my english.. help me guys is very important :x )
Posté le 27 septembre 2013 - 16:18





I create a local host BD and i import...
(i miss mysql dll xD )


but now i cant connect.
Posté le 27 septembre 2013 - 19:27
Hi Marta

as a rule, if you do not show us the faulty code, there is little chance
that we can tell you what is wrong with it

Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

Plus d'information sur http://fabriceharari.com


On 9/27/2013 8:18 AM, Marta Reis wrote:






I create a local host BD and i import...
(i miss mysql dll xD )


but now i cant connect.
Posté le 30 septembre 2013 - 13:56
i resolve my problem i think...

i create a local data base.

i insert records manualy, and now i need than user insert some records.

for exemple, in this form:





i need than user write in text box, de value go to DataBase and then user see the new product in table..

at table I have this code (in initialization of table_produtos):

TableAddLine(TABLE_Produtos,EXPRESS_produtos.id_produtos,EXPRESS_produtos.produtos)


i dont have code in text box.

in button i have this code:
TableInsert(TABLE_Produtos)


(this code insert a white line in table)

can help me?


(sorry my bad english again :x)
Posté le 30 septembre 2013 - 15:04
Hi Marta

1.Best practice for using the forum is to start a new topic for each new
question

2. It seems to me that you are making the classic new webdev mistake of
confusing TABLES (which are controls) and FILES (part of a DB) in wlanguage.
So if you are trying to write in the FILE, you should look at the hxxxx
functions (and in particular the hadd)
But as all this is extremely basic, I suggest that you REALLY spend the
time going in details through the TUTORIAL and examples that come with
the product

Best regards


--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com

On 9/30/2013 5:56 AM, Marta Reis wrote:
i resolve my problem i think...

i create a local data base.

i insert records manualy, and now i need than user insert some records.

for exemple, in this form:






i need than user write in text box, de value go to DataBase and then
user see the new product in table..

at table I have this code (in initialization of table_produtos):

TableAddLine(TABLE_Produtos,EXPRESS_produtos.id_produtos,EXPRESS_produtos.produtos)


i dont have code in text box.

in button i have this code:
TableInsert(TABLE_Produtos)


(this code insert a white line in table)

can help me?


(sorry my bad english again :x)
Posté le 30 septembre 2013 - 15:19
i just need write in a data base table..
i can read information but cant compare and insert