Use: mysql_connect(); NOT msql_connect();
if you are using a MySQL database.
Although msql_connect() is a valid function.
Type: Posts; User: JasonDFR; Keyword(s):
Use: mysql_connect(); NOT msql_connect();
if you are using a MySQL database.
Although msql_connect() is a valid function.
Editing because I just remembered you wanted random users per day. I think you will need a database to do this.
You'll need a table containing rows with dates and a random user.
First you'll...
Pay attention to your parenthesis and brackets. They are different from one another.
Also, it might be a good idea to get used to using tabs, spaces, and line spacing to improve the readability of...
For a list that big, you should use a database.
You'll be able to create the html for the select list with a loop.
Once you have the list item the user selected, then it is just a matter of...
tcoble,
Unless you have changed something in your code since your first post, you do not, and should not, need to use php to output what you have there.
What are you trying to achieve by using...
What Daniel said is right and adding an extra "fingerprint" to the session in the form of the user's ip address is a good idea. Be aware though under some circulstances a user's ip address can change...
echo round(3.15895, 1);
I bet you could have figured this one out yourself.
Bluewalrus' question is poorly worded. I came to the same conclusion you did Tim before realizing that what he probably wants is a way to get the key of the lowest value in the array, not the lowest...
I really enjoy problems like this.
$value = array();
$value[0]= 12.84930;
$value[1]=9989.12123;
$value[2]=.0023412093;
$value[3]=10.19;
$value[4]=2.56;
$value[5]=.0023412093;
$value = array();
$value[0]= 12.84930;
$value[1]=9989.12123;
$value[2]=.0023412093;
$value[3]=10.19;
$value[4]=2.56;
echo array_search(min($value), $value); // This will return the key, 2 in...
nice...
Must have been working on these while the first reply was made.
OOP way. Just because it was fun to do.
class FileRandomizer {
protected $_dirPath = '';
protected $_numberToReturn =...
function isDot($file) {
if ($file == '.' || $file == '..') {
return true;
}
return false;
}
function randomFiles($path, $numberToReturn = null) {
if (!is_dir($path)) {
return false;
You've got to get a handle on the basics. I would suggest going through some of the tutorials listed here.
http://www.google.com/webhp?hl=en#hl=en&q=simplexml+tutorial
http://www.tizag.com/
Go through some tutorials first. HTML and PHP.
Good luck.
bilde is the name of the file input in your form:
<input name="bilde" type="file" />
$_FILES['bilde']['name'] is the name of the file as it is on the user's computer....
What trouble are you having?
Have you tried the From header? It is required btw.
I can't believe I am replying again, but here it goes:
Jshor, This is a quote from the guy asking the question:
The same that you just quoted, though you left the error message out of your...
Who knows. That is something your cell phone company ultimately controls. Like I said, I would try including the "Reply
<?php
$header = "Reply-To: 555-555-5555\r\n";
mail($to, $subject,...
This is my last reply:
If your REMOTE SERVER is NOT RUNNING WAMP, then C:\wamp\www\noyaevofis\images\bg.GIF is NOT A VALID PATH on your REMOTE SERVER and you MUST CORRECT THE PATH. That is why you...
Your php script is not sending a text message to your phone. I'm not sure if you are under the impression it is or not, but when you asked "Or are text messages sent from a server one-way only?" it...
Why don't you guys consolidate this to just one thread.
There is definitely no path like this: C:\\wamp\\www\\noyaevofis\\images\\block.png
Now what could be causing you to have two directory...
I can't remember exactly, but I think this has to do something with php on windows and the fastcgi api or isapi. You should contact your host and/or upgrade php and/or figure out which server api...
What php.ini setting are you talking about?
Take a look at the error he posted in the first post and I reposted in my last post. I don't think he would be getting this error, if the file he wants...