Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7800493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:39:23+00:00 2026-06-02T00:39:23+00:00

Hello im trying to make a few random numbers and do a simple mysql

  • 0

Hello im trying to make a few random numbers and do a simple mysql update but for some reason Dreamweaver is showing a error on the closing bracket.

<?php


if (isset($_POST['battle_move'])) {

$battle_move= mysql_real_escape_string($_POST['battle_move']);
$battle_move22 = strip_tags($battle_move);
$random_number = rand(1, 50); 
$a = $random_number ;
$b = 5;
$random_number1 = ($a * $b) ;


$random_number2 = rand(1, 50); 
$c = $random_number2 ;
$d = 5;
$random_number22 = ($c * $d) ;

mysql_query("UPDATE maplog SET wildpokemonhp=wildpokemonhp+".$random_number1." WHERE username = '".$_SESSION['username']."'")
mysql_query("UPDATE maplog SET userpokemonhp=userpokemonhp+".$random_number22." WHERE username = '".$_SESSION['username']."'")

    }
?>

I upload it to my server and get a white page. I have never ever come across this be for… Its saying the last } is the problem…..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:39:25+00:00Added an answer on June 2, 2026 at 12:39 am

    Missing ; on the mysql_query seems to be the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i was trying to make function with PDO but getting error (new to
I am trying to do make a C++ hello world that supports Unicode, but
Hello I am trying to make a C# program that downloads files but I
I'm trying to make a little Hello World webservice with Django following a few
hello im trying to make something like github treeslider im new to javascript.. but
Hello I'm trying to make a simple web chat, and I want the user
Hello i'm trying to make a simple ios app with tabs and navigation .
Hello everyone i need some help. I'm trying to make an application for mac
Hello all im trying to make this slide effect http://tinyurl.com/628z32d but im new to
Hello I am trying to make a mostly CSS dropdown with some jQuery handling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.