Announcement
Collapse
No announcement yet.
User Profile
Collapse
Profile Sidebar
Collapse

menator
New Member
Last Activity: Wed 27 Jun '07, 7:35pm
Joined: Sun 9 Sep '01
-
delete from table where id = $id
-
update table set field = "whatever" where id = $id
hopethis helps
Leave a comment:
-
you can download this simple script I made and play around with
it to get an idea.
simple login script
Leave a comment:
-
If your talking about alternating colors for tables
PHP Code:$bgcolor=($i & 1)?'navy':'royalblue';
echo "<tr bgcolor=\"$bgcolor\"><td>some data</td></tr>";
Leave a comment:
-
PHP Code:$num = "36.36363636363636 ";
round($num,2);
http://www.php.net/round
Leave a comment:
-
Thanks for your help.
I got the results I needed using
PHP Code:$file_content = join( '', file( $file_name ));
Leave a comment:
-
Need help with while loop
I'm trying to include a file inside a while loop.
Here is the part I'm having trouble with.
PHP Code:while($row=mysql_fetch_array($result))
{
$file=$row[file_name];
-
Leave a comment:
-
Try again I was updating the page don't know but that might have had something to do with it.
Leave a comment:
-
You can keep count of more than one file just create a file.php.dat
for each and include it with the switch function that's in the download.php.
Leave a comment:
-
using what's above you will need to create a file1.php.dat
make sure to chmod 777 so it will have write access.
then point a link to the download.php.
To view the number of downlads...
Leave a comment:
-
you can see an example here
click on a file to download when asked to save cancel and refresh the page the downloads number will increase.
Leave a comment:
-
Here is a simple download counter I use.
Could be used as a webpage counter.
I use a link like
<a href="download.php?this_file=file1">file one</a>...
Leave a comment:
-
If you are using a mysql database here is something to play with.
PHP Code:<?
$user="usename to login";
$password="password to login";
$database
Leave a comment:
-
You could try using sessions
PHP Code:if($session)
{
then show page
}
else
{
show this
}
Leave a comment:
-
Just a suggestion
if in the same dir.
include("rate.php");
or maybe this
("rate/rate.php");
or you could start from ther begginning
...
Leave a comment:
-
touch("some.txt") should give you what you want.
It will create what ever file you specify in the ().
Leave a comment:
-
see if this gives the results your looking for
PHP Code:<?
$file="test.txt";
$fp = fopen($file,"r");
while(! feof($fp))
{
$chunk
Leave a comment:
-
PHP Code:<?
$filename = "test.txt";
print "writing to file<br>";
$fp = fopen($filename,"w") or die("Could'nt open $filename");
Leave a comment:
-
assuming you are using 1 page for your script you could
use the switch function
PHP Code:<?
switch ($page)
{
case 1:
print "page1";
Leave a comment:
No activity results to display
Show More
Leave a comment: