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




How To Do Hyperlink Using Date In Daily Report?


I'm currently doing on a sales system assignment which can generate daily report order by branch and date.

There is a report menu which users can choose the branch and date that they would like to view. my currently report form is to show all the chosen date report in one page.so if the user choose from 1st of the month to 31st of the month, then the page will become so long.

So, is there any means to generate the daily report that just show one-day daily record with the hyperlinks of other selected date below the report.if the user wish to see other day's daily report,then he can click on the hyperlink itself. Code:




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Daily Email
how would I go about making a script that sends a diffrent email everyday containing a line of text from a database to every email address also in the database.

It would correseond with the database row id: eg.

day 152 of the year
row id = 152

It is kind of like a 'joke of the day' thing.I under stand how to do most of this, but how do I get it sent the emails every 24 hours?

Daily Quotes
I am trying to write a script in php that display quotes on a daily basic. I have the db tables setup I also added 3 quotes to the table to test the script. The script is working except the quotes are displayed randomly instead of daily. Whenever I refresh my browser another quote appears.

I would like to have these quotes displayed on a daily basic.(IE: November 19, 2003 quote should only display today whereas November 20, 2003 quote will display at 12:00am) although, November 19, 2004 the same quote for 2003 should display (in case I haven't updated the latest quotes for the following year(s) which requires an if / else statement. What am I doing wrong or what didn't I do right? I am no good at the date() and time() function. PHP Code:

Randomizing Daily
I am trying to randomly get a number every day, and have keep that number for the whole day. If it radomly choose 4 one day I want it to keep that number until the next day.
Anyone know how I could do this?

Daily Automated Query Of Database
I would like to run a script on a daily basis that queries a DATE field
in one of my tables. I want to do this to establish the age of my table
entry by comparing with the current date.

Could someone please give me a few pointers on how to get started in
solving this. I just read somewhere about cron jobs but I've never used
them?

I'm running Apache (2.0.54) on Win XP Prof with MySQL (4.1.10) and PHP
(4.3.10). All on a local machine so I can set all appropiate
permissions.

Generate Random Number Daily.
how to program in php and for a site I am making I need to create a script that generates a random number every day. I have written this so far and unfortunately it is not giving me the results I need. Code:

Report PDF
I have been tried to print php file to pdf without any success.
Using many tools for example , fpdf and html2fpdf library , similar
result.

below is my code , i did not why the pdf printed on the screen is
different from the page on the browser, the aligment is out and some
fields are missing .....

Code:

How To Use Jasper Report In Php
Can you help me, how to use jasper report in php code.

Crystal Report
Did anybody worked with Crstal report and php together? I need an
immediate solution.

Query, Report
I have a table with these fields in MySQL:

SSN(primary, unique) | LastName| FirstName| Coursekey| Completed

Employees are assigned a certain number of courses, and with each course they complete, the Completed field is updated from No to YES. I want to print out a report that shows all employees and whether they have completed all reports or not. So in other words if they completed 6 out of 7 the report should say not completed. How do i write a query that will pull out employees that have completed all courses?

Bug Report System
do any of you know of a good bug reporting system? i have been working with bugzilla but i think it sucks!(sorry)

Print A4 Report
I'm trying to convert a database from M$ Access to PHP MySQL.

I'm stuck with a bit of a problem on the reports.

Does any one know how to generate a A4 report with a header and footer?
Some way to detect you have taken up so many lines and create another
page to print the rest?

Why Php Don't Report Error?
I got a very odd issue: on some of my virtual hostings, php just don't
display any error/warning message if on a error. It just stopped with
a blank page. I totally have no idea if it is a php problem or an
Apache problem.

PHP Does Not Report Errors!
I have no idea how this happened, but PHP (5.1.2) on my dev server
stopped telling me about errors. There's nothing in the server log
either.

I redownloaded PHP and used php.ini-recommended (only setting
display_errors = On). After restarting, it still returned blank pages
rather than error messages.

So I deleted php.ini and restarted the server, and suddenly error
reporting came alive!

Where have I buggered up?

Report & Printing (using PDF)
I've a lot of problems with print management of commercial reports.

I tried two alternatives:
1. Generation of HTML code formatted using CSS
2. Generation of PDF file

I left the first because it isn't possible to define a Footer and a Header for each page (sure?) About the second, i created a PHP class that takes a sql-query and generates a PDF file. Code:

Want To Create A Php Report
I am going to develop a web-based application where I am able to generate some reports. Let me explain:

Say I have to print a invoice of multiple pages with some specific header and footer and with a specific design. Say the invoice have multiple fixed sized cells. And my query reasults will be put of a specific cell. I have to create the report so that the page is not breaked and cells are also not breaked.

So How can I able to generate that kind of report. Even I do not know how to create repost in PHP.

Report By Month?
how to make report by month? i want to call out from my db but how to make the weekday function and also holiday?

Call Crystal Report In PHP, CR-XI
Please help me to call Crystal Report in PHP, CR-XI,
Please help me i have stuck up with this or else can anybody tell me
which is the other easy tool like CR for report making and should also
can be called from PHP easily.

Report Generation In PHP / MYSQL App
I've been thinking of switching from ASP / MS-SQL Server to PHP/mySQL.

My one concern is how the reporting will work. In the MS world I used
Crystal Reports which had a nice editor and worked well for all types
of reports.

Can someone please recommend the preferred report generation solution
for PHP/mySQL ? Ideally something freeware / shareware and not too
expensive.

Report Generating Tool
I m using php with postgresql as database running on os linux.I need report
generating tool.Can anybody suggest which one will be the best?

Error Report For Form.
Last night I was working on my form and came across a few errors that I have no idea how to fix with all of this php script running through my html.Errors:

1. Select menus don't keep the value intended selected
2. Height and choose your God are haveing issues registering
3. I cant seem to get the Yes and No raideo buttons to work the way they should. They don't register that they have a value. Code:

Retrieving Credit Report
Does anyone know how I can code a credit report retrieval page?  I am a mortgage professional and am looking to request credit on the site instead of in the loan software.

E-mail Status Report
Is there a way to recieve a report whether e-mail is sent or not using php?

Passing Paramenter From PHP To Crystal Report.
I am trying to pass several parameters thru PHP to Crystal Reports and
display (or print) the report. However, I am unable to find related
information on the web site. If I don't have to make it accessible on
the intranet web page, I know that I can use Crystal Report Viewer to
accomplish the task. But I have no idea how to do that if putting on
the php web page. Can anyone suggest and give me some hints please?

PHP Reporting Tool Like Crystal Report.
Is there any reporting tool available for php as like Crystal report. If  there any please inform me as soon as possible.

Building A BODY Report From A FORM
I have the script and majority of script put. I have few last touch ups to do. I created this form, where it gets the input email and content from the user..and then tries to send that info to the company and then another email to the user confirming that the email was sent to company. I'm stuck on creating a body for the email that will be sent to the company with the problem and body for the user as confirmation. Here is my coding. Any suggestions would be helpful. PHP Code:

Browser And CMD Line Report Different Php.ini Locations
Using IIS 5, PHP 5 on Windows Server 2000.

Running
php.exe -r "phpinfo();"
from the command line shows
Configuration File (php.ini) Path => C:phpphp.ini

Running phpinfo() from a browser through IIS shows
Configuration File (php.ini) Path C:WINNT

There is no php.ini in the C:WINNT directory.

This still occurs after restarting IIS with

net stop iisadmin
net start w3svc

What needs to be changed so php.ini is picked up by IIS?

Online Or Offline Server Report
I am going to be making a script that reports whether or not a server is online or offline. I have a download page, and the page has six different hosts for a file. I wanted to make a small script that would report whether the server is online or offline, so you know which one to chose.

I am unsure as to what will check and see if its on or off. Is there a boolean statement that will connect to a page and tell if you if it is there or not? DNS is not enough, it has to actually make a connection with the server.

How To Show Weekly Monthly Data In A Report.
Currently I display the data in a daily format. I have a form that the
users submits the date range (from say 20061224 to 20070530) and the
data is displayed daily.

I like to know how I can show the data in weekly and monthly way.so
that for the range shown above I would have the monthly or weekly
only.

Unfortunatly the date format in the db has the type text and is stored
as yyyymmdd.

i.e table.

date, sales, product and I can show daily only.

Service Report Sent To E-mail Wrong Format
I’ve done li’l readings on it but I still don’t get some functions of it. The following are the codes for our Customer Service Report which is sent to an e-mail. It carries the function of sending the CSR. The problem of this codes shows in the image I posted below. As you can see, the left margin is off and the texts don’t have the same font sizes. Can somebody help me with this? Please? Please try to check where the codes went wrong. I mean, please give me the appropriate codes to arrange the format: the left margin and the texts which will have the same font sizes. Code:

Hyperlink
Im making a select statement and the outputs are in a table but i want the entry of a column to be hyperlink to take to another page Code:

Building Dynamic Report Page On Table Data
I am posting this message to this forum because I need some advice and some help with building a page to produce a report from the database I am building. Firstly, however I will post the table structures for the involved tables..... Code:

Displaying A Hyperlink
I pull a string out of MySQL and display it in an html page using PHP. It automatically becomes a hyperlink but if it is a link to a document (www.web.com/test.doc) it won't translate it into a hyperlink. Does anybody know how I might do this?

Hyperlink Query
I have the following line that prints out a record with a link, when you
click the link you get more column
information in the record. I want to add another field (State) so that I can
narrow down the results. How can I pass both the hcounty as I'm doing now,
along with state? to the state7.php file?

print " <td><bgcolor=#000000><font color=#000000 font color=#000000
face=Tahoma size=2 ><A href='state7.php?searchid=$line[hcounty]'><img
src='buttondetail.gif' border=&#390;'></img></td>
";

Replacing Www... With Hyperlink
i want to replace all entries of beginning with 'www.' and
ending with ' ' with a hyperlink to that substring such as:

www.google.com := <a href="www.google.com">www.google.com</>

can anyone tell me the easiest way to do this?

HyperLink Validatation
I am wondering what approach I could used to validate links. I am building a simple portal type index and I would like to be able to check for broken links weekly. The Database already has a field for link status. I would like to create a script that checks for broken links and changes the status so a human can follow up on it.

I am also wondering about how one would “limit” this program. I mean I don’t care if it takes 2 hours just as long as it does run rampant and cause issues with my host. Any thoughts…? I am not looking for a complete solution just a point in the right direction.

Hyperlink Per Mail
can anybody tell me how to sen a hyperlink using the php mail function.
If I send a <a ref ...> it just turns up in plain text. Whats the trick

URL Text To Hyperlink
here is what i have

   $threadx = preg_replace("/((ht|f)tp://[^s&]+)/", "<a href="$1">$1[/url]", $threadx);
   $threadx = preg_replace("/(S+@S+.w+)/", "<a href="mailto:$1">$1[/url]", $threadx);

can someone tell me how to make it better,
this one completly screws up existing hyperlinks and <img src=""> tags...
need to fix it somehow..

Hyperlink With Parameters
Is this how you print a hyperlink passing parameter action , id, qty to another php script? And printing HTML inside php? I giving three sample code in my program.


I use quotation around HTML TAG and code so can read by php print command.

1. Hyperlink with parameter to pass

print "<a href = "cart.php?action=Add&id=" . $column['SKU'] . "&qty=1">Add Item</a></font></td></tr>";

2. Printing HTML tag with PHP print command

print "<TR><TH>Title</TH><Price</TH><TH>Description</TH><TH>Add Item</TD></TR>";

3. Here I try to print a drop down list with Javascript onChange event. Notice that I use concatenation between HTML TAG and PHP code. I use to respesent quoatation mark.

// print the drop down that will update the qty instantly using Javascript onChange event
// the following syntax will look like this in regular HTML code
// <select name = "$column['SKU']" onChange = "upDateQty(this)"><option
Selected>i</option></select>

print "<tr width = 15% height = 25><td width = 15% height = 25><font face = verdana size = 1 color = black>";
print "<select name = "" . $column['SKU'] . ""onChange = "updateQty(this)"";

for ($i = 0; $i <= 20; $i++)
{
print "<option";
if ($rows['QTY'] == $i)
{
print "SELECTED";
}
print ">" . $i . "</option>";
}
print "</select></font></td>";

Using A Hyperlink To Retrieve Data? Is It Possible Without?
I was wondering if it is possible to get data from a database using a hyperlink instead of a form? My situation is I have a page with a list of products (data from a mysql table) and I want to keep the info on the page small so I have limited the description and left out some info. what I want is a link at the bottom of each product that says "more details" and when clicked it creates a new page on the fly to show more info. is it possible to do this without javascript? If so How.

Hyperlink And Passing Of Variables.
I know three ways to pass variables form one page to another. The first
one is to declare and set session variable. In this case if one goes to
another page (by clicking on hyperlink or pressing a button) value of a
session variable will be automatically seen on the new page. The second
way is to set hidden variables in the form and go to new page by
execution of this form (press a button or enter), and the last way,
which I know, is in the declaration of hyperlink after name of a new
page put after "?" names and values of variables. Sometimes I need
to use the third way. However I do not like that after new page is
loaded in the address line of browser one can see all variables (names
and values). Can one avoid this problem?

Hyperlink And Posting To New Page!
I have a page where I have done a successful query and get search results displayed. Now I would like a link activated so that they can click on the name and go to new page with further details about that company like address hours etc.

Hyperlink - JS Function & PHP Variable
if its possible to call a JavaScript function and pass on a PHP variable in 1 hyperlink?
I need to pass on variable: $lang=english And call JavaScript Function: javascript:loadScript1()

Executing Code Within A Hyperlink
I am writing a photo gallery and suppose 8 photos are displayed. When the
user clicks on a button under the picture, I want it to add that picture
name to a "favorites" list within the session data, but NOT leave the page
the user is on. How could I do this?

Need A Script To Tell Me Where A Hyperlink Originated
Not sure if this is a php or an html question but I'll post it anyway.

I have multiple thumbnail images on my catalogue page catalogue.php and they are
all hyperlinked to a single page called desc.php that will give an enhanced
description of the product selected.

I want the desc.php page to print the contents of a text file named ?.txt based
on which image was clicked on in my catalogue page.

example: if I click on 1.jpg in my catalogue then I want the file 1.txt to be
selected and printed on my description page.

I know how to print the contents of a textfile and I know how to disect the
strings of the filenames so that I can associate 1.txt with 1.jpg.

What I dont know is how to retrieve the name of the image file that was clicked
on the catalogue page within my script for the desc.php page

If I didn't use a hyperlink image and used a form submit button instead on my
catalogue page then of course I could use something like:

$filename = $_POST['filename']

Hope you understood all of that.

Table Output As Hyperlink ?
i am trying to create a table generated from a MySQL query with some of the output as hyperlinks. in this way i intend that the users of the site click to see the customers registered and then click on the "hyperlink" of their customer id, which will navigate them to details about that user on another php page. PHP Code:

Passing Variables With Hyperlink
I've managed to get a MySQL database up and running and can display the data with PHP to a web page. What I'd really like to do is click on a field on the web page to display another page based on that value.

As an example using a membership database, I display an index of member no and member name to a web page. I'd like the member no to be a link that when clicked on would allow me to display the entire member record. I just need to know how to pass the variable from the hyperlink to a php script to do the query.

Hyperlink To An Excel File
I have a hyperlink to an Excel spreadsheet but I'm having a bit of trouble with it. My first problem was that IE6 integrates Excel into the IE window when you click an Excel link. I overcame that by having a dummy Excel file run that had VBA code to launch the real application in a new window. That's probably too much info, but there it is.

Moving on. My problem is the users will be opening up this VBA Excel application of mine from our Intranet. When they click on the link, the dummy Excel file runs, that in turn launches the real application and all is well and good. Except for one thing. When the user is done or goes back to the IE Intranet window where they launched the application, this is the error that is displayed:

The page cannot be displayed: The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

My two solutions were to either have the link do two things simulatenously. You would click on the app link and it would run the application and it would also reload the Intranet home page. My second solution was to have them click the link and then it would go back to the previous page they were on all in the same click procedure/event/whatever. Code:

Basic Hyperlink Query
I have a php series of scripts/programs/files which provide a simple
calendar/scheduler program.
When either an email or web address/hyperlink are displayed within the
output, they seem to have the browser default link colours and underline.
Altho the output table/content is within a div in the web page, I seem to be
unable to apply CSS styles to the div contents in this case.
I have even tried !important to no avail.
There does not seem to be any HTML tags in the PHP controlling them.
Is it possible for anyone to help me to apply CSS styles to these links
without you being able see the PHP etc?
Ignore this if I am asking for the impossible/impractical.


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