User Profile
Collapse
-
I think what you need is the urlencode function.. heres the link: http://ca3.php.net/urlencode -
-
is this a question?
if you're trying to send to mutiple addresses you'll need to accept an array as your TO data unless you have hard coded values or you're reading from a database, then you could run a for each loop running mail() function on each value..Leave a comment:
-
it is safe if all the data is public data, however if you'd like to restrict outside access to the data you could put it below the public_html directory and still apply it using include statements for your site..Leave a comment:
-
for txt and probably doc you can use:
[code=php]
<?php
$filename = "file.php";
$num = count(file($fil ename));
echo $num;
?>
[/code]Leave a comment:
-
if you're receiving large amounts of records it may be good to use mysql_free_resu lt() at the end, this will clean out your memory.. and if you don't like mysql_fetch_ass oc you could use mysql_fetch_arr ay, which is what I usually use..
I would also suggest using mysql_close() when you're doneLeave a comment:
-
-
you can get a list/count of selected checkboxes like this:
[code=php]
<?php
$categories = $_POST['categories'];
if (isset($categor ies))
{
foreach ($categories as $value)
{
echo "$value<br> ";
}
echo "<Br><BR>Items: ";
echo sizeof($categor ies);
}
else
{
echo ("<form...Leave a comment:
-
on the line after your list() function call you could manip your filename variable to have the path included.. ie:
$filename = "C:\wamp\www\dr _resume_databse \" . $filename;Leave a comment:
No activity results to display
Show More
Leave a comment: