NArc0t1c
-
Posts
299 -
Joined
-
Last visited
Never
Posts posted by NArc0t1c
-
-
Well, everyone asks this.
It's very simple.
Update the status as a timestamp, on each page.
And when the user isn't there anymore, it won't get updated so it will hold their last page view.
-
Oh. yes, 25. : )
Here is an example of what I mean by using fsockopen to check the mail server,
<?php // $Email will be the email address. function CheckEmail($Email) { if (empty($Email)) { return false; } else { list($UserEmail, $MailServer) = explode('@', $Email); unset($UserEmail); $Connection = fsochopen($MailServer, 25, $errno, $errstr, 30); if (empty($Connection)) { echo 'The email address you entered is not valid.'; return false; } else { return true; } } ?>/code]
-
Why would you want to call a ddl?
You can use a function with the exec command.
ddl's is used by programs, exe's.
-
Why not use fsockopen on the host on port 21(mail server)?
-
oh..
Use this then,
<?php $mq = mysql_connect('localhost', 'root', ''); mysqlselectdb('database', $mq); $Contents = file('File.txt'); $Query = mysql_query('SELECT ID FROM Table'); //Loop trough the table. $Row = mysql_fetch_array($Query); // Loop trough the file using foreach, giving us single lines. foreach ($Contents as $Lines) { list($ID, $Record_Type, $First_Name, $MI, $Last_Name, $Firm, $Address, $Type) = explode('delimiter', $Lines); if ($ID == $Row['ID']) { $Query = 'UPDATE Data...'; mysql_query($Query); } } ?>
-
Try checking if they have the name element?
-
Actually, I don't think the form tag has the onLoad event. NArc0t1c's code should work, though it seems a unnecessarily indepth. Wouldn't this work?
<body onLoad="myForm.submit()"> <form name="myForm"> ...
Mine is a little bit long..
Yes your's would also work.
-
This is possible..
Try making a div, and then use a loop for depending on how many text fields you have.
You could also use the number of the loop to identify the text fields names.
I'm not the best of Ajax/Javascript scripters but here goes..
<script type="text/javascript> function AddField(Type, Number, Div) { var Element = document.getElementById(Div); Element.innerHTML = '<form action="script.php" method="post">'; for(i=0;i<=Number;i++){ Element.innerHTML .= '<input type="' + Type + '" name="Field' + i + '">'; } Element.innerHTML .= '<input type="submit">'; } </script>
Sorry if it doesn't work.
-
Try this.
<html> <head> <script type="text/javascript"> function submit(form){ document.form.submit(); } </script> </head> <body onLoad="javascript:submit(myForm)"> <form action="script.php" method="post" name="myForm"> Name: <input type="text" name="Name" value="Predefined"/> Password: <input type="text" name="Password" value="Predefined"/> <input type="submit" name="submit"/> </form> </body> </html>/code]
-
uhm.., Okay..
Try this,
<?php $mq = mysql_connect('localhost', 'root', ''); mysqlselectdb('database', $mq); $Contents = file('File.txt'); $Query = mysql_query('SELECT ID FROM Table'); //Loop trough the table. while ($Row = mysql_fetch_array($Query)) { // Loop trough the file using foreach, giving us single lines. foreach ($Contents as $Lines) { list($ID, $Record_Type, $First_Name, $MI, $Last_Name, $Firm, $Address, $Type) = explode('delimiter', $Lines); if ($ID == $Row['ID']) { $Query = 'UPDATE Data...'; mysql_query($Query); } } } ?>
-
I really think it is you're ISP that is blocking you're Mail Server.
To test, Try to send a mail using POP3 or IMAP using the same mail server?
-
Hello there,
Try the following script,
<?php // We get the file as an array here. $Contents = file('File.txt'); // Loop trough the file using foreach, giving us single lines. foreach($Contents as $Lines){ list($ID, $Record_Type, $First_Name, $MI, $Last_Name, $Firm, $Address, $Type) = explode('delimiter', $Lines); $Query = 'UPDATE Data...'; mysql_query($Query); } ?>
-
-
So you want to make all ten thousand rows the same value?
Do this query,
UPDATE table SET column='http://site2/directory'
That should Update all records and set column to 'http://site2/directory' in table.
-
You do not need to download it.
This DTD module is identified by the PUBLIC and SYSTEM identifiers:PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
-
Well, except for the 404 after submitting the form.
The requested URL /javascript/forms/validation_-_onlinetools.org/formsend.php was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The mysql query it is spitting out,
SELECT value FROM appvar WHERE id=(SELECT app_chan_event.appvar_id FROM app_chan_event, appvar WHERE app_chan_event.appvar_id=appvar.id AND appvar.type_id =(SELECT id FROM appvar_type WHERE name='pg') AND c_e_id=(SELECT id FROM chan_event WHERE chan_id=5 ORDER BY id DESC LIMIT 1))Please give us the scripting near the query.
-
The main reason to make it W3 compliant is to let it work in all browsers.
dtd file?, do you mean how to validate it?
You have to make it W3 compliant, if it's not, on that website it will give the errors that you should fix.
Mainly it is the invalid usage of "/".
-
Home or Professional?
-
What OS or you running?
-
Setup FTP.
Make a file server then they could connect to the server and retrieve the files.
That's how everyone works, you don't want people connecting directly to you're computer, with P2P or something.
-
Are you using localhost in the navigation bar?
If you want to view it from other computers on the network, you need to edit httpd.conf
Look in the file for something similar to what you would find in a .htaccess file.
Look for the following:
# # Controls who can get stuff from this server. # # onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from 127.0.0.1
And add the following:
# This is your computers local area network address. Allow from 10.0.0.0
-
Looks really nice, I like the effect with the buttons.
One thing though, The buttons/images on the navigation bar sometimes doesn't return to default after the mouse over event.
-
A few things,
The text looks like it wants to run away from the laptop.
Laptop's shadow falls weird.
Default link color's.
Submit button is upside down.
Overall, Looks like someones homepage, not their work website.
-
ME?
You gotta be kidding me.
Oh, I though anyone who finds that joke funny must be married... sry.
Me, I used to run Single 1.0, but I've upgraded to Single 1.2 because the new Over-The-Sink-Dining plugin is really nice.
Aww, Cool, I wondered when they would release that.
order by rand, is there a better way?
in MySQL Help
Posted
uhm..
I have a theory that might say this could work aswell,