Problem with saving new house (MYSQL)
#5

Quote:
Originally Posted by expressoboy123
Посмотреть сообщение
Do i need to remove one query?
Wait, You use the query twice but want to save data of both querys in 1 row right?
You shouldn't remove a query, but convert them into one.
If the string is very long, you can use strcat to concatenates two strings into one

https://sampwiki.blast.hk/wiki/Strcat
PHP код:
new string[40] = "Hello";
strcat(string" World!");
 
// The string is now 'Hello World!' 
Also, when you execute the first query, you can also use the second query to update the row you added with the first query.

https://dev.mysql.com/doc/refman/8.0/en/update.html
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)