mysql / php thing
hello guys. im trying to make top15 somehow working...its saving by sql, and the there are three tables...one with map names, with player's informations and player's records...then im trying to show player ingame top15 by:
show_motd( id, "site.com/records/%s", mapname ) but can anyone help me about how to present records on every map differently, cuz im not that good at php and mysql im thinking, should i have one .php which will generate in /records/ folder every map.php...like: de_dus2.php de_aztec_0.php (and so on...every mapname from sql table) or is there any 'easier' way? :) thanks in advance! |
Re: mysql / php thing
Use GET parameters - site.com/records.php?map=%s.
|
Re: mysql / php thing
as Klippy said use
PHP Code:
Code:
show_motd( id, "site.com/records.php?map=%s", mapname ) |
Re: mysql / php thing
ok how easy was it..thanks guys
now i got one strange problem...in chrome the top is LOADED properly...but in cs above the table it says: mysql_fetch_array() expects parameter 1 to be mysqli_result boolean given in ... and noone is in the table..weird Edit: found where is the problem but not yet the solution: $sql="SELECT ......... map=$map_name..." *when i put map=de_dust (for example) it is working.. |
Re: mysql / php thing
You didn't provide the code and the real (non-edited) error message, no one can help you.
|
Re: mysql / php thing
mysql_fetch_array() expects parameter 1 to be mysqli_result boolean given in rekordi.php line 82
the thing is, with the present code for getting things from datebase: Code:
$sql="SELECT ......... map=$map_name..." |
Re: mysql / php thing
Quote:
|
Re: mysql / php thing
thanks for help.with your quotes it gives me insta error, but with added ' so its -> map='".$map_name."' its now showing in chrome, but table is empty in cs, without any error lol
|
Re: mysql / php thing
PHP code doesn't depend on your browser, it's executed on the server, you have something else going wrong. Unless you post more than one string nobody can help you.
|
Re: mysql / php thing
i think i understood what you said, but as i said, with that code, chrome is showing me everything with no problems, but in-game it wont show the same...what code should i post?
is this enough: Code:
<?php |
| All times are GMT -4. The time now is 12:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.