Dear all,
for the first time I have to manage scripts and data on a Windows NT server (Windows NT WEBS57 5.0 build 2195). I have some problems with a routine for uploading files. The server, of course, does not accept the CHMOD command via FTP. Do I have to ask to the host of the FTP server to...
...be that you need to subtract your timeout time from the current time before performing the query:
$cur_time = time();
$pippo = $cur_time-($timeout*60); //where $timeout is in minutes
$apaga = mysql_db_query($database, "DELETE FROM users_online WHERE $horas < $pippo");
hope it...
Sleipnir214, you are right. I did not carefully read the first post (I already admitted that...) but I think that in the link I suggested (http://www.php.net/manual/en/function.mysql-data-seek.php) Smoker616 could find good examples on how to perform his task.
Gaetano
Smoker616, maybe you are looking for the function mysql_data_seek().
You can find here description an examples:
http://www.php.net/manual/en/function.mysql-data-seek.php
Gaetano
Rninja, let me add a little aid to Riccardo's: to be sure your source will work fine on most servers (and expecially if you cant change php settings!) than, when you post variables from a form, you should recall them (in the form action file) with the array $_POST[] because, if register_globals...
It' also possible to obtain a similar effect in the form designer: you add to your column a checkbox (using, as controlsource, your logical field). Then you assign your picture to the PICTURE properties (corresponding to the "false" status), and the other (for the "true"...
Sanjdhiman,
I had a similar problem and I solved it storing the complete url in the record (e.g.: http://www.elsevier.nl/ note the direction of the slashes) to make it "absolute".
Gaetano
As far as I know (I must admit I'm not a big expert as to mail...) you can't just call a "local" file from your web server (unless you are using a local web and mail server). Try your function sending a file that physically is located on the web server, and you see that the functioin...
DaRNCaT, you are in the right place, in the sense that you are talking about a typical task that is solved storing data in a databases (mySQL, for example) and then managing the data using SQL statements (like, select, update, insert and so on) that you launch using a server-side script (in our...
Zyrag,
have you tried to upload 7 little file?
This could help you to be understand wether the problem is in the total size or in the number of files.
Gaetano
James, I'm glad to know it really works and I hope you'll find useful the potentialities I have added to the procedure. Of course you can optimize the code and transform it in a function, for better use.
I think that sooner or later I will use this routine, because it's an interesting idea, to...
James,
I see that in the last advise, the example in brackets has been parsed and it is not understandable: it is related to the special characters beginning with the ampersand symbol.
Gaetano
...I think that my solution has some more funtionalities, so...here it is:
<?PHP
$string_in = "test string with some<b>tag, some space and *</b>";
$string_out = "";
$tag_flag = 0;
$all_in_one=1; //if you have very big text, than you could prefer to output the string while...
For example in this way:
$yourdata = "SELECT * FROM news WHERE News_ID = 1";
$query = mysql_query ($yourdata,$link)
or die ( "Can't execute the request $query");
//Change the name of $link according to the one you use for connecting to your database...
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.