Get A Paragraph Of Text To Show On The Home Page Only
I am using a script that I purchased and downloaded. This script has a template folder and inside has header. php, and footer.php. The center content is populated from various other pages. How would I get a paragraph of text to show on the home page only, and no other pages in the script
View Complete Forum Thread with Replies
Related Forum Messages:
Show Text From Mysql By Paragraph
I am trying to develop a site for news paper. i keep articles in a longtext field in Mysql. But when a retrieve the data from database. i lose all paragraphs. the total article in shown in one paragraph. But i want them be as it is the way i paste them. Pls help to do find out the solutions.
View Replies !
Show Home Page On Log In
I want to have a homepage with a log in feature. But I want it to say 'You are not logged in" or "you are logged in" depending on whatever is the case. I know how to check db entries etc but should I have the php on the same page in order to position the welcome note ie: <?php echo "<p>Welcome $_SESSION(username), to my website</p>;?>
View Replies !
Show The Current Time At The Resort On His Home Page.
I have a client who owns a resort in the Philippines. This client wants to show the current time at the resort on his home page. How would this be done with PHP? Is it some calculation based upon GMT? I think (I'll have to check) that the Philippines is +8 GMT...so is that what you'd have to do: create a snippet that grabs the current GMT and add "8" to it?
View Replies !
Strip Out Urls In A Paragraph Of Text
I need to strip out urls in a paragraph of text. The paragraph comes to my code from a db call, so it is dynamic. I can get the first url out but not all of them if there is more than one. I was hoping someone has tackled this and can help me out. I have $deptDesc coming in from the db. $deptDesc = preg_replace('/<a href=.*>/U', '',$deptDesc); $deptDesc = preg_replace('/</a>/', '',$deptDesc); I added the 'U' for non-greedy but it only seems to get the first url if there is more than one.
View Replies !
Page Not Parsing New Paragraph Correctly?
i have a simple WCMS im writing and ive got the content editor working which is a simple text box but im having problems with the content being parsed on the webpage itself when the content. i entered in the editor is saved to the database it saves everythign i type like when i create a new paragraph yet when it parsed on the front display page break between the paragraphs is gone yet its there in the database?
View Replies !
Get My Home Page Php
I have a problem with my include.inc that I've created. Smthg seems to be going wrong with establishing a connection. I think I have something slightly wrong with my syntax, so I think it's helpful for another set of eyes to have a look. I'm using this include for the other attached script - my home page (home.php).
View Replies !
Redirect Home Page
I have a "new" homepage. How do I automatically direct clients to this new home page, i.e. when clients enter "OldHomePage.php", they will automatically be directed to "NewHomePage.php."
View Replies !
Redirect To Home Page
I have three php files, one.php, two.php, three.php these three files need to be accessed in sequence. if one.php is submitted it displays two.php. if two.php is submitted, then three.php is displayed. if three.php is submitted then one.php will be displayed. alternately, these three files can be accessed individually. like in the address bar user can type localhost:8080/one.php, localhost:8080/two.php or localhost:8080/three.php. when accessed individually, user should be redirected to one.php because two.php and three.php are getting some values from one.php and error is getting displayed when the later action is performed.
View Replies !
Simple Home Page - Template
Could somebody show me or send to my email source code with simple home page, something like this: table with three rows: first row (headline - logo) second row (table with three columns - left[menu], middle[this column is changing depending on the what somebody click on menu], right) third row (footer) The point is that when i click left column (Menu > Article or sth) middle column display list of articles and when i click particular title content display in the same column. On home page I'd like make simple deily news sysetm
View Replies !
Default Home Page Under Xampp.
Is there a way to change default home page under Xampp, so that when I type http://localhost it would go to a home page other than page with popup asking for Xampp authorization.
View Replies !
Home Link From Navigation Page
I got a code which helps me to create navigational links and only show 4 results per page. Now I want to add a link on each page such that if anyone clicks on that link it takes it to HOME page. I have added <a href="Home.htm"><b><font size="4">Home!!</font></b></a> inside the loop that generates NEXT and PREVIOUS page link but whenever I click on HOME it does nothing at all.
View Replies !
Unique Home Page For Users
I have figured out to allow users to register and then login but at this point they all login to the same page. I want to make each user have their own unique homepage that only they can see. For now all I want on this page is for them to be able to see the files in their own directory that is created upon registering for the site and then be able to upload and remove files from this directory. The user and the admin should be able to put files in here, for example the user may upload a resume and then it can get editted or removed by an admin if it does not fit certain criteria. Is this project simple to add on to an exsiting login and register page or does it require extensive knowledge of PHP and MySQL.
View Replies !
Use A Text Area Which Will Show All Formatted Text
i have no clue how i pull it off what i how can i use a text area which will show all formatted text so if a user presses enter to add a new line or start a new paragraph example shown below i went to the shop and bought (pressed enter) 500 cakes. where when a user enters and submits to my db and i retrieve the text it loses all user formatting and will appear like this i went to the shop and bought 500 cakes.
View Replies !
If Value =1 Direct To Page Otherwise Show Data On Page
In the member account area there is a button saying (list) when the member clicks this they are redirected to add.php here i am wanting to check if a members account is limited, if it is direct them to a page saying you must pay your bill. if its not display the info on the page. in the database there is a field called limited which is tiny in if its not limited the value of the field would be 0 if it is limited the value would be 1.
View Replies !
Only Show Some Text?
i would like to put a php script within my homepage that only shows the first 3 of these news stores. i guess it would need to count the number of BR's on the page or something. does anyone know a simple script of php that will do this?
View Replies !
Show Different Text
I thought this would be possible, I just wanted some clarity on how to do it. I have a Where to Buy section on my website and I would like to create a PHP script that will limit which stores are displayed depending on the geographic location of the visitor.
View Replies !
Show / Hide Text
I am looking for a way to be able to hide some text that is being pulled from a database. For example If I have the following text being pulled out of a database onto my website, I want a way to be able to hide like the third paragraph on and replace that with a morre button than when a user clicks the more button it reveals the rest of the text:
View Replies !
Show Value For Text Field
the text field is PHP Code: <input name="page[]" type="text" size="3" maxlength="3" value="<?php echo $row_some['PAGE']; ?>" /> it show the same value at the first value in the database. in the database. page 34 43 56 34 45 65 but in my coding,it will show value 34 in each of text field value.
View Replies !
Show Text And Edit It
Im having problem with news. Admin needs to edit news, but he wants to see what is already in there. There is code: Code: <tr align="center"> <td width="120"><b>Title</b></td> <td width="120"><input name="title" value="<? echo $row['title']; ?>"></td> </tr> <tr> <td width="150">Text:</td> <td width="300" align="left" valign="top"><textarea name="text" cols="50" rows="7"><? echo $row['text']; ?></textarea> </td> </tr> How to pass value to DB and see old one in textarea?
View Replies !
Show/Hide Portion Of Text
I want to have a webpage with some biographies. The bio's are stored in an mysql table and read from Php. The thing is that I am trying to do the usual show/hide more text link and I don't know where to post such a message! I don't want to leave the current page, I just want to have the first 5 lines of text,with a more option at the end that when clicked shows the rest of the text. This for every bio ( thats not a problem, a while loop will do it) So what to use and how? Javascript? Css? I don't know so well those stuff so any help will be great.
View Replies !
Show A Field Data(text)
How can i show a field data(text) when i move mouse over a pic (like alt text of pic) for example your credit pic is available in a page,now u move your mouse over the credit pic and it shows your credit (like alt text in a simple image)from the My Sql. (for example: field name in sql is is: kom ) any thing like this : <img src="pic/me.gif" alt=" this section code is nedded " width="9" height="9"> <img src="pic/me.gif" alt=" $read from kom " width="9" height="9">
View Replies !
If Page = 'about' Show The About.html Page?
I wanted to do some kind of PHP script so that if the current page the viewer is trying to view is called index.php?page=about then it will use the php script to embed with an i-frame the about.html file into a cell in my web page's table. Basically, so that the whole page stays the same other than one cell of the table which is dynamic depending on the status of the index.php?page=whatever. Code:
View Replies !
New "search For" Feature On Home Page
Has anybody else noticed the update to the PHP "search for" feature on their page header? Travel on over to http://php.net and check it out. First, make sure "function list" is selected in the "in the" list right next to the "search for" option. Then when you start typing in a function it automagically narrows the list based on letters entered. Sweet. I had a quick peek behind the scenes and the workhorse is a piece of js that I haven't had time to analyze yet: http://www.php.net/functions.js Truly a neat feature and time saver! I like it.
View Replies !
User Inputted Text Wont Show In Email
I copied the contact_us page,renamed it, and added some fields which I want added to an email. The input fields show on the site but the user inputted text doesn't get added to the email, just the comment text gets added. Its basically going to be an application for employment when done but I'm just trying to get it to work with the four added questions. Code:
View Replies !
Show The $message Text If In Fact A Record Was Deleted.
After a user confirms deletions of a db record they are re-directed to the main page again. That page should delete the record they confirmed previously and also show the $message text if in fact a record was deleted. Since a user can also come to this second page before deleting a record, the if statement shouldn't run in this case, or if does the $message variable should default to an empty string and display that. Here's the If statement I'm running: if ('$_POST[ID]') { $sql = "DELETE FROM $table_name WHERE ID = '$_POST[ID]'"; $message = "<p><font color="red" size="2">-- record deleted --</font></p>"; } else { $message = ""; } ........
View Replies !
Show Some And More On Next Page
I'm stuck making my log for login sessions show only 50 per page. The reason I need this is because it will only display about 250 items before not updating/displaying anymore. If anyone has a link to a tutorial, that would be super- couldnt find one via google.
View Replies !
Show When The Page Has Been Last Modified
1. I have php script that will show when the page has been last modified. How do I link it on my home page. The link that I am using now does not work. Here is the link: <? include("updatepage.php"); ?> 2. I have a php forum. When I link it this way <a href="xxxxx/index.php"> it brings up the source code. When I link it this way <a href="xxxxxx/"> it brings up the dir. When I link it this way <a href="http://xxx/xxxxx/index.php"> it works. How do I get it to work with this linking <a href="xxxxxx/index.php">
View Replies !
Show 20 Results Per Page
i have created a database with some data in it and i want my page to read page and display the first 20 results and on the bottom to add numbers like [1] [2] [3] so the user can go to the next results.I figured that i can display the first 20 results by adding a counter on the while loop $num_rows = mysql_num_rows($result); $k=0;      while (($k<=20)&&($row = mysql_fetch_row($result))){ $k+=1; $i+=1;but i don't know how to display the numbers on the bottom.Here is my try <?php for($j=1;$j<=($num_rows/20);$j+=1){   echo "[".$j."]"; } ?> ...
View Replies !
Flash .swf Doesn't Show In PHP Page
I've recently put together a flash navigation for a 4 page site... three pages are HTML, the index page is PHP with a weblog. In all current Mac browsers, all four pages load fine. In Win IE 6 only the .shtml pages will load the flash--the .php page shows a big white box instead. If I include the index.php in the index.shtml file, the flash loads fine, but I'd like to know if there is some issue with PHP & flash that I should look out for... or is the issue with IE 6.
View Replies !
Show Image On Same Page
I echo a certain amount of images, these images are thumbnails. I want to be able to show the real enlarged image next to the thumbnail without having to reload the page. So what i'm thinking of is something like the onclick function in JS. I tried some stuff but still can't make it work. my code is something like this: for (i=0; i<count($test); i++){ echo "<a href="...."><img src="$test[$i]"></a>"; } tried putting a javascript function in there but wasn't successful. i basically need to pass just $i to another function and that function onclick() will produce the image.
View Replies !
Show Page Depending On Request Url?
Is there any way to show a different page depending on the request url? I have a few domains that point to one IP address. What I want to do is if someone requests http://www.site1.co.uk they see site1.php or http://www.site2.co.uk they see site2.php etc all from the root directory? I do not have httpd.conf access Is this possible?
View Replies !
Show Number Of Visits On Each Page...
How should i do when I want to show number of visitor on each page where each page is describing a user details like this: http://localhost/user.php?user=1 on this page it show details about user 1. And for user_52 I want to show how many visitors this user have had: http://localhost/user.php?user=52 it will show number of visits
View Replies !
Show Error Message On Same Page
I have Index.php which contains the HTML form with a username and password field + submit button, action: is my check.php. Say for example the user only input's a username and miss out the password field; when he clicks the submit button. I want the same page to be refreshed with a error message appearing below the submit button saying "error, please fill all in". I can get this to display on another page. but want this to be on refereshed on the log-in page.
View Replies !
Show Page Break In Records
I've just started to learn php and sql, and I noticed that there are several php discussion groups here. Pardon me if this is the wrong group, and I hope my first question isn't too silly. :-) I'm building a website that will publish articles, so I have an article table which contains a heading field, an ingress field, and a body field which will hold the complete article. There are line shifts (or page breaks) in this field, but my display-page won't show them. How do I show the article with the page breaks?
View Replies !
How To Sho Video Clip On Web Page Also A Live Show On Web
Indeed I am using php and Mysql. My licent want to 1. Show a video clippings on the web site. What I need to do ? Please elaborate a n example will be great thing. 2. He also want me to show live telecast of a seminar What arrangement I ned to do From hardware point of view as well as Software point of view.
View Replies !
Page Load Time Show Really High
im running PHP 5.2 on IIS 6 (Windows 2003 Server) and im getting a weird load time result when trying to display page load times on each page. e.g. Page generated in 1193387528.5501 seconds. this is my current code: <?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 4); echo '<p>Page generated in '.$total_time.' seconds.</p>'." "; ?> but i've tried 4 others which are all simular. Any idea as to why it's showing a false result as it's loading in unde 1 second (Dual Xeon 2.8 HT server and connecting over 100mb pipe (college campus)).
View Replies !
How Do I Alter This Script To Show 5 Rows Per Page?
I'm very new to php/mysql and am having a few problems I would like to show five rows of data then have a link to next five / previous etc. I've included the script I have below. I would like to add I have found articles on how to do this, but my problems is i don't knowwhere I should be editing the below code. I have tried several examples but just keep getting errors. Code:
View Replies !
Str_replace - Add Some Content On The Page To Show What You Have Submitted?
I had this wacky idea to have a pull down that keeps the same values when previewing what they have select in the post (ie. Webmaster World's 'Preview' Button When you post It has the same value of what u put in it when you add some content on the page to show what you have submitted) My Code: $genre_pulldown = "<select name="genre" id="genre"><optgroup label="Genre"><option value="Yo Mama">Yo Mama</option><option value="Blonde">Blonde</option><option value="Political">Political</option><option value="Religious">Religious</option><option value="knock Knock Jokes">knock Knock Jokes</option></optgroup></select>"; if(!isset($_POST['genre'])){ echo $genre_pulldown; } else{ $genre_pulldown = str_replace('{$_POST['genre']}"', '{$_POST['genre']}" selected', '{$genre_pulldown}');//LINE 81 }
View Replies !
Problem With Include - Register Page Doesn't Show Up
I am trying to include a page, but for some reason it is not working. Here is my code: <?php if ($page=="") { echo "<center>Starbits Pets is currently upgrading to V2, so we will be down for a while, come back later!"; } elseif ($page=register") { include ("html/register.html"); } else { echo "That is not a valid location!"; } ?> The register page doesn't show up I have tried almost everything I can think of, and it still doesn't work.
View Replies !
|