Jump to content

ReKoNiZe

Members
  • Posts

    49
  • Joined

  • Last visited

    Never

About ReKoNiZe

  • Birthday 04/27/1988

Contact Methods

  • MSN
    until.heaven@hotmail.com

Profile Information

  • Gender
    Male
  • Location
    Newark, OH

ReKoNiZe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. SELECT COUNT(*) As TotalNumber FROM new_members WHERE mode="visa" That will list a TotalNumber of the times visa was used.
  2. Please use code tags, your code makes my eyes bleed $fileName = $_FILES['imagefile']['name']; $tmpName = $_FILES['imagefile']['tmp_name']; $fileSize = $_FILES['imagefile']['size']; $imtype = $_FILES['imagefile']['type']; @list(, , $imtype, ) = getimagesize($_FILES['imagefile']['tmp_name']); // Get image type. if ($imtype == 3) // cheking image type $imageextension="png"; // to use it later in HTTP headers elseif ($imtype == 2) $imageextension="jpeg"; elseif ($imtype == 1) $imageextension="gif"; else $msg = 'Error: unknown file format'; $fp = fopen($tmpName, 'r+'); $content = fread($fp, filesize($tmpName)); //reads $fp, to end of file length $instr = fopen("latest.img","rb"); $image = addslashes(fread($instr,filesize("latest.img")));
  3. Or maybe he wants like: if(strlen($variable) > 12) echo 'String is too long, try again'; else echo 'Your string is short enough, you may enter';
  4. Why not juse use the empty function? empty returns true and false.
  5. In the main commentrows while loop, you could try do a query for that users_id. So you could do: $userQuery = mysql_query("SELECT * FROM users WHERE id = '$sessionname'"); $userresult = mysql_fetch_array($userQuery); if there is a different user for each comment, you will need to change that $sessionname to $commentrows['id'] or whatever you use that has the ID of the commented user. Then you could just do $userresult['username']; and so forth.
  6. Have it echo the session username to you to see what the current username is then.
  7. Must be an issue with the session then if none of them work.
  8. Did you try any of them by themselves? Example: if(isset($_SESSION['username'] == "Admin")) And try each one individually to see if its working at all.
  9. You need to fix $memberQuery = SELECT member_id FROM member_id WHERE email='$email'. That was just an example, its fairly close to what you need, look at the INSERT INTO query code right above it and follow that standard.
  10. Line 48, you need another bracket. echo $id . "<a href='view.php?id=$id'>$name</a>" . $age . $color . $breed . $gender . "<br> />"; } needs to be: echo $id . "<a href='view.php?id=$id'>$name</a>" . $age . $color . $breed . $gender . "<br> />"; } } You were missing a closing bracket from your else statement.
  11. That doesn't make. It should work, I'm not 100% why its not working. Your function must be adding some character we can't see.
  12. On this line: if($object->has_attribute($attribute)) { What does has_attribute function do or look like? It looks like you're making an empty object and seeing if it has any attributes, which it won't, hence it returns false.
  13. Do the query I stated above and select the auto-incremented key(whatever that field is called) and do: $memberQuery = SELECT FROM etc(query earlier) $memberResults = mysql_fetch_assoc($memberQuery); Then you can just do a $memberResults['member_id'];(Or whatever your auto-incremented key is called) to output the member id
  14. Hmm.. Show us more code if you can then, sounds like it should work fine.
×
×
  • 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.