Jump to content
MakeWebGames

Recommended Posts

Guest Anonymous
Posted

Re: New improved mailbox.

Assuming you understand of course *why* you add them...

There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc).

And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field...

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: New improved mailbox.

 

Assuming you understand of course *why* you add them...

There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc).

And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field...

using a variable to set the string?

Posted

Re: New improved mailbox.

Using the Replace method of a String class. This would replace single quotation marks with two adjacent single quotation marks to make sure that the data is formatted correctly when you concatenate values for a SQL statement.

 

Assuming you understand of course *why* you add them...

There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc).

And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field...

  • 4 months later...
Posted

Re: New improved mailbox.

 

Assuming you understand of course *why* you add them...

There is no reason to add single quotation marks to numeric values, they are only needed in 99% of cases for string fields (char, varchar, text etc).

And I'll give a scooby snack to the first person who can tell me the one instance of where quotation marks are not required around a string field...

when the string is already contained within a variable

Guest Anonymous
Posted

Re: New improved mailbox.

Yes... I guess this is valid however what I was looking for is discussed here

Posted

Re: New improved mailbox.

I like this mod as it offers a great improvement over the old mccodes mailbox! Keep it up, I would love to see more updates on this! :mrgreen:

Why not go for a forum mod as well based on the same script? :)

  • 2 weeks later...
Posted

Re: New improved mailbox.

if($f['mail_from'] == $ir['userid'])

{

$pass = 1;

}

else

{

$pass = 0;

}

if($f['mail_to'] != $ir['userid'])

{

if($pass != 1)

{

echo 'This mail is not yours!';

$h->endpage();

exit;

}

}

 

that's a bit long winded

Posted

Re: New improved mailbox.

nice to see someone who added line breaks and clickable emoticons, only thing is that when you read an old message, it subtracts your mailbox counter to the negatives.

Posted

Re: New improved mailbox.

i fixed that for you, there is still one more problem, if you delete a mail before reading it will still show you have unread mail

 

You're unable to view this code.

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

  • 3 months later...
  • 4 weeks later...
Posted

Re: [mccode v2] New improved mailbox.

Killah's version works great for me and show's that I have mail. The only thing im not keen on is it doesnt link directly from viewuser you have to make a note of the user ID number to type in.

  • 1 month later...
  • 2 weeks later...

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