Jump to content
MakeWebGames

Recommended Posts

Posted

@kcmajor36: Please wrap you code in code tags please. There are like 5 buttons in the "Go Advanced" reply are which has

  • PHP
  • HTML
  • CODE
  • SQL
  • CSS

And all those are accessible by putting them in brackets like so:

[one of those above]your awesome stuff here[/one of those above]

  • 1 year later...
Posted
Ok I made a new index page which i used to use on my old game its pretty much advanced

Ok replace your index Page with This

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

And your done screenies are below

[ATTACH=CONFIG]1053[/ATTACH][ATTACH=CONFIG]1054[/ATTACH]

One problem, attacking record is not showing.

Well it is, just not how many won/lost

Posted
Do you record how many times someone wins or loses?

Yes I do, I will post my old index code,

So you can see how it is on there, I tried editing it, but then it returned a blank page

- - - Updated - - -

 

Lol this was years ago when i was still learning coding, now im pro

Still good :)

Posted
Do you record how many times someone wins or loses?

Here is my old index.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

I have tried going off the queries from this, but still nothing..

Can anyone help?

Please

Posted

I have tried going off the queries from this, but still nothing..

Can anyone help?

Please

Well, what does your current index.php look like when attempting to use these queries? That will at least help show what you've tried so far.

~G7470

Posted
Well, what does your current index.php look like when attempting to use these queries? That will at least help show what you've tried so far.

~G7470

This is what I have so far

[ATTACH]2097[/ATTACH]

1348212803_Screenshot_2015-06-08-22-24-322.thumb.jpg.aeb7bf3d50538834539586e21656fdfe.jpg

Posted
This is what I have so far

[ATTACH]2097[/ATTACH]

Oops, I guess I didn't say it right..haha. Looks nice, but what does your index.php code currently look like?

~G7470

Posted
Oops, I guess I didn't say it right..haha. Looks nice, but what does your index.php code currently look like?

~G7470

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

A quick glance shows that if you are not storing attack information in the users table, then simply using

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

to get "attacks won" won't work for you. Same goes with the other attack information variables there.

You have to (at least) reference the data that you were originally using to generate this information. This is what you were originally doing to do so:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Once you understand what this snippet of code here is doing, you should be able to see what variables should go where in the new index file in order to display it properly.

~G7470

Posted
Repaired and sent in response to the very same message in my inbox :/

Thanks, I got it, copied the code, and it fixed the attack problem.

Now I'm having a problem with normal Stats, it's not showing them correctly, such as my strength is at 14,000+ and it's just saying 14 I will provide a screen shot..

What could be causing this

[ATTACH]2100[/ATTACH]

519667470_Screenshot_2015-06-10-14-34-272.thumb.jpg.103062a821141e4a8f0a97de7cd80274.jpg

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...