-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
well darn, I came across clone when I was researching but it didn't seem like that's what you were going for. Glad you got it sorted out!
-
Well, kinda depends. You might need all the standard stuff any other businesses need, like a business licence, tax id, etc.. but this is the internet, so idk. I'm not a lawyer so I couldn't tell you for sure. Hence my first post:
-
Man I don't know then...if you wanted to create a copy without changing the original, then according to the manual, you had it right (without the &)...so...I'm not sure why it would change the other one...but like I said, I'm a complete newb when it comes to oop. Sorry I couldn't be of help
-
yeah..no. I was wrong. However, I was poking around, and it seems that if $_SESSION['user'] is an object, and you do $user_temp = $_SESSION['user']; $user_temp now becomes a copy of the whatever class $_SESSION['user'] is, but it does not carry the information (I think that's why it's showing the wrong date, or rather, a default of the first date it can show). I think you are gonna have to just forget about using $user_temp and just use your session variable, or, if I'm reading this thing correctly, you might be able to do $user_temp =& $_SESSION['user'];
-
You know, I really suck at oop but if $_SESSION['user'] is an object, I think you need to do $user_temp = new $_SESSION['user']; but again...I am the suck at oop so that's just a crap shoot and I hope someone better can help you.
-
[SOLVED] Displaying the text that is after the last delimiter in a field
.josh replied to jaxdevil's topic in PHP Coding Help
$last = last($cats); edit: sorry.. end($cats); -
If it initially shows the correct date, then it's probably not a sql problem. Might possibly be php's fault but we'd have to see some php code, particularly the code that uh..interfaces with json/flex or whatever (not really that keen on those..don't really know how that works..), possibly even the php code that gets the info from the db.
-
..is "show_all" a specific variable, or are you wanting to "show all" as in find out what all your variables are? if it's a specific variable, you'd access it by echo $_GET['show_all']; // this echo's the value of the variable if you are wanting to find out what variables are being passed in your url, $_GET is an array of those variables you'd access them any number of ways here's an example of how to echo them: foreach ($_GET as $key => $val) { echo $key . " = " . $val . "<br>"; } If neither of these is what you mean, then please clarify some more.
-
all the vars past through the url are stored in the $_GET array.
-
They hired lots of lawyers to acquire selling rights.
-
I think you'd have better luck talking to a lawyer, don't you?
-
so uh, how do you get from your login page to your member only page?
-
only if you keep the file in a public directory, or have the permissions set for them to...
-
Got it! From your pastebin: //MD5 Password $username = $_POST['username']; $password = $_POST['password']; $securepass = md5("2392j3k2js21".$password.$username); $_POST['password'] doesn't exist. You need to use 'password1' or 'password2'
-
<?php mysql_connect("localhost","sa","pass"); mysql_select_db("DB"); $qr = mysql_query("select mail_addr FROM Memb_Info"); while ($row = mysql_fetch_array($qr)) { $tolist .= $row['mail_addr'] . ", "; } //Sending email $subject = "hi"; $body = "message"; $headers = "From: [email protected]\r\n" . "X-Mailer: php"; if (mail($tolist, $subject, $body, $headers)) { echo("<p>Message sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?>
-
okay how about going into phpmyadmin and physically looking to see if the data is there?
-
also, echo out $username are you sure that $_POST['username'] exists on your form (spelled correctly, etc...)?
-
can you repost your updated code (including your debug echoes)
-
well you got at least 2 problems that I see. First off, $secpassword doesn't exist, so your condition looks like this: if ($row['password'] == NULL/FALSE) { ... } and since it seems to be coming out as true, $row['password'] is turning up FALSE if it's failing, or no result if nothing is returned from your query. edit: Gah! multi-posts before I posted disregard this post.
-
Ah you're right. I just assumed that since there's that posting activity by time bar graph, that it had something to do with time. I guess your explanation does make more sense.
-
The error tells you the problem. $_POST is an array of all your posted variables. md5 expects a string. You need to break it down to $_POST['blah'] etc.. one for each of your posted vars EG: $username = strip_tags(stripslashes($_POST['username'])); //assuming 'username' is the name of your form var $password = strip_tags(stripslashes(md5($_POST['password']))); // ditto on 'password'
-
if(($filetype != ".mp3") || ($filetype != ".MP3")) if that doesn't work then I would suggest echoing $filetype to see if it's holding what you expect it to be holding.
-
No, because your eregi won't validate those characters. Or at least, it shouldn't. I'm not an expert at regex patterns so I don't know if your pattern will or will not validate those characters, but it shouldn't. In unrelated news, seeing as how you're going through the trouble to make a function to validate the email, I would suggest putting your strlen check inside your function, as well.
-
http://www.phpfreaks.com/forums/index.php/topic,95562.0.html