Jump to content
MakeWebGames

Recommended Posts

Posted
For the record the $ir variable doesn't make any sense. Yes, I'm talking about the name of it.

I think it makes sense if you make something out of it like "i" (as in myself) "r" (as in result) since the devs of mc use $r for pretty much everything else :p

But to make my last post a little more clear just incase it didnt really sink in, for example im user id 2 and your user id 1 I can only see the information being passed as an ir var for user id 2 and you cant see what "ir" for user id 2 only user id 1 ir vars

Posted

It's an array of data?

It's something like this (I assume.)

$run = mysql_query("SELECT * FROM user WHERE id = '".$_SESSION['id']."'");
$ir = mysql_fetch_array($run);

 

Outside of mccodes this wouldn't have any meaning.

Posted
It's an array of data?

It's something like this (I assume.)

$run = mysql_query("SELECT * FROM user WHERE id = '".$_SESSION['id']."'");
$ir = mysql_fetch_array($run);

 

Outside of mccodes this wouldn't have any meaning.

Unless you had a table called `users`, with the column `id`, and a session with the index `id` ;)

Posted
He means the $ir variable is poor use of naming and anywhere but MC code would use something to reflect what it is doing, I think...

I was giving an example sniko lol.. dont use mcc and only know some vars because of the conversions to GRPG lol

Posted
Unless you had a table called `users`, with the column `id`, and a session with the index `id` ;)

I think it is, I'm not a pro at MCCodes, but I asked a few senior's and they said yep!:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...