error of MobTop Script

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

#error #fix #megatop #mobtop #script

4 replies · 887 views · started 16 years ago · 1 min read

3 participants
razor Developer · 52 posts #1

I have installed a MobTop Toplist script, i hv fixed most errors but i am lustly unable to fix a problem that is, when sum adding site or editing site then at the keywords section entering any word it is being replaced by Arrey. Can any1 tell me how can i fix it ?

something else Fellow · 2,296 posts #2

your missing the array number or name

eg: $string[0] or $string["name"] Depending on how it is set up in script 😛

razor Developer · 52 posts #3

Thanx

Thanx bro, but can u tell me where i can find it ?

something else Fellow · 2,296 posts #4

I havent got the script so i cant tell you where 😛

When Calling Arrays you are calling a list of items eg:

id, name, price

$result = mysql_fetch_array(mysql_query("SELECT id, name, priceFROM example"));

so id is the first item you are calling ..... however in an array the first item is always 0 and you then count up from 0

$result[0] is id $result[1] is name $result[2] is price

or alternatively you can use

$result['id'] is id $result['name'] is name $result['price'] is price

at the moment you are calling $result which will just show the words array

$result is array (in this case but $result can be pretty much called any word)

hope this helps

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close