91
sarahmx
Re: add php code and mysql query in any content module editor ?
  • 2010/3/5 16:44

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


bump



92
sarahmx
Re: add php code and mysql query in any content module editor ?
  • 2010/3/3 15:21

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


i dont understand kaotik..im new to php and i think i should explain myself again..sorry my english sucks

what i really want to do is to post an article using the content module by formuss..

in the article i want to show a table ..the data in the table is from my db


example of my query
<?php
global $xoopsDB;
$result mysql_query("SELECT * FROM ".$xoopsDB->prefix("section_info")." WHERE Unit='Pharmacy' ORDER BY senioriti");

$count =1;
echo 
"<table><tr class='head'>";
echo 
"<td>No</td>";
echo 
"<td>Name</td>";


$style=0;

while(
$row mysql_fetch_array($result))
{
$my_id=$row['my_id']; 

echo 
'<tr class="', ++$style 'even' 'odd''">'
echo 
"<td>"
echo 
$count++;
echo 
"</td>";
echo 
"<td><b>" $row['name'] . "</b></td>";
echo 
"</tr>";
}
 echo 
"</table>";echo "";
  
?>


so how can i use the code above to post it in my content ?



93
sarahmx
Re: add php code and mysql query in any content module editor ?
  • 2010/3/3 13:16

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


anyone ?

is this even possible ?



94
sarahmx
Re: add php code and mysql query in any content module editor ?
  • 2010/2/27 1:03

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


i don't want to display the code...

i want to run the code

what i want to do is actually to show a data using query from database



95
sarahmx
Re: Review & Bugs - Xoops 2.5 Alpha
  • 2010/2/26 23:31

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


XOOPS 2.5 ALPHA 2


1. 2 file manager and maintenance

xoops 2.5 alpa 2
[IMG]http://img684.imageshack.us/img684/4733/52286675.jpg[/IMG]



2. Thank you for making a special folder for avatar...

hope rank and smilies will have a special folder too

https://xoops.org/modules/newbb/viewtopic.php?start=0&topic_id=67988&viewmode=flat&order=ASC&type=&mode=0
https://xoops.org/modules/newbb/viewtopic.php?topic_id=67988&forum=10&post_id=325187#forumpost325187

3. is there a way to enable and disable the jgrowl redirection ?

4. the module drag and drop now is working...whuuhu...really nice

5. still cant save custom block as PHP format




96
sarahmx
Re: Content module (formuss) & content module (kerkyra)
  • 2010/2/26 23:19

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


thank you formuss...

i really like your module..i used it in most of my xoops-site


keep up the good work



97
sarahmx
Re: Content module (formuss) & content module (kerkyra)
  • 2010/2/26 23:09

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


that should be the goal i think



98
sarahmx
Re: add php code and mysql query in any content module editor ?
  • 2010/2/26 23:08

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


bump



99
sarahmx
Content module (formuss) & content module (kerkyra)
  • 2010/2/24 14:48

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Both is great but why have the same module directory name?

to they aware about this ? user might mistakenly replace their module installation...

Content Formuss
http://xoops.foreach.fr/modules/content/index.php?id=7&page=telechargement-de-content

Content kerkrya:
https://xoops.org/modules/repository/singlefile.php?cid=94&lid=1811


btw Keep up the good work guys






100
sarahmx
add php code and mysql query in any content module editor ?
  • 2010/2/24 14:14

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


maybe this a stupid question


How do i properly add my php code or MySQL query to a content module like news or content ...

?

i put my code in basic editor and it is not display correctly in browser..

help




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 32 »



Login

Who's Online

62 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits