本文整理汇总了PHP中myclass::message方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::message方法的具体用法?PHP myclass::message怎么用?PHP myclass::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::message方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
</iframe>
</div><?php
break;
case 'invited-person':
switch ($process) {
case 'function':
if (false) {
if (LookbookDatabase::isUserAlreadSignedUp($invited_id)) {
//invited_status = 2
echo "<br> this user is already signed up and approved then it should go to sign up";
$response = mysql_query(" UPDATE fs_invited SET invited_status = 2 , invited_date = '{$mc->date_time}' WHERE invited_id = {$invited_id} ");
} else {
echo "<br> this user not yet sign up and approved ";
// update invited_status
$response = mysql_query(" UPDATE fs_invited SET invited_status = {$status_val} , invited_date = '{$mc->date_time}' WHERE invited_id = {$invited_id} ");
$mc->message(" update invited_status = {$status_val} ", $response, "");
// from pending and approved then automaticaly send an invitation email
if ($status_val == 0) {
if (mysql_query(" UPDATE fs_invited SET invited_status=0, temail_sent=0 WHERE invited_id = {$invited_id} ")) {
echo " successfully updated to pending ";
} else {
echo "failled to update UPDATE fs_invited SET invited_status=0, temail_sent=0 WHERE invited_id = {$invited_id} ";
}
} else {
if ($status_val == 1) {
/*
$response = $mc->fs_invited( array( 'type'=>'select', 'where'=>" invited_id = $invited_id " ) );
$subject = 'An Invitation to Share Your Blog Content on Fashion Sponge';
$from = 'mauricio@fashionsponge.com';
$type = 'invitations';
$mc->send_email_signup_to_user( $response[0]['invited_fn'] , $response[0]['invited_email'] , $type , $from , $subject );
示例2: message
endif;
echo "<img src='$src' /> ";
echo " $src <br><BR><Br><br>";
$pa->download_image_from_other_site( $artno , $src , 'fs_folders/images/uploads/posted articles/detail/' );
else:
$response = $mc->upload_image(
array(
"tmp_name" =>$_FILES["file"]["tmp_name"] ,
"destination" =>"$mc->article_detail/$artno.jpg"
)
);
$mc-> message ( 'image upload ', $response , ' ' );
endif;
echo " video id = $video_id <br>";
/** resize image */
$response = $mc->resize_image(
array(
'id' =>$artno,
'source' => "$mc->article_detail/$artno.jpg",
'destination1' => "$mc->article_home/$artno.jpg",
'destination2' => "$mc->article_thumbnail/$artno.jpg",
'width1' => 300,
'width2' => 50
)
);