I have a code to display an online list, that checks if someone is online in the db, how can i make it change to offline after a certain amount of inactivity?
this line won't work
$mail = mail($mail,"Welcome to ".$site_name,$bericht,"From: ".$site_name." <".$site_mail.">");
you have it sending the email to
mail($mail,"Welcome to ".$site_name,$bericht,"From: ".$site_name." <".$site_mail.">");
and why are you putting it in a variable anyway?
I am assuming u don't know PHP, and is also not a help question but a request for someone to make code for you, so this should be moved to freelance.
If you do know php then post what you have and where you are stuck.
i said some security, as the image url, will be shown as one image in the source code, but the js will load a different image,
and nothing is stopping them stealing content, you can try a few js tricks, like no right click, but js can be disabled
database is your best bet,
you should have it like this
database table.
page
content
then just query to call the details from that,
and then have a form to update and add details to the db
I have this code
<?php
$sql = "SELECT * FROM news ORDER BY time DESC";
$query = mysql_query($sql);
while($rows = mysql_fetch_array($query))
{
$cont = wordwrap($rows['content'],3,"...");
echo $cont;
}
?>
and this outputs,
hel...ooo...this... etc.
how can i have it do
hel...
and stop after the
...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.