我已将包含以下代码的页面上传到我的joomla根目录.
<?php
$value = trim($_POST['opts']);
if ($value){
$db = "my_db";
$link = mysql_connect('localhost',$me,$my_password);
if(!$link) die("Error 1 ".mysql_error());
mysql_select_db($db);
**$query = "SELECT introtext,fulltext FROM jos_content WHERE title='$value' ";**
$result = mysql_query($query);
**if(!$result) die("Error 2 ".mysql_error());**
$obj = mysql_fetch_array($result);
$obj_f = $obj[0];
$lenght = strlen($obj_f);
$header2 = strpos($obj_f, "Did you know");
$header3 = strstr($obj_f, "Summary");
$third_part = $header3;
$first_part = substr($obj_f, 0, ($header2 - 1));
$second_part = substr($obj_f, $header2,((strpos($obj_f, "Summary")) - $header2) );
}
?>
Run Code Online (Sandbox Code Playgroud)
问题是,当我更改我的选择(http://sanatural.co.za/sanp/test.php)时,我收到此错误消息: 错误2您的SQL语法中有错误; 查看与您的MySQL服务器版本对应的手册,以便在第1行的'fulltext FROM jos_content …
Please follow this URL (sample) http://www.test.com/test/vehicle?chrysler=crysler300 I want to change this URL http://www.test.com/test/vehicle/chrysler/crysler300 like this.
I try to do it using .htaccess file, but it not working.
This is the code I used
RewriteRule vehicle/chrysler/(.*) vehicle?chrysler=$1
Run Code Online (Sandbox Code Playgroud)
我想创建一些从Joomla v1.5.23中渲染图像的功能.该功能应该通过所有joomla应用程序可见.
我必须把这个功能放在哪里?我应该创建插件,模块还是其他什么?
最好的祝福
我正在开发一个Joomla 3.0组件.作为示例,我从Joomla文档中下载了com_hello组件.
我发生的错误是,当我检查视图列表中的复选框时,我收到一条错误消息TypeError: b is null.这个错误发生在core.js的某个地方.
通常在2.5,如果我使用JHtml::_('grid.id',$i,$item->id);代码并<input type="hidden" name="boxchecked" value="0" />在我的表单中有字段它工作正常.
我还查看了Joomla核心的一些组件,但我没有找到丢失的东西或其他一些错误.
这是default.php我的观点的代码:
<?php
// NO DIRECT ACCESS TO THIS FILE
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
?>
<form action="<?php echo JRoute::_('index.php?option=com_simplesuite'); ?>" method="post" name="adminForm">
<table class="adminlist">
<thead>
<tr>
<th>ID</th>
<th><input type="checkbox" name="checkall-toggle" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" value="" onclick="Joomla.checkAll(this);" /></th>
<th><?php echo JText::_('COM_SIMPLESUITE_TAGCLOUD_ADMINISTRATOR_LIST_NAME'); ?></th>
<th><?php echo JText::_('COM_SIMPLESUITE_TAGCLOUD_ADMINISTRATOR_LIST_TAGS'); ?></th>
<th><?php echo JText::_('COM_SIMPLESUITE_TAGCLOUD_ADMINISTRATOR_LIST_ACTIONS'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) : …Run Code Online (Sandbox Code Playgroud) 我在Joomla JUtility :: sendMail函数中遇到了一个问题
Joomla文档中提到的函数参数是这样的
问题是我无法设置fromemail(发件人电子邮件).当我设置发件人电子邮件并重播电子邮件时.邮件中显示的电子邮件重播是来自joomla admin config email的邮件.当我将其他电子邮件设置为重播或发件人电子邮件时,每次使用来自joomla admin config的电子邮件时,它都没有正确使用.
我得到了谷歌的一个参考几乎相同,但我试过这不起作用.
我正在使用Joomla 1.7
我试过了
$your_email //can be array but here string one email
$your_name //name i will work fine
$user_email //admin email
$subject //subject
//last two argument is reply to and replay name Its showing inside mail but click on replay it will admin config email.
JUtility::sendMail($your_email, $your_name, $user_email, $subject, $fcontent,1,NULL,NULL,NULL,$your_email,$your_name);
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激..
首先我想知道扩展和插件与模块之间有什么区别
然后我想知道如何开始这个?我必须拥有哪些工具和知识
什么是最好的武术?
是否有一些方法可以通过它的名称获取组件版本?我尝试了很多例子,但没有发现任何可行的例子.类似的东西JComponentHelper::getParams('com_mycomponent')->get('version')不起作用,因为它从jos_extensions.params行检索值.我的组件版本只在jos_extensions.manifest_cache排...
我有一个 foreach 循环,如果该值已经被回显,我需要添加一个 continue。我找不到正确的语法。循环:
foreach ($results as $result) {
echo $result->date . "<br />";
}
Run Code Online (Sandbox Code Playgroud)
但是我需要添加一个 continue 以便如果该值已经被回显,并且它再次出现在循环中它会被跳过。我不能完全正确地使用 if/continue 语句。
想法,建议,想法?
您好我想知道是否可以使用css表来交替颜色行?我希望它看起来像这样,
http://i.imgur.com/zT04atv.jpg
到目前为止,我的代码是这个.我试过但似乎无法让它工作.这可能吗?如果是这样,我将如何实现它?谢谢.
<table style="height: 448px;" width="1007">
<tbody>
<tr>
<td style="text-align: center;">
<p>Pricing</p>
<p>Structure</p>
</td>
<td style="text-align: center;">
<p>Professional</p>
<p>Resume</p>
<p>$199</p>
</td>
<td style="text-align: center;">
<p>Managerial</p>
<p>Resume</p>
<p>$299</p>
</td>
<td style="text-align: center;">
<p>Executive</p>
<p>Resume</p>
<p>$399</p>
</td>
<td style="text-align: center;">
<p>C-Suite</p>
<p>Resume</p>
<p>$499</p>
</td>
</tr>
<tr>
<td style="text-align: center;">Resume Specs</td>
<td style="text-align: center;">2-3 pg resume</td>
<td style="text-align: center;">4-5 pg resume</td>
<td style="text-align: center;">
<p>+ cover sheet and</p>
<p>graphics</p>
</td>
<td style="text-align: center;">+ standalone bio pg</td>
</tr>
<tr>
<td style="text-align: center;">Phone Interview</td> …Run Code Online (Sandbox Code Playgroud)