SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Is this right?

Hybrid View

  1. #1
    SitePoint Enthusiast Adam Black's Avatar
    Join Date
    Oct 2000
    Location
    Nova Scotia, Canada
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is this right?

    ok i have this code but anything after the > next to the 0 gets shown. I took out >0) and then it didn't show anything but like do i need the >0 ????

    if (mysql_result($result,0,0)>0) { error ("A user already exists with your chosen userid.\\n".
    "Please try another.");

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That looks like the code in one of the MySQL articles here at Sitepoint. Can you post the code you are using to perform the query to check that is OK?
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •