Jump to content

talmik

New Members
  • Posts

    5
  • Joined

  • Last visited

About talmik

  • Birthday March 30

Profile Information

  • Location
    UK

talmik's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sadly I am not a programmer, I had these scripts custom made for me years ago. I cant even find a host who still uses the older php lol
  2. Thanks for your comments guys. This is the full section of code $roomnumber = mysql_result($currentuser, 0, "currentroom"); $currentroom = mysql_query("SELECT * FROM rooms WHERE number = $roomnumber LIMIT 1"); $roomname = mysql_result($currentroom, '$roomnumber', "name"); $roomname = explode(" ", $roomname); $roomname = $roomname[0]; $roomdescription = mysql_result($currentroom, 0, "description"); If I delete the line in question, the site works but it does not work correctly. It is basically calling from a list of rooms which are each named and number
  3. Removing the quotes sadly does nothing. It did work before, have been using the code fine for about 4 years
  4. My old scripts suddenly dont work now that my server upgraded to php 5 for example This error- Warning: mysql_result() expects parameter 2 to be long, string given in /home/plegend/public_html/entry.php on line 165 This code- $roomname = mysql_result($currentroom, '$roomnumber', "name"); What is differant now?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.