How would I select only the first instance of each result? In other words, if there was an 10 events taking place 3 times each in the date range specified, how could I get the db only to give me first instance of each distinct event?
I have a very annoying problem. I have a friend's windows xp pro box that had (are you ready for this?) 2712 infected files on it. I was unable to log into the system normally, so I restarted in safe mode. After running a system cleaner (which I have used many times on it before) to remove the...
I need to capture the values for screen height and screen width and assign them PHP variable names ($width, $height) without reloading or submitting the page. Can I do this?
I have what I thought would be a very simple question. I want to subtract a time in my database from the current time, and get a difference in minutes. What is the most concise and efficient way to do this?
I posted this in another forum also (which will no doubt anger the moderators - SORRY) but I did not know where to go...
I have a problem. I need to be able to use an external dial-up modem to connect to a remote application, but I also want to maintain my internet connection through the LAN on...
I have a problem. I need to be able to use an external dial-up modem to connect to a remote application, but I also want to maintain my internet connection through the LAN on the same workstation. Even when I specify the DNS and gateway (even though they are assigned by DHCP), as well as select...
Why do I keep getting this error? The script works, but there is still this error.
Here is the script:
<script language="JavaScript" type="text/JavaScript">
<!--
function formval()
{
if (document.form.formfield.value=='')
{
alert("Please enter your search.")
event.returnValue=false;
}
}
var...
I am able to retrieve the row I want (from a flat file). Now I would like to be able to edit and/ or delete that row only without affecting those before or after. Is there a way?
Here's how I am getting the row info ($ed is the id for that row which is posted to the page by clicking a link with...
Here is the script:
<script language="javascript">
<!--
function showhide(item)
{
if (item.style.display=='none')
{
item.style.display='';
}
else
{
item.style.display='none'
}
}
-->
</script>
I am using an onClick to activate the function (shown below). This displays the text...
For some reason every time I do this:
b=document.the_form.days.value;
x=(6 + b);
document.the_form.result.value=x;
Instead of getting a sum, it places the numbers beside each other(i.e. if b=1, I get 61).
If I do this:
b=document.the_form.days.value;
x=(6...
I have installed Apache on my win 2k box. I have also added php 5 to c:\php. As far as I can tell I have made all the necessary changes to the php.ini and httpd files (as well as moved files to the system32 and winnt folders).
Apache starts and opens index.php, but does not actually run the php...
I have installed Apache on my win 2k box. I have also added php 5 to c:\php. As far as I can tell I have made all the necessary changes to the php.ini and httpd files (as well as moved files to the system32 and winnt folders).
Apache starts and opens index.php, but does not actually run the php...
I have installed Apache on my win 2k box. I have also added php 5 to c:\php. As far as I can tell I have made all the necessary changes to the php.ini and httpd files (as well as moved files to the system32 and winnt folders).
Apache starts and opens index.php, but does not actually run the php...
I need to edit multiple entries in my mysql table at once. What I have so far, is a query that returns all the result of a given date. I then create a loop which writes form fields with each result in its corresponding field.
The problem is I do not want to submit the form for each entry I...
I have 30 sheets in a workbook that I would like to combine into 1 sheet (sheet 2 beginning after the last row in sheet 1, and so on...). The layout is exactly the same for each sheet, so if I copy and paste them it works fine, but this is a fairly long process.
How could I do this?
All I want to do is pass ALL the information from the array to the if statement without specifying {0],[1]... How do I do this?
$page = $_SERVER['PHP_SELF'];
$page = "http://www.ANYSITE.com" . $page;
$except = array('a.php', 'b.php');
if ($page != $except[0])
{
Whatever code
}
else
{
Other...
What is the easiest way to do back and next links so I can limit the number of results per page? I have come up with something, but it seems awfully complicated for nothing. I'm sure there is a better way.
I am displaying an events schedule with PHP querying my MySQL database. I need to be able to get the WHAT'S ON NOW to display the current event. I have been doing it this way:
// Second part of query for next day events starting at midnight to follow last current day's event
$query =...
I'm not sure if what exactly the problem here is, but I have been using phpFTPAdmin (found on Sourceforge) as a means to upload files to my server from a web page. The problem is that whenever I try to upload a file greater than 7 megs, the page hangs and does not complete. I have the php.ini...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.