That My First Time To Use Mysql In Quest
So Litile Help PLz
You See In The Quest :
PHP Code:
when login begin local title = mysql_query("select * from player.news where id = '"..l.."' ") local title_table = {} for i = 1,table.getn(news),1 do table.insert(title_table,news.title[i]) end local m = select_table(title_table) say_title(title_table[m])
Sql: </b>
PHP Code:
CREATE TABLE `news` ( `id` int(16) NOT NULL , `title` varchar(50) NOT NULL , `text1` varchar(50) NOT NULL , `text2` varchar(50) NOT NULL , `text3` varchar(50) NOT NULL , `text4` varchar(50) NOT NULL , `text5` varchar(50) NOT NULL , PRIMARY KEY (`id`) ) ;
But In The Sql I Write In
ID : 1
title : Test
It's Has To Be When I Login The Game
I Have To Get The Word That I Write In The Sql
But Nothing Show To Me
when login begin local title = mysql_query("select * from player.news where id = '"..l.."' ") local title_table = {} for i = 1,table.getn(title),1 do table.insert(title_table,title.title[i]) end local m = select_table(title_table) say_title(title_table[m])
when login begin local title = mysql_query("select * from player.news where id = '"..l.."' ") local title_table = {} for i = 1,table.getn(news),1 do table.insert(title_table,news.title[i]) end local m = select_table(title_table) say_title(title_table[m])
There is no "news" table.
PHP Code:
when login begin local title = mysql_query("select * from player.news where id = 1 ") local title_table = {} for i = 1,table.getn(title),1 do table.insert(title_table,title.title[i]) end local m = select_table(title_table) say_title(title_table[m])
when login begin local title = mysql_query("select * from player.news where id = '"..l.."' ") local title_table = {} for i = 1,table.getn(news),1 do table.insert(title_table,news.title[i]) end local m = select_table(title_table) say_title(title_table[m])
There is no "news" table.
PHP Code:
when login begin local title = mysql_query("select * from player.news where id = '"..l.."' ") local title_table = {} for i = 1,table.getn(title),1 do table.insert(title_table,title.title[i]) end local m = select_table(title_table) say_title(title_table[m])
There news table in plyer i make it
Quote:
Originally Posted by [iRemix]
Which mysql query function do you use?
I Really Don't Know
My First Time To Use The Mysql , So I Don't Know Allot
I Really Don't Know
My First Time To Use The Mysql , So I Don't Know Allot
but there is no news table in your quest. You save the result of the query in the table " title" so you are only able to access the values through this table.
Mysql_query(SELECT) into variable 05/04/2014 - Metin2 Private Server - 3 Replies Hello, I have the problem.I need rewrite some informations with using mysql_query(SELECT) into my variable.I have table "pvp" in player into which is writing number of kills.
There is my quest but It doesn't work. Could you help me please? Thx
[HELP] Disconnect 5101 on screen "Select Character" 02/17/2014 - Rohan - 2 Replies i have a little problem, my server some user will disconnect 5101 on screen "Select Character".
Can you tell me how to fix it. I do not know how to solve it.
help me please..
SH Studio "Must select a valid model." 10/20/2012 - Shaiya - 7 Replies Moin, wenn ich was in SH Studio änder, und es abspeichern will sagt er mir "You must select a valid model." Sufu konnte mir nichts sagen, weiß jeman wodran das liegt?
Mfg. AdVHero
/edit
Ich will halt nur Stats verändern, nicht das Skin o.ä. Texte ändern, etc. nur das und nicht mehr^^