本文整理汇总了PHP中Slug函数的典型用法代码示例。如果您正苦于以下问题:PHP Slug函数的具体用法?PHP Slug怎么用?PHP Slug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Slug函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Slug
$artical1 .= "Please visit to Unfollow project by clicking on following link.<br />\n\t\t\t\t\t<a href='" . $base_url . "browseproject/" . $projectId . "/" . Slug($sel_ProjTitle['projectTitle']) . '/' . "' target='_blank'>Click Here</a><br />";
$artical1 .= "<br /><br />Kind Regards,<br />" . DISPLAYSITENAME . " Team</body></html>";
$subject1 = "Unfollow project At " . DISPLAYSITENAME . "";
$mailbody1 = $artical1;
$headers1 = "MIME-Version: 1.0\r\n";
$headers1 .= "Content-type: text/html\r\n";
$headers1 .= FROMEMAILADDRESS;
@mail(base64_decode($sel_login_user_email1['emailAddress']), $subject1, $mailbody1, $headers1);
}
$sel_project_user = mysql_fetch_assoc($con->recordselect("SELECT * FROM projects WHERE projectId='{$projectId}'"));
$sel_login_user_email = mysql_fetch_assoc($con->recordselect("SELECT * FROM users WHERE userId='" . $sel_project_user['userId'] . "'"));
if ($sel_login_user_email['newFollower'] == 1) {
$artical = "";
$artical = "<html><head><style>.body{font-family:Arial, Helvetica, sans-serif; font-size:12px; }</style></head>";
$artical .= "<body><strong>Hello " . $sel_login_user_email['name'] . ", </strong><br />";
$artical .= "<br />" . $_SESSION['name'] . " has Unfollowed your project " . $sel_ProjTitle['projectTitle'] . ".<br /><br />";
$artical .= "Please visit to Unfollow project by clicking on following link.<br />\n\t\t\t\t\t<a href='" . $base_url . "browseproject/" . $projectId . "/" . Slug($sel_ProjTitle['projectTitle']) . '/' . "' target='_blank'>Click Here</a><br />";
$artical .= "<br /><br />Kind Regards,<br />" . DISPLAYSITENAME . " Team</body></html>";
$subject = $_SESSION['name'] . " Unfollow project At " . DISPLAYSITENAME . "";
$mailbody = $artical;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html\r\n";
$headers .= FROMEMAILADDRESS;
@mail(base64_decode($sel_login_user_email['emailAddress']), $subject, $mailbody, $headers);
}
redirect($base_url . "browseproject/" . $projectId . "/" . Slug($sel_ProjTitle['projectTitle']) . '/');
}
}
} else {
redirect($base_url . "browseproject/" . $projectId);
}
示例2: mysql_fetch_assoc
$sel_project_backer_user = mysql_fetch_assoc($con->recordselect("SELECT * FROM users WHERE userId='" . $sel_project_backers['userId'] . "'"));
if ($sel_project_backer_user['updatesNotifyBackedProject'] == 1) {
$artical = "";
//tableborder { border: 1px solid #CCCCCC; }
$artical = "<html><head><style>.body{font-family:Arial, Helvetica, sans-serif; font-size:12px; }\n\t\t\t.mtext {font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #333333;text-decoration: none;}\n\t\t\ta { font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #A11B1B;font-weight: normal;text-decoration: underline;}\n\t\t\ta:hover {font-family: Arial, Helvetica, sans-serif;font-size: 12px;font-weight: normal;color: #A11B1B;text-decoration: none;}\n\t\t\t</style></head>";
$artical .= "<body><strong>Hello " . $sel_project_backer_user['name'] . ", </strong><br />";
$artical .= "<br /><table width='100%' cellspacing='0' cellpadding='0' class='tableborder' align='left'>";
/*$artical.="<tr><td height='80' style='border-bottom:solid 1px #f2f2f2; padding:5px; background-color: #999999;' valign='middle'><img src='".SITE_IMG."logo_fundraiser.png' /></td>
</tr>";*/
$artical .= "<tr><td colspan='2'>Updates on <b>" . $sel_project_name['projectTitle'] . " Edited: </b> " . "</td></tr>";
$artical .= "<tr><td colspan='2'>Update #" . $num_of_rows . " " . unsanitize_string($_POST['updateTitle']) . "</td></tr>";
$artical .= "<tr><td colspan='2'>" . $textcontent . "</td></tr>";
$artical .= "<tr><td colspan='2'> </td></tr>";
$artical .= "<tr><td colspan='2'> </td></tr></table><br />";
$artical .= "Kind Regards, <br />" . DISPLAYSITENAME . " Admin</body></html>";
$subject = "Updates on " . SlugMailSubject(unsanitize_string($sel_project_name['projectTitle'])) . " Edited";
$mailbody = $artical;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html\r\n";
$headers .= FROMEMAILADDRESS;
@mail(base64_decode($sel_project_backer_user['emailAddress']), $subject, $mailbody, $headers);
}
}
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => "Update Edited Successfully");
redirect(SITE_URL . "browseproject/" . $sel_project_id['projectId'] . "/" . Slug($sel_project_name['projectTitle']) . "/&update=" . $num_of_rows . "#b");
}
}
$module = 'user';
$page = 'projectupdate';
$content = $module . '/' . $page;
require_once DIR_TMP . "main_page.tpl.php";
示例3: Slug
</div>
</fieldset>
</div>
</div>
</div>
<div class="content_right" style="display:none;">
<a target="_blank" href="<?php
echo SITE_URL;
?>
content/<?php
echo $sel_ContentPage['id'];
?>
/<?php
echo Slug($sel_ContentPage['title']) . '/';
?>
/" class="awesome_project background_light">
<span>How to</span><br>
Make an Awesome Project
</a>
<div class="project_cart_preview background_light">
<div class="project_cart_wrapper">
<div class="project_cart">
<div class="project_thumb" id="BiggerThumb">
<?php
print isset($projectImages) ? $projectImages['image400by300'] : '';
if (isset($projectImages) && $projectImages['image200by156'] != '') {
?>
<img id="test" src="<?php
echo $base_url . $projectImages['image200by156'];
示例4: sanitize_string
<?php
require "../../includes/config.php";
if (isset($_POST['queryString'])) {
//$queryString = preg_replace('/\s+/', '', $_POST['queryString']);
$queryString = sanitize_string($_POST['queryString']);
if (strlen($queryString) > 0) {
$totalFaqQuestion = $con->recordselect("SELECT faqQuestion as value,faqCategoryParentId,faqCategoryId FROM faqquestionanswer WHERE faqQuestion LIKE '%{$queryString}%'");
$total_faq_question = mysql_num_rows($totalFaqQuestion);
//echo "SELECT faqque.faqQuestion as value,faqque.faqCategoryParentId,faqque.faqCategoryId,faqque.faqQuestionAnswerId,faqque.faqQuestionAnswerTime FROM `faqquestionanswer` as faqque, `faqcategory` as faqcat WHERE faqque.faqQuestion AND faqque.faqCategoryParentId=faqcat.faqCategoryId AND faqcat.faqStatus!='0' AND faqque.faqQuestion LIKE '%$queryString%' LIMIT 5";
$query = $con->recordselect("SELECT faqque.faqQuestion as value,faqque.faqCategoryParentId,faqque.faqCategoryId,faqque.faqQuestionAnswerId,faqque.faqQuestionAnswerTime FROM `faqquestionanswer` as faqque, `faqcategory` as faqcat WHERE faqque.faqCategoryParentId=faqcat.faqCategoryId AND faqcat.faqStatus!='0' AND faqque.faqQuestion LIKE '%{$queryString}%' LIMIT 5");
if (mysql_num_rows($query) > 0) {
while ($result = mysql_fetch_assoc($query)) {
$main_cat = mysql_fetch_assoc($con->recordselect("SELECT * FROM faqcategory WHERE faqCategoryId='" . $result['faqCategoryParentId'] . "'"));
$sub_cat = mysql_fetch_assoc($con->recordselect("SELECT * FROM faqcategory WHERE faqCategoryId='" . $result['faqCategoryId'] . "'"));
echo '<li onclick="fill(' . $main_cat['faqCategoryId'] . ',' . addQuotes(Slug($result['value'])) . ');" class="">
<h3 class="faq_questionlist">' . $result['value'] . '</h3>
<div class="faq-category">in ' . $main_cat['faqcategoryName'] . ' / ' . $sub_cat['faqcategoryName'] . '</div>
</li>';
}
echo '<a href="javascript:void(0)"><span class="faq-icon-arrow-search"></span> see all ' . $total_faq_question . ' results </a>';
} else {
echo 'Sorry, we couldn\'t find anything.';
}
} else {
}
}
示例5: Slug
?>
images/captcha-ref.jpg" alt="Captcha Refresh" border="0" class="fl" /></a>
</div>
<?php
}
?>
<div class="inputfield checkbox" style="padding-top:20px;">
<input class="hidden" name="user[send_newsletters]" type="hidden" value="0" />
<input checked="checked" class="checkbox" id="user_send_newsletters" name="txtTerms" tabindex="8" type="checkbox" value="1" />
<div class="float-left"><strong>Discover New Projects</strong></div>
<p>With Our Weekly Newsletter</p><br>
<?php
/* In the following line sel_ContentPage is set for terms of service by loginsignup.php */
?>
<!-- <p>By signing up, you agree to our <a href="<?php
echo SITE_URL . 'content/' . $sel_ContentPage['id'] . '/' . Slug($sel_ContentPage['title']) . '/';
?>
" target="_blank">terms of use</a>.</p> -->
</div>
<div class="inputfield">
<input name="submitSignup" tabindex="8" type="submit" value="Sign Me Up!">
</div>
</form>
</div>
<!--Signup div end-->
<div class="signupbox" <?php
echo $hidden;
?>
>
<!--Facebook div start-->
示例6: unsanitize_string
}
?>
</li>
<img src="<?php
echo SITE_IMG;
?>
location.png" />
<li>
<a title="<?php
echo unsanitize_string(ucfirst($sel_starproject['projectLocation']));
?>
" href="<?php
echo SITE_URL;
?>
city/<?php
echo $sel_starredproject1['projectId'] . '/' . Slug($sel_starproject['projectLocation']) . '/';
?>
">
<?php
echo unsanitize_string(ucfirst($sel_starproject['projectLocation']));
?>
</a>
</li>
<div class="clear"></div>
</ul>
<p><?php
echo unsanitize_string(ucfirst($sel_starproject['shortBlurb']));
?>
</p>
<?php
$chktime_cur = time();
示例7: Slug
?>
<section id="container" class="backer_reward">
<script type="text/javascript" src="Common/sdk_functions.js"></script>
<div id="get_started_header_detail" class="head_content temp">
<a href="<?php
echo SITE_URL . 'browseproject/' . $projectBasic['projectId'] . '/' . Slug($projectBasic['projectTitle']) . '/';
?>
" >
<h3><?php
echo unsanitize_string(ucfirst($projectBasic['projectTitle']));
?>
</h3>
</a>
<p id="marginbottom30">by
<a href="<?php
echo SITE_URL . 'profile/' . $projectByUser['userId'] . '/' . Slug($projectByUser['name']) . '/';
?>
" >
<?php
echo unsanitize_string(ucfirst(trim($projectByUser['name'])));
?>
</a>
</p>
</div>
<div class="wrapper ">
<div class="tabs_content_bg">
<div class="tab_content">
<div class="tabs_left">
<div class="tabs_left_pledge">
<div class="tout_checkout">
<h1>Check out with Paypal</h1>
示例8: takePreApprovalFromBacker_sendCreatormail
function takePreApprovalFromBacker_sendCreatormail($array)
{
extract($array);
//$this->con->insert("insert into preapproval_detail (detail) values ('a')");
if ($backer_id != '') {
$projectBacker = mysql_fetch_array($this->con->recordselect("SELECT name FROM users where userId='{$backer_id}' LIMIT 1"));
$backer_name = $projectBacker['name'];
}
$projectCreater = mysql_fetch_array($this->con->recordselect("SELECT * FROM projects as pro, users as usr, projectbasics as pb where pro.projectId=" . $projectId . " and pro.userId=usr.userId AND pb.projectId =" . $projectId));
if ($projectCreater['pledgeMail'] == 1) {
$artical1 = "";
$artical1 = "<html><head><style>.body{font-family:Arial, Helvetica, sans-serif; font-size:12px; }</style></head>";
$artical1 .= "<body><strong>Hello " . $projectCreater['name'] . ", </strong><br />";
$artical1 .= "<br />";
$artical1 .= $backer_name . " has committed {$amount} to your project <b>" . unsanitize_string(ucfirst($projectCreater['projectTitle'])) . "</b><br />";
$artical1 .= "You can visit your project page by clicking the following link.<br />\n\t\t\t\t<a href='" . SITE_URL . "browseproject/" . $projectId . "/" . Slug($projectCreater['projectTitle']) . '/' . "' target='_blank'>Click Here</a><br />";
$artical1 .= "<br /><br />Regards,<br />" . DISPLAYSITENAME . " Team</body></html>";
$subject1 = "New backing for " . unsanitize_string(ucfirst($projectCreater['projectTitle']));
$mailbody1 = $artical1;
$headers1 = "MIME-Version: 1.0\r\n";
$headers1 .= "Content-type: text/html\r\n";
$headers1 .= FROMEMAILADDRESS;
@mail(base64_decode($projectCreater['emailAddress']), $subject1, $mailbody1, $headers1);
@mail('admin@' . $_SERVER['SERVER_NAME'], 'cc: ' . $subject1, $mailbody1, $headers1);
}
}
示例9: time
$message_time = time();
$con->insert("INSERT INTO usermessages (`messageId` ,`message` ,`projectId` ,`receiverId` ,`senderId` ,`messageTime`)\n\t\tVALUES (NULL , '" . sanitize_string($user_message) . "', '" . $_GET['project'] . "', '" . $sel_pro['userId'] . "', '" . $_SESSION['userId'] . "', '{$message_time}')");
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => 'Message succesfully sent.');
}
// message code end
if (isset($_GET['project']) && $_GET['project'] != NULL) {
$project_id = mysql_real_escape_string($_GET['project']);
$fill_form_projecttitle = mysql_fetch_array($con->recordselect("SELECT * FROM projectbasics WHERE projectId ='" . $project_id . "' "));
}
if (isset($_GET['reviewId']) && $_GET['reviewId'] != NULL) {
//echo $_GET['status'];
if ($_GET['status'] == 'off') {
//echo 'hiii';exit;
$con->update("UPDATE projectreview SET reviewstatus=0 WHERE `reviewId`= '" . $_GET['reviewId'] . "'");
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => 'Review succesfully deactivated.');
} else {
if ($_GET['status'] == 'on') {
//echo 'hi';exit;
$con->update("UPDATE projectreview SET reviewstatus=1 WHERE `reviewId`= '" . $_GET['reviewId'] . "'");
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => 'Review succesfully activated.');
}
}
redirect(SITE_URL . "browseproject/" . $_GET['project'] . '/' . Slug($sel_pro_basic['projectTitle']) . '/');
}
$ses_user = isset($_SESSION['userId']) ? $_SESSION['userId'] : NULL;
$get_project = isset($_GET['project']) ? $_GET['project'] : NULL;
$get_updates = isset($_GET['update']) ? $_GET['update'] : NULL;
$module = 'browse';
$page = 'browseproject';
$content = $module . '/' . $page;
require_once DIR_TMP . "main_page.tpl.php";
示例10: unsanitize_string
?>
"/>
<?php
}
?>
</a>
</div>
<div class="project_profile_right1">
<a title="<?php
echo unsanitize_string($sel_project_detail['projectTitle']);
?>
" href="<?php
echo SITE_URL;
?>
browseproject/<?php
echo $sel_project_detail['projectId'] . '/' . Slug($sel_project_detail['projectTitle']) . '/';
?>
">
<?php
echo unsanitize_string($sel_project_detail['projectTitle']);
?>
</a>
<?php
/*?><h6>By <?php echo $sel_project_user['name'] ?></h6><?php */
?>
<h6>By <?php
echo $sel_creator_name1['name'];
?>
</h6>
示例11: ucfirst
<span >By <a title="' . ucfirst($sel_starprojectusername['name']) . '" class="linkblue" href="' . SITE_URL . 'profile/' . $sel_starprojectusername['userId'] . '/' . Slug($sel_starprojectusername['name']) . '/' . '">' . ucfirst($sel_starprojectusername['name']) . '</a>
</span>
<ul>
<img src="' . SITE_IMG . 'category.png" />
<li>';
if ($sel_starproject_cat['isActive'] == 1) {
$html_content .= '<a title="' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '" href="' . SITE_URL . 'category/' . $sel_starproject_cat['categoryId'] . '/' . Slug($sel_starproject_cat['categoryName']) . '/' . '">' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '</a>';
} else {
$html_content .= '<a title="' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '" href="javascript:void(0);">
' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '
</a>';
}
$html_content .= '</li>
<img src="' . SITE_IMG . 'location.png" />
<li>
<a title="' . unsanitize_string(ucfirst($sel_starproject['projectLocation'])) . '" href="' . SITE_URL . 'city/' . $sel_starredproject1['projectId'] . '/' . Slug($sel_starproject['projectLocation']) . '/' . '">
' . unsanitize_string(ucfirst($sel_starproject['projectLocation'])) . '
</a>
</li>
<div class="clear"></div>
</ul>
<p>' . unsanitize_string(ucfirst($sel_starproject['shortBlurb'])) . '</p>';
$chktime_cur = time();
if ($sel_starproject['projectEnd'] <= $chktime_cur) {
$html_content .= '<h4 class="sticker">';
if ($sel_starproject['rewardedAmount'] >= $sel_starproject['fundingGoal']) {
$html_content .= 'SUCCESSFUL!';
} else {
$html_content .= 'FUNDING UNSUCCESSFUL';
}
$html_content .= '</h4>';
示例12: array
if (isset($_POST) && isset($_POST['preapprove_backing'])) {
// handle pre-approval request
if ($_SERVER['SERVER_NAME'] != 'emptyrocket.com') {
// only permit tests on emptyrocket
///// TEMP TURN OFF SUPPORT FOR BACKING UNTIL NEW PAYPAL SDK INTEGRATED ///////
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => "Backing temporarily unavailable while new PayPal code is integrated.");
$sel_pro_basicdata = mysql_fetch_assoc($con->recordselect("SELECT * FROM projectbasics WHERE projectId='" . $_POST['projectId'] . "'"));
redirect(SITE_URL . "browseproject/" . $_POST['projectId'] . '/' . Slug($sel_pro_basicdata['projectTitle']) . '/');
///////////////////////////////////////////////////////////////////////////////
}
$backerId = sanitize_string($_POST['backerId']);
if (!isset($_SESSION['userId']) || $_SESSION['userId'] != $backerId) {
wrtlog("WARNING: preapprove_backing request userId ({$backerId}) does not match session (" . $_SESSION['userId'] . ") ");
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => "Request does not match logged-in user.");
redirect($base_url . 'index.php');
} else {
$Pay = new Payment();
$response = $Pay->doPreapproval($_POST);
wrtlog("WARNING: unexpected return from call to Pay->doPreapprovePayment in projectBacker/index.php");
wrtlog("....... post vars: " . print_r($_POST, true));
wrtlog("....... response: " . print_r($response, true));
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => "Preapproval failed. See log.");
$sel_pro_basicdata = mysql_fetch_assoc($con->recordselect("SELECT * FROM projectbasics WHERE projectId='" . $_POST['projectId'] . "'"));
redirect(SITE_URL . "browseproject/" . $_POST['projectId'] . '/' . Slug($sel_pro_basicdata['projectTitle']) . '/');
}
} else {
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => "No project found");
redirect($base_url . 'index.php');
}
}
}
示例13: while
echo $base_url;
?>
images/category.png" style="float:left;padding-right: 5px;padding-left: 10px;" /><h2>Categories</h2></span><br/>
<div class="flclear"></div>
<?php
while ($row = mysql_fetch_assoc($selCategory)) {
?>
<li><a title="<?php
echo ucfirst(unsanitize_string($row['categoryName']));
?>
" href="<?php
echo SITE_URL;
?>
category/<?php
echo $row['categoryId'] . '/' . Slug($row['categoryName']) . '/';
?>
"
<?php
if (isset($_GET['catId']) && ($_GET['catId'] != NULL && !isset($titlename)) && $_GET['catId'] == $row['categoryId']) {
echo "class='active'";
}
?>
><?php
echo ucfirst(unsanitize_string($row['categoryName']));
?>
</a></li>
<?php
}
?>
示例14: projectbacking
$projectBacking = $con->insert("INSERT INTO projectbacking (rewardId, projectId, userId, pledgeAmount, backingTime, paypalId)\n\t\t\t\t\tVALUES('" . $rewardId . "','" . $projectId . "', " . $_SESSION['userId'] . ", '" . $amount . "', " . time() . "," . $paypalId . ");");
// jwg - also bump contributor count if first time contributing to this project
$bumpcontributor = '';
$backedbefore = $this->con->recordselect("SELECT * FROM projectbacking WHERE userId='{$userId}' and projectId='{$projectId}'");
if (mysql_num_rows($backedbefore) <= 0) {
$bumpcontributor = ', rewardedContributor = rewardedContributor + 1';
}
//$updateProjectGoal = $con->update("UPDATE projectbasics set rewardedAmount = rewardedAmount +".$amount." where projectId =".$projectId. " LIMIT 1");
$updateProjectGoal = $con->update("UPDATE projectbasics set rewardedAmount = rewardedAmount +" . $amount . "{$bumpcontributor} where projectId =" . $projectId . " LIMIT 1");
$projectCreater = mysql_fetch_array($con->recordselect("SELECT * FROM projects as pro, users as usr, projectbasics as pb where pro.projectId=" . $projectId . " and pro.userId=usr.userId AND pb.projectId =" . $projectId));
if ($projectCreater['pledgeMail'] == 1) {
$artical1 = "";
$artical1 = "<html><head><style>.body{font-family:Arial, Helvetica, sans-serif; font-size:12px; }</style></head>";
$artical1 .= "<body><strong>Hello " . $projectCreater['name'] . ", </strong><br />";
$artical1 .= "<br />";
$artical1 .= $_SESSION['name'] . " has pledged on your project <b>" . $projectCreater['projectTitle'] . "</b><br />";
$artical1 .= "Amount: \$" . $amount . "<br />";
$artical1 .= "Please visit pledged project by clicking on following link.<br />\n\t\t\t<a href='" . $base_url . "browseproject/" . $projectId . "/" . Slug($projectCreater['projectTitle']) . '/' . "' target='_blank'>Click Here</a><br />";
$artical1 .= "<br /><br />Kind Regards,<br />" . DISPLAYSITENAME . " Team</body></html>";
$subject1 = "Pledge on " . unsanitize_string(ucfirst($projectCreater['projectTitle']));
$mailbody1 = $artical1;
$headers1 = "MIME-Version: 1.0\r\n";
$headers1 .= "Content-type: text/html\r\n";
$headers1 .= FROMEMAILADDRESS;
@mail(base64_decode($projectCreater['emailAddress']), $subject1, $mailbody1, $headers1);
}
/*$inserTransaction = $con->insert("INSERT INO paypaltransaction(correlationId,amount,transactionId,userId)
VALUES ('".$resArray['CORRELATIONID']."', ".$amount.", '".$resArray['TRANSACTIONID']."', ".$_SESSION['uid'].")");*/
$_SESSION['msgType'] = array('from' => 'user', 'type' => 'error', 'var' => "multiple", 'val' => "Thank you for backing the project");
redirect($base_url . "browseproject/" . $projectId . "/" . Slug($projectCreater['projectTitle']) . '/');
}
示例15: Slug
">
<a name="<?php
echo Slug($selSubTitle1['faqcategoryName']);
?>
" ></a>
<h2><?php
echo $selSubTitle1['faqcategoryName'];
?>
</h2><h6><a href="#">Top ↑</a></h6>
<div class="clear"></div>
<?php
$sel_faq_questionanswer = $con->recordselect("SELECT * FROM `faqquestionanswer` WHERE faqCategoryId='" . $selSubTitle1['faqCategoryId'] . "'");
while ($selFaqQuestionAnswer = mysql_fetch_assoc($sel_faq_questionanswer)) {
?>
<h3 id="<?php
echo Slug($selFaqQuestionAnswer['faqQuestion']);
?>
"><?php
echo unsanitize_string($selFaqQuestionAnswer['faqQuestion']);
?>
</h3>
<p><?php
echo unsanitize_string($selFaqQuestionAnswer['faqAnswer']);
?>
</p>
<?php
}
?>
</li>
<?php