![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
phpretard
-
Posts
821 -
Joined
-
Last visited
Never
Posts posted by phpretard
-
-
I have it as "2009-05-27" no minutes or seconds
I just need to rearrange a little
-
Exploding is something I am still working on (literally and metaphorically).
Any pointers?
-
I know this is probable an easy question but,
What is the best way to display "2009-05-27 20:35:18" as this "05-27-2009"?
-
I really thank you for your help...but
it died again same thing.
Sorry
-
It died:
Wrong parameter count for mysql_query() in
any thoughts?
-
This is hacked but it works.
function DuplicateEmailCheck() { connect(); $admin=mysql_query("select Email from profile_admin where Email='".$_POST['Email']."' "); $user=mysql_query("select Email from profile_user where Email='".$_POST['Email']."' "); $appraiser=mysql_query("select Email from profile_appraiser where Email='".$_POST['Email']."' "); $num_admin = mysql_num_rows($admin); $num_user = mysql_num_rows($user); $num_appraiser = mysql_num_rows($appraiser); $checkAll=$num_admin + $num_user + $num_appraiser; if ($checkAll > 0){ return true; } mysql_free_result($admin); mysql_free_result($user); mysql_free_result($appraiser); }
and it may explain what I am trying to do.
-
I am trying to check against 3 different table for an email when a reg form is posted.
I have never done it.
This is what I have:
$dupcheck=mysql_query("SELECT Email.profile_admin, Email.profile_appraiser, Email.profile_user FROM profile_admin, profile_appraiser, profile_user WHERE Email.profile_admin, Email.profile_appraiser, Email.profile_user='".$_POST['Email']."' ") or die(mysql_query()); $num_Email = mysql_num_rows($dupcheck); if ($num_Email > 0){ duplicate email }
...and It Doesn't Work.
Thanks for your help!
-
Ok so can you help? I know it doesn't work.
-
Why wont this work...It's driving me nuts!
<? $string = "(232) 555-5555"; if (preg_match('/^\(?[0-9]{3}\)?|[0-9]{3}[-. ]? [0-9]{3}?[0-9]{4}$/', $string)) { echo "successful."; }else{ echo "not successful"; } ?>
Thank you!
-
Why wont this conect?
<? $con = mysql_connect("p41mysql111.secureserver.net","jaruano","*****"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("jaruano", $con); ?>
the site is -serviclean inc . com-
-
How can I print: 04-28-2009
when:
$var="2009-04-28 07:50:09";
My brain is off today
Thank you.
-
Thank a million!
-
Like this?
$CheckRegistrationStatus = mysql_query("select Email, MemberID from users where Email = '".mysql_escape_string($receiver)."'"); if (mysql_num_rows($CheckRegistrationStatus) == 1) { while($row=mysql_fetch_array($CheckRegistrationStatus)){ $ReceiverNumber=$row['MemberID']; } $update_preferred=mysql_unbuffered_query("update preferred_list_new set ReceiverNumber='$ReceiverNumber', Status='Active' where Key='$key' "); echo $update_preferred; //<<<<<<<< exit; //<<<<<<<< redirect("index.php?ma=user_acceptinvitation"); } else { if ($UserType == "Lender") { redirect("index.php?ma=register&t=7f5b0c220104c053887a2950c204bcb3"); } elseif ($UserType == "Appraiser"){ redirect("index.php?ma=register&t=43e561fc584ef009b5ee5bbd2e6eb162"); } }
Page goes blank
-
Why do I Get: It's a simple update...
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Key='7cf93e806305aefc7495c8dca49f090f'' at line 1
$ReceiverNumber="123456"; $key="md5('2 emails')"; mysql_query("update preferred_list_new set ReceiverNumber='$ReceiverNumber', Status='Active' where Key='$key' ");
I can't even count how many times I've updated a database.
-
$gunna="INSERT SQL QUERIES HERE";
or
echo "INSERT SQL QUERIES HERE";
-
(555)"space"123-4567
I am trying to validate this.
Can't figure what's wrong???
if(!ereg("^([0-9]{3}) [0-9]{3}-[0-9]{4}$", $homephone)){ echo "No good"; }
Can anyone help a brotha out?
Thank you!
-
Thanks for the help!
-
I have files that normally you would right click or control click to download (pdf, doc, ect...).
Is there any way to just left click and open a "save or open window" like a what happens with a .zip file?
-
So C:\hide_your_stuff\?this_is_what_need_to_see
-
Could I have the local address?
-
Can I have the url?
-
Make Copies and comment out...
//$forumid=$_GET['id'];
$forumid=$_GET['forum_id'];
-
$forumid=$_GET['forum_id'];
-
What forum_id contains:
This better work now.
Ok almost got this working.
Still not working
Getting on my nerves
Should work now
this better work now
[SOLVED] Difficult Array Question
in PHP Coding Help
Posted
I have 2 arrays:
I need to compair the values, pull out the values that match an then make a seperate array for matching values.
I hope someone can help!
Thank you.
Anthony