xoops forums

Forum Index


Board index » All Posts (Sikandar)




Sikandar

Just popping in
Posted on: 2005/5/29 6:51
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#71

how to display a HTML file?

Hi,
I have a HTML file which I would like to display currently I have to manually paste in the block but I just want to give the link of the file. Mean I want to give a URL of my html in the block and on home page that block should show the contents of that html insteat of showing a URL which user has to click to open the page. Hope my question will be clear and if not then please let me know so I can provide more detail.

Thanks


Sikandar

Just popping in
Posted on: 2005/5/29 6:45
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#72

Re: Displaying data from a table?

Hi,
I have created a block and pasted the following code with a change in your code "removing ." WHERE segment='yes'"" but it is not showing me any result. I also set content type to "PHP Script" but no gain.
I used the following table,

create table segments_table(segment1 varchar(2), segment2 varchar(2),segment3 varchar(2));

inserted values,

insert into segments_table values ('a','b','c');

It is not even showing the block?

Will really appreciate all of you in resolving my issues.

Thanks


<?php
global $xoopsDB, $xoopsUser;
echo $xoopsDB;

if ($xoopsUser)
{
$lognom = $xoopsUser->uname();
}

$result = mysql_query("SELECT * FROM ".$xoopsDB->prefix("segments_table") );
while($row = mysql_fetch_array($result))
{

$segment1 = mysql_result($result, "t_row1");
$segment2 = mysql_result($result, "t_row2");
$segment3 = mysql_result($result, "t_row3");

echo "<table border='1'>";
echo "<tr><th><FONT FACE=arial> segment1 </th> <th><FONT FACE=arial> segment2 </th> <th><FONT FACE=arial> segment3 </th></tr>";
echo "<tr><td>";
echo "<FONT SIZE=1>$segment1</FONT>";
echo "</td><td>";
echo "<FONT SIZE=1>$segment2</FONT>";
echo "</td><td>";
echo "<FONT SIZE=1>$segment3</FONT>";
echo "</td></tr>";
}
?>


Sikandar

Just popping in
Posted on: 2005/5/27 17:55
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#73

Random Quotes not working?

Hi,
I have configured RandomQuote 1.0.1 using PHP 4.2.2, MySQL 4, Linux Redhat9, Apache 1.3 but it displaying the first entry all the time. Please let me know how to fix it.

Thanks


Sikandar

Just popping in
Posted on: 2005/5/26 16:42
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#74

Failed writing constants?

During instalation I am getting these two error message just want to know if these are not critical?

File ../mainfile.php overwritten by ../mainfile.dist.php.
Constant XOOPS_ROOT_PATH written to /home/sikandar/portal/html.
Constant XOOPS_URL written to http://redhat.
Constant XOOPS_DB_TYPE written to mysql.
Constant XOOPS_DB_PREFIX written to 0sGsE.
Constant XOOPS_DB_HOST written to localhost.
Constant XOOPS_DB_USER written to portal.
Constant XOOPS_DB_PASS written to portal.
Constant XOOPS_DB_NAME written to portal_db.
Failed writing constant 0. <<<*****************
Constant XOOPS_GROUP_ADMIN written to 1.
Constant XOOPS_GROUP_USERS written to 2.
Constant XOOPS_GROUP_ANONYMOUS written to 3.
Failed writing constant 1. <<******************

Configuration data has been saved successfully to mainfile.php.

Thanks


Sikandar

Just popping in
Posted on: 2005/5/25 16:54
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#75

Displaying data from a table?

Hi,
I am searching for a generic code of php which I can use to display data from a table. So I will create a block and the data will be displayed in the form of a table. For example

Table
Segment1, Segment2, Segment3, Segment4
A 23 233 324
B 11 22 66
.
.
.
F 2 0 1

Just 6 to 7 records in the screen. Well I have no idea to do this in PHP. As I have XOOPS portal running locally so would like to create a table and display data on the scree. Please guide me so I can use the same database connectivity as XOOPS is using and develop a code as I explained above.

Thanks


Sikandar

Just popping in
Posted on: 2005/5/24 4:20
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#76

Re: My favourite documents?

Hi,
Thanks for the link and I have just installed it. Well very first thing is that it is just to keep favourites of your own site. But I am searching for a software with which I can have shortcuts of my different file on my hard disk or network. For example I have different PDF files on different paths so I don't want to search files as I need different files so I would like to mainatin a list here.

Any other software which may work for me.

Regards,
Sikandar Hayat


Sikandar

Just popping in
Posted on: 2005/5/23 7:57
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#77

My favourite documents?

Hi,
I was to give a facility to my LAN users to add/delete their frequent used documents in the XOOPS page. For example a use has 5 favourite documents on different paths so he will add here and those files will be displayed here. For each user documents will be different so there is a need to associate with the user name as well. Pl let me know if still any info required.

Thanks


Sikandar

Just popping in
Posted on: 2005/5/20 17:31
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#78

Re: Unable to configure Xoops?

Hi,
I am waiting for any assistance? As I have tried all the tips provided in this forum but no gain.

Thanks


Sikandar

Just popping in
Posted on: 2005/5/19 18:01
Sikandar
Sikandar (Show more)
Just popping in
Posts: 99
Since: 2005/5/19
#79

Unable to configure Xoops?

Hi All,
I have performed the following task and having an issue so please guide me,

Installation
Mysql 4.1
PHP 5
Apache 1.3
Xoops

when I am accessing the install/index.php it is displaying the page and I am giving all the data required. All the checkpoints are showing green light but when I press last button to configure just "DONE' is displayed and nothing displayed. I am using root login of MySQL and it default MySQL or test database but no gain.
The last screen displayed in 'confirm database settings" and here all information is displayed ok. Here I press next and blank page displayed without any error.

Please also note that I am doing all this on MS XP box and even new to Mysql. But I tried to connect to MySQL from command line and it is working fine. Please let me know what I am missing?



TopTop
« 1 ... 5 6 7 (8)