Hallo
That My First Time To Use Mysql In Quest
So Litile Help PLz:)
You See In The Quest :
Sql:
</b>
But In The Sql I Write In
ID : 1
title : Test
[Only registered and activated users can see links. Click Here To Register...]
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 :o
Sry For My Bed English:(
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])
</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
[Only registered and activated users can see links. Click Here To Register...]
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 :o
Sry For My Bed English:(