-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
I'm not impressed. That can be faked. Just get a photo, catoonize it, hit the record button and tear it down, line by line until there's nothing left. Then reverse the recording, and voila, you've got the effect of drawing it.
-
php form not working - was working yesterday! please help.
.josh replied to mccannio's topic in PHP Coding Help
did you try my suggestions? -
One thing I like about the manual is that it is usually really good about telling you things like this.
-
php form not working - was working yesterday! please help.
.josh replied to mccannio's topic in PHP Coding Help
your error page is being displayed if $validationOK is false. Your $validationOK is false if trim($EmailFrom) == "". $EmailFrom == "" if trim(stripslashes($_POST['EmailFrom'])) == "". $_POST['EmailFrom'] would == "" for...what reasons? Perhaps there is nothing being input into the EmailFrom form field? Perhaps it is misspelled? btw, it is not necessary to trim something twice. -
I suggest you just suck it up and change them. You can do a find and replace all, for each file. Or hell, write a script that will open each file and do it for you (I also suggest making backups first).
-
We aren't really here to help you circumvent your school's restrictions. Thread closed.
-
..and that's why you should use <?php instead of <?
-
use js/ajax to queue the files for uploading 1 at a time?
-
How to read data from a web page and enter into mysql
.josh replied to p17blo's topic in PHP Coding Help
<?php // connect to database $conn = mysql_connect('localhost','dbusername','dbpassword') or die(mysql_error()); $db = mysql_select_db('dbname',$conn) or die(mysql_error()); // example string $blah = "blah=something&blahblah"; preg_match("/=(.*)&/", $blah, $info); // insert into database $sql = "insert into table (column) values ('{$info[1]}')"; $result = mysql_query($sql, $conn) or die(mysql_error()); ?> -
[SOLVED] Howto read data from file and put into MySQL?
.josh replied to elmar's topic in PHP Coding Help
...yeah.. the point of writing a script is so that you don't have to do it manually, richardw. elmar: so you have this file that is being generated, and all you need is the first line and the last line, but you need to separate the info and put it into individual columns? use fopen, fgets, and feof to get the first and last lines, if it is an extremely large file. If it's not, you might want to look into something simpler, like just using file and referencing the first and last elements of the array. Whatever method you choose, after you get the line in a variable, you can explode the string at the " " and use each element in the new array, as variables for your query. -
How to read data from a web page and enter into mysql
.josh replied to p17blo's topic in PHP Coding Help
so are you having issues with the regex or the inserting it into the db? or both? As far as the regex is concerned, is the data always going to be in between =...&? is there more than one possible match to consider? As far as the inserting into the db, do you know how to connect to your db and display info? That is, are you looking for help with an actual query string, or do you know nothing about the whole db thing at all? Do you even have a db setup? In other words, you need to be very specific about your situation. -
How to read data from a web page and enter into mysql
.josh replied to p17blo's topic in PHP Coding Help
is this an external website? is this string part of the actual contents of the webpage? -
A lot of people miss the 'n' in Violent.
-
LoL, I didn't think you were a girl. I was being sarcastic, in response to you saying this: Again, I say: notice the added link.
-
well, the more standard (albeit not as descriptive) way of doing that would have been
-
obviously there is a sarchasm between us. In other news, I'm not sure if it's because it was exceptionally clever and I had to really think about it, or exceptionally stupid and I had to burn a few brain cells to think on that level; either way, I am somewhat impressed by your quote of me. It took me about 23 seconds to understand it. That's fairly long in CV time. To be fair though, I'm pretty damn tired. It's way past my bedtime. On that note, goodnight-night.
-
OMG NOOOOOOOOO! I thought you were a Girl????????!?!?!?? I was totally in love with you but now I have to go kill myself.
-
You do know that anybody can signup for gmail now right? Been like that for a long time now...
-
unless you are trying to access a database on some other server than the one the script is being run on, you should be able to use "localhost" as the server name.
-
Yeah...I'm not even going to get into how silly that code is...no offense man, but seriously... Create a login system. Force users to login. Obfuscate the files by using a file id system. Allow only x amount of downloads or x amount of bytes to be downloaded per x amount of time, per user, by storing those numbers in the database and associating them with the user info you have from the login system. Break that down one sentence at a time and start looking for some tutorials and put it all together. Also look into hosting the files on other servers. Get all those people who are willing to download your stuff to be willing to donate their own bandwidth, or give you some money to buy better hosting.
-
you have </d> instead of </td> moving to html forum.
-
one way: $month = 12; // example $query = "select * from table where column like '____$month__' order by column"
-
It's not advisable to suppress errors. Suppressing errors does not fix the problem. Instead, use one if, with file_exists()
-
It is impossible for both of them to be called form that if..else condition. A condition either evaluates as true or false, not both. If both files are being included, then either: a) the condition is evaluating true, and somewhere later in your script (not in the else), badpass.htm is being called. b) the condition is evaluating false, and somewhere before this condition, americaneagleview.htm is being called. in addition to that, if you insist on hardcoding passwords like this, I would suggest this alternative: $passwords = array("xxxxx","xxx","xxxxxx","xxxxxx","xxxxxx","xxxxxxx"); if(in_array($PWadmin, $passwords)) { include 'americaneagleview.htm'; } else { include 'badpass.htm'; } though I would recommend against hardcoding passwords like that...
-
Gesundheit