Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Dynamic Content - Writing DB Info To A Page


I'm writing a website that works on similar lines as a dating site, where end users can enter their details and what they want to sell, which is then submitted on to a webpage, any people that are interested in that product, contact us and we then pass the lead to the person who is doing the selling. So basically teh site is acting as a middle man.

I have done the database bit where the end user enters his details, we get emailed his details and his id (which is a an auto increment field) then there is a page called view.php which pulls up his details on a web page and there is then a submit and decline button. Teh decline button is the easy part, but the bit that I'm stuck on now is the submit part. And thus here is my question how do i write information that is held on a database to a webpage. But this webpage has to ADD and and not OVERWRITE what is already there as we want to create a listing? Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Writing Info To Text File
im writing some info to a text file im trying to make my script write people's ip and stuff PHP Code:

View Replies !
Taking Info From A Form, Saving It In A DB And Writing It To A .css
What I need to do is take "site info" from a form, save it to a database table called siteinfo, and then write style information based on the variables. Code:

View Replies !
Writing Multiple Lines Of Info To A Text File
when i uploaded my first .php file to my server it just displayed all the code and did not work. so i searched google for my problem and a guy said to save my file as a .php3 this worked but i am wondering if there is any other way to fix it. and if someone could tell me the difference between a .php and a .php3 file. Code:

View Replies !
Getting Content-Language Info
As I understand it, when the browser sends its request ot the web server, there's a bunch of associated metadata sent along with it. including the Content-Language info (such as en_UK... british english is the language set in the browser.) Assuming I'm not completely wrong-headed about this. how do I find out the values of those various metadata sent in the request header?

View Replies !
Content Mangement System/Wiki For Writing
I'm looking for a good (ideally free), system for quite a big writing job. There will be some collaboration, but it is mainly on one system. I am keen to have easy to use indexing and cross-referencing as well as excellent backup and recovery of data. I've looked at a few wiki systems and they seem quite good, but don't support all that much
formatting. I know things must have changed a lot in the last couple of years since
I last looked into this in detail.

View Replies !
Writing Dynamic Headers (eg Titles)
If I only have control of layout pages that are in effect parts of the <body> of a (dynamic) web site, how can I change the title. I can put a variable in the title but this doesn't seem to work.

e.g.

<html><title><? print $message; ?></title></html>
<body><? $message = "Something"; ?></body>

does not result in a title of Something since the header is parsed before the body.

Is there a way round this so I can put a standard bit in the mainpage but have the title determined by the context?

View Replies !
Writing A Dynamic Loaded PHP Module In C++
find a tutorial on how to write a dynamic loaded
PHP module in C++ ?

I could not find one on the php.net web site....

View Replies !
Getting Info Out Of Dynamic Form
I am using the following code to produce a dynamic form.

$result = mysql_query("SELECT id,weight,date FROM weekly_data WHERE
weight IS NULL AND subscr_id = '$toss' AND date <= now()");
if (!$result) {
die('Invalid query: ' . mysql_error());
}
print"<table width=ï`%' id='catchup' border=&#390;' cellspacing=&#390;'
cellpadding=&#390;'>";
print "<form name='form1' id='form1' method='post'
action='catchupprocess.php'>";
print"<tr>";
print"<td></td>";
print"<td>Weight</td>";
print"<td>Date</td>";
print"<td>Waist</td>";
print"<td>Measure</td>";
print"<td></td>";
print"</tr>";
while ($row = mysql_fetch_array ($result)){
//echo $result;
print"<tr>";
print"<td>";
print"<input name='".$row['id']."' size=&#394;' type='text'
value='".$row['id']."'/>";
print"</td><td>";
print"<input type='text' size=&#396;' name='weight".$row['id']."'
value=''/>";
print"</td><td>";
print"<input type='text' size=&#3910;' value='".$row['date']."'/>";
print"</td><td>";
print"<input type='text' size=&#393;' name='waist".$row['id']."'
value=''/>";
print"</td><td>";
print"<input type='text' size=&#396;' value='$measure'/>";
print"</td><td>";
print"<input type='hidden' size=&#3910;' value=''/>";
print"</td>";
print"</tr>";
}
print"<tr>";
print"<td>&nbsp;</td>";
print"<td><input name='Reset' type='reset' value='Reset'></td>";
print"<td>&nbsp;</td>";
print"<td><input name='submitcatchup' type='submit'
value='Submit'></td>";
print"<td>&nbsp;</td>";
print"</tr>";
print"</form>";
print"</table>";
?>

View Replies !
Dynamic Content In A <div>, Using Php
i have a <DIV> block, and I want the innerHTML to change at the click of a button. for those who don't know some javascript, if you have a dive with an id, <DIV id="myDiv"></DIV> you can change the content inside with a function call

myDiv.innerHTML = "some stuff";

however, i need my data to come from a mySQL database and thus needs to be outputted via php. so ideally i want something like

myDiv.innerHTML = "<?php echo "some stuff"; ?>";

of course that does not work because php is not client side, this is just to illustrate what i want. any ideas on how to do this without iframes?

View Replies !
Another Dynamic Content
I know this topic has been talked about many times but I searched the forums for hours and can't find a solution (another newbie). I want to build a menu with 6 links and when you click on the link.

the information below the menu in a lower row gets updated (pulled from another php or html file)that's it. I know it's simple but if you could point me in the right direction I would greatly appreciated.

View Replies !
Dynamic Content
I work for a design company as an intern doing strictly design, however, I'd like to learn PHP for my own personal use.

I'd just like to know where I should start with setting up dynamic content. Meaning, a site that has variables or something of the sort, where the webmaster can log in and change content from a panel of some sort.

Maybe I'm jumping into this too quickly, but I've already taken C++ and other languages that make reading php understandable.

View Replies !
Dynamic News Content
Is there any sample application with source for creating dynamic news contents using PHP and some relational database?

View Replies !
Dynamic Linking In Content
I have a query. What I am trying achieve is to do some on the fly linking. What I have is some content from a DB, and within the content if a particular word appears then I would like to insert a link to the product page.

Now I'm not quite sure the best way of implementing this. whether I should create a keywords table in the DB and then compare the content with the keywords table?

Any suggestions or examples of code?

View Replies !
Web Crawlers And Dynamic Content
This must be a very old and well studied question...
I created a site using JSP, that permits the viewing of articles that
are fully stored in a database. The url for the articles is something
like:
.../article.jsp?idi=6&ida=12
My question is, and this is the same for all dynamic content
technologies (server-side scripting technologies): is there a way to
permit for search engines and crawlers (Google, Yahoo...) to find and
categorize these article pages?

View Replies !
Dynamic Link/Content With PHP
I've created a mySQL database with the fields id, title and content.
'ID' is a unique field. Any ideas on how I can use PHP to generate a
list of the titles which are links. When you click on a link you are
taken to a page with the content held in the database. I'm guessing the
generated links would be something like /page.PHP?pageid=x based on the
id, that's if this script is possible at all.

View Replies !
Generate Dynamic Content
I have an home page, there are three links : news1, new2 and news3. and then I have one page to display the news, display.php. Can I display news1,news2,news3 in display.php. So I dont need to make 3 different page (display1.php, display2.php, display3.php) to display 3 different content (news1, new2 and news3)I want to make it dynamic.

View Replies !
Dynamic Content Using Dropdown
I have the following dropdown menu which is populated by content or categories (with catID being the category ID) from the database. What I want to do though is when an item in the drop down list is selected, I want to show dynamic content under it. BTW, I must not emphasize on "dynamic" too much because it may seem like a DHTML thing going on here. For example, if a user selects a certain item/category in the list, I want content such as coupons in the DB which have the same catID as the category selected showing up.

The coupons are discreetly placed in the DB table "coupons" with the category ID being catID and...for eg:

catID --- couponname --- couponinfo --- expiredate

If you are going to include any kind of javascript, please write them as well. Here is the code I am starting off with:

===========================
<form name="myform">
<select name="selectID" size=10 > <? $resultcat = mysql_query("SELECT * FROM Category");

while ($myrow2 = mysql_fetch_array($resultcat)) {?><?printf("<option value=%s>%s</option>", $myrow2["catID"],$myrow2["name"]); } ?></select></form>

View Replies !
Dynamic List Content
i'm making a hierarchical Order list for this i've created database where
parameter_cd,parameter_desc,upper_parameter_cd my page is like this Code:

View Replies !
Copyrights And Dynamic Content
Has anybody here ever copyrighted a dynamic website? I'm an internet publisher and my website stores small business ideas and related information in a mySQL database. We add content (our own) to the database almost daily.

I'm not asking for legal advice, just seeing if anyone has done this and how they went about it (i.e., worked with a lawyer, filled out the forms through US Copyright office, used a copyright service, etc).

The closest guidance I could find from the US Copyright Office is contained in Circular #65 - Copyright Registration for Automated Databases (http://www.copyright.gov/circs/circ65.html). However, their definition of an automated database is the compilation of pre-exisisting materials or data into an original form. Not sure where original content fits in?

If anybody does have experience with this, the follow-on question is, how frequently must follow-up copyright submissions be filed to accomodate the expanding database.

View Replies !
Java, Dynamic Web Content, Serialization, Web Dev
I noticed a post that mentioned PHP does a better job of dynamic web
content than java and wanted to see what people have to say about that.
Also, I saw it mentioned that in PHP you don't have to mark objects as
serializable and sessions are more transparent with or without cookies.

I've done some java but am mainly a C++ programmer at this point, but
want to start reading up on web development. I have to find my big
thick Java book, someone may have borrowed it. I got into doing alot of
perl for automated testing and started reading perl/CGI, various perl
web stuff and PHP books.

Maybe I should go back and focus on Java more, and then see if I want
to play with PHP. Can you find free web hosting that has perl/java/php
support ? Is it worth building my own web server with Apache ? I am
mainly interested in furthering my programming skills. I would think
getting an apache web server running would give me more admin skills.
That might be good if I wanted to do my own freelance work. I would
like to be able to have a flexibale work schedule, do some part time
work etc. I'd also have to buy another computer probably to install
apache on.

Is the difference between Java and PHP sort of like the difference
between C++ and perl ?

View Replies !
Split Dynamic Content PHP Or Javascript
I have been working on a new site for ages trying to come up with a good way to cleanly split up content using PHP or Javascript.

Basically what I want to do is split dynamic content that includes links in to certain length chunks and not just cut off the string in the middle of a link. The length will be determined by the current users font-size.

Is there a PHP function that does this by any chance or do you know of one, javascript also.

View Replies !
Php Meta Descriptions With Dynamic PHP Content...
I have been very interested in using dynamic (db driven) meta page descriptions. I know that search engines use these at a minimum these days, but will they be able to read these dynamic descriptions. I guess I am not sure how these spiders work... Do they simulate users bwosing the site or are they indexing them by scanning actual files (in which case dynamic meta tags would be pointless).

View Replies !
Dynamic Content - Meta Tags
I have some simple dynamic content pages (included below). I need to
know how to add specific meta tags (ie. description, keywords, ect.),
as well as extra specific header coding to a page. I would like to
have these on the Links page. Is this possible? and how?

View Replies !
Replacing Strings With Dynamic Content.
I am writing a template function, and want to replace a string such as <*price*> With the value that price is a MySQL database. For example, I have a page that is
page.php?cid=3 Code:


View Replies !
Sockets To Serve Dynamic Content
I know it is possible to send a web page to someone's browser through the socket as a response to their connection. Let's say the page you serve them has a link with GET variable attached or a form with POST variables, and you want to use that information to calculate your next response to them. How does one go about doing that?

I've tried just using $_GET['variable'], etc within the php script but no luck with that, however when the user first directs the browser to the socket, they are sending headers.

Am I supposed to use regular expressions, etc to parse the headers and extract the information from get and post or is there some easier or better way to do this?

I've seen lots of examples from google on how to send a response on the socket from telnet, but nothing about how to create some sort of browser interactive response. Any body able to help out with this?

View Replies !
Cached Pages And Dynamic Content
I am currently building a caching mechanism into my own development framework.

Basically whenever a page that is marked in the DB as cacheable is requested the controller creates the cached version of the page and returns it , on subsequent requests the cache is displayed.

Whenever a content change is made in the DB the relevant cached page is deleted ready to be rebuilt & cached with the new content on the next page request.

Thats fine for many pages , some pages are too dynamic for caching to be useful (shopping carts for example);

.................

The issue I am grappling with is .....

A product information page, mostly static and perfect for caching , but lets say the user has something in thier shopping cart I want to also show a 'checkout' now link or change the 'buy now' links to 'add to cart' etc.

e.g. some small content will change and so I can't use the existing cache.

the choices to date seem to be ...

View Replies !
Create And Dispose Dynamic Content
I am trying to figure out how to have a script dynamically create and then dispose of a text file. A script will generate a text file using the standard I/O functions and then present a link so the user can right-click and download. That part is easy. The file could be created in a unique directory on the server for each user such that different users don't clobber each other.

How can I make sure the file is later removed if the user backs out of the page and doesn't explicitly logoff. I suppose it boils down to is there a way to write a script that gets executed when a session ends whether the user explicitly logged out or not.

View Replies !
Creating Dynamic Content For A Website
What I want to create is a gallery of posts, perhaps text files in a single directory on my website, and allow the user to scroll through them with "back" and "next" links. I hate the idea of creating individual html files with the content posted in the body of the file.

Is it possible to use php to post this content dynamically from a directory of txt files, with no hardcoding, so the previous or next post just appears on the page with no reloading? If so, can anybody direct me to a tutorial on how to accomplish this?

View Replies !
Include Files Dynamic Content From Subdirectory
I am trying to use different (dynamic) content based upon the choice in a simple menu, here is what I have so far (see below), it works fine as long as the include files (a.inc, b.inc, etc...) are in the root directory, what I want to do though is keep all the include files in a subdirectory called includes, I am not familiar enough with PHP to change the code to make this work. Code:

View Replies !
Problem With Browser Caching And Dynamic Content
I'm using an image rotator PHP script that randomly rotates 1 png image and 5 gifs. Firefox and Gecko engine browsers cache the first image that it loads and keeps it that way, even when refreshed (when its supposed to display a new image).

IE does not have this problem. Does anyone have like a no-cache or an always-revalidate script? Obviously, the src looks like this <img src="rotate.php" alt="blah blah">.

View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:

View Replies !
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.

View Replies !
Wrap Dynamic Content In A Static HTML File
I am currently working ona site whoch uses logins and sessions... I am trying ti implement the use of fast Tamples class which will allow me to wrap my dynamic content in a static HTML file. However the problem is:-

Warning: Cannot send session cache limiter - headers already sent (output started at
welcome2.php:1) in /lib/check_session_php.lib on line 3

The check session is an include to check for a valid session, thata user has created upon successful log-in... Anyone familiar with the fast templates class and could possibly help me debug this problem.

View Replies !
Dynamic Content - Current Currency Exchange Rate.
I have a page that does conversions. The only thing that doesn't stay the same is the current currency exchange rate.

View Replies !
Typo3: Generate Dynamic Website, Show Only The Pages That Include Content
i want to create a web form where someone can do some input or pick
strings from select boxes. after that the person can click a preview
button and a website will be generated dynamically. so i thought i
should use typo3. first of all i created a html-template. then a page
tree with all the sites that could possibly appear. in the end only the
sites with content, will be shown. all of this must happen
automatically. so i need a php script or a typoscript that compares the
"pages" table with the "tt_content" table. after that the attribute
"hidden" in the "pages" table should be "true" for the pages that
doesn't contain any content.

does anyone have an idea if this is possible or if typo3 is the right
choice?

View Replies !
Help With Writing A Page Counter
How would I go about constructing a hit counter that returns not only the total number of hits, but also the number of hits today, this week, and this year?


Here is the code I have to work with so far:

function increment_counter() {
$time = time();
$addtofile = "$REMOTE_ADDR|$SCRIPT_NAME|$HTTP_USER_AGENT|$time";
$file = fopen("hits.txt", "a");
flock($file, 2);
fwrite($file, $addtofile);
fclose($file);
}

After this hits.txt is written, how should I parse the info to detect which belongs to this week and year?

View Replies !
Writing To A Page After It Has Loaded
I have been trying to find out how write to a page after it has loaded..

I have written an application to control pppd on our server and need to loop
a status/progress display while the deamon is connecting.and after it has
connected.

View Replies !
The Best Way Of Writing Login Page To Be Secure
i use session to secure my login page
i register a key in every session that store IP's who login to admin
control panel and timestamp.
but i think it is not so secur
do u have the best way using of session

View Replies !
Writing A PHP And Javascript Generated Page To A PHP Variable...
I have a form that posts data to a PHP mailer page I have created. When
it goes to the PHP mailer page it reads some of the data and modifies
the page accordingly using Javascript (hiding certain divs, etc...). My
goal, is to take all this data after it has been processed by
Javascript and send it through my PHP mailer as it is currently
formatted.

If it helps any, the track I am on right now involves encapsulating the
Javascript processed block in a div. I am then trying to take the
..innerHTML data from that div and store it in the PHP $message variable
for my mailer. This won't work because PHP is server side. So, I moved
on to generate some Javascript code (with PHP) that sends all that
messy HTML data that its processed through a URL variable to then be
read by PHP. This doesn't really accomplish what I want as it cuts off
about a quarter of the way through my data......

Any ideas?

One thing I thought of but don't know how to do or whether it's even
possible is using PHP to view the source of the current page and store
that as the HTML to be e-mailed. Or, is it possible to do something
similar to .innerHTML with PHP?

View Replies !
Writing Pdf Docs And Going Back To The Previous Page
im trying to write a pdf document which contains two columns of data.
when the column on the left crosses over to the next page i need to be
able to go back afterwards to the previous page to write the content
for the right column.

currently im trying to do this with fpdf but it doesnt seem to allow me
to go back to the previous page once i have finished writing content
for one column that crosses over.

View Replies !
Get Info From A Html Page With Php
im looking for a way to get info from a html page in php i have a code that was sapose to work but no longer does any one have any ideas on how to make it work? here is the Code:

View Replies !
Sending Page Info
for several different .php files (file1, file2, file3 ...) i want to have page numbering, ie, this is page 1, this is page 2... the files are accessed in different order

order 1: file1, file2, file3
order 2: file2, file3, file1

but the page numbering should always be 1, 2, 3 regardless of actual file order. any ideas how this can be done?

View Replies !
Passing Info From One Page To Another
I have a dynamically generated list of check boxes with ids email1, email2, up to the end of the list of addresses. This list is then passed to the next page where all the addresses are concatenated and added to a database. At least that's the theory. I can't figure out how to dynamically get all the $_POST[emailx] variables, with x being 1, 2, to the end of the list.

View Replies !
Send Info Into Same Page
we can send info into same page like following index.php?do=1 we can get it

if ($_REQUEST["do"]==&#391;').

View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.

View Replies !
Opening A Page To Display The Right Info
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information. How do i do this?

Every user has a username stored in the database along with their information and the url to their photo. Code:

View Replies !
Reading And Extracting Info From Another Page?
How would I extract some info from another site and then display it on my site?

View Replies !
How To Add My Own Content Into Page
i've built a page and made it a module... but it is almost a blank page because i don't know how to add my own content in that page... Code:

View Replies !
1 Page, Many Content
Up to now i have always created pages that are seprate and a link just goes to that pages so like index.php games.php news.php etc,

I am creating a site for someone however and they have only given me index.php and want all of the infomation inserted in to the 'content area' of the page. I know it changes the url to like index.php?news index.php?

View Replies !
Get Content From A Page
I wanted to try to get content from a page say www.google.com and use PHP to modify it to my liking.

View Replies !
Page Content
on my website i have a test.php page and link to test.php?test=1 and test.php?test=2:

<a href="test.php?test=1">Test 1</a><br>
<a href="test.php?test=2">Test 2</a><br>

what javascript script do i need to tell it what to put on these 2 pages (?test=1 and ?test=2) and where to put the content i want to have on these pages.

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved