Jump to content

Jayden_Blade

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Jayden_Blade

  1. He wants to remove extra spaces like " Dave"
  2. Do that in your registration check, if you are registering users. $str = ($_POST['name']); $clean=ltrim($str,""); Echo ('$clean');
  3. Your right I forgot the "new". No need to get testy.
  4. NULL = "no value" 0 = 0
  5. Did you use: error_reporting(E_ALL); if no error no data try SELECT people.* FROM people LEFT JOIN attendance ON people.idpeople = attendance.idpeople WHERE people.idpeople IS 0 AND attendance.gamedate = '2013-11-24';
  6. use a form do a query on other info in same table as password if query = their $_POST answers UPDATE password else echo answers incorrect
  7. good luck!
  8. http://www.w3schools.com/php/func_string_trim.asp just remove it
  9. Hopefully the last question for a while.. Warning: mysql_num_rows() expects parameter 1 to be resource, array given in /home/jayden1/public_html/newmembers.php on line 93 <?php error_reporting(E_ALL); $year = (date('Y')); $month = (date('m')); $day = date(('d')- 30); $datecheck = mktime(0,0,0,$month,$day,$year); include ('/home/jayden1/database_access/database.php'); $new = mysql_query("SELECT DISTINCT signupdate FROM profiledata"); $signupdate = mysql_fetch_assoc($new); if(mysql_num_rows($signupdate)>0){ print "<ul>"; while($users=mysql_fetch_array($signupdate)){ print "<li>{$users[0]}</li>"; } } ?>
  10. *FACE PALM* DUH I am a dumb ass some times! LOL thanks
  11. Fatal error: Call to a member function query() on a non-object in /home/jayden1/public_html/newmembers.php on line 91 <?php session_start(); if (!$_SESSION || !$_SESSION['login']) { //redirect to a login page header('Location: index.php'); exit; } ?> <html> <head> <link type="text/css" rel="stylesheet" href="style.css" /> </head> <body> <div id="info_wrapper"> <table align="center" width="1100px"> <tr> <td width="220px" align="center"> <a href="home.php">Home</a> </td> <td width="220px" align="center"> <a href="myhome.php">My Home Page</a> </td> <td width="220px" align="center"> <a href="profile.php">My Profile</a> </td> <td width="220px" align="center"> <a href="msearch.php">Member Search</a> </td> <td width="220px" align="center"> <a href="logout.php">Logout</a> </td> </tr> </table> </br> <table align="center" width="1100px"> <tr> <td width="366px" align="center"> <a href="missionstatement.php">Mission Statement</a> </td> <td width="366px" align="center"> <a href="adviceblog.php">Advice Blog</a> </td> <td width="366px" align="center"> <a href="storycorner.php">Story Corner</a> </td> </tr> </table> </br></br></br> <h2 id="h2" align="center"> New Members </h2> </br></br> <?php $year = (date('Y')); $month = (date('m')); $day = date(('d')- 30); $datecheck = mktime(0,0,0,$month,$day,$year); $new = $mysqli->query("SELECT DISTINCT signupdate FROM profiledata"); $signupdate = $new; if(mysql_num_rows($signupdate)>0){ print "<ul>"; while($users=mysql_fetch_array($signupdate)){ print "<li>{$users[0]}</li>"; } } ?> </br></br> <p chat> Instant Messages and Online friends here </p chat> </br></br></br> <table align="center" width="1100px"> <tr> <td> <a href="tos.php">Terms of Service</a> </td> <td> <a href="suggestionbox.php">Suggestion Box</a> </td> </tr> <tr> <td> <a href="privacy.php">Privacy Policy</a> </td> <td> <a href="problem.php">Report a Problem</a> </td> </tr> <tr> <td> <a href="contact.php">Contact Us</a> </td> </tr> </table> </div> </body> </html>
  12. It hates your '2013-11-24' set $gamedate = DateTime('2013-11-24'); then SELECT people.* FROM people LEFT JOIN attendance ON people.idpeople = attendance.idpeople WHERE people.idpeople IS NULL AND attendance.gamedate = $gamedate; something like that should work. Wish you luck!
  13. Parse error: syntax error, unexpected end of file in /home/jayden1/public_html/newmembers.php on line 135 New error? <?php session_start(); if (!$_SESSION || !$_SESSION['login']) { //redirect to a login page header('Location: index.php'); exit; } ?> <html> <head> <link type="text/css" rel="stylesheet" href="style.css" /> </head> <body> <div id="info_wrapper"> <table align="center" width="1100px"> <tr> <td width="220px" align="center"> <a href="home.php">Home</a> </td> <td width="220px" align="center"> <a href="myhome.php">My Home Page</a> </td> <td width="220px" align="center"> <a href="profile.php">My Profile</a> </td> <td width="220px" align="center"> <a href="msearch.php">Member Search</a> </td> <td width="220px" align="center"> <a href="logout.php">Logout</a> </td> </tr> </table> </br> <table align="center" width="1100px"> <tr> <td width="366px" align="center"> <a href="missionstatement.php">Mission Statement</a> </td> <td width="366px" align="center"> <a href="adviceblog.php">Advice Blog</a> </td> <td width="366px" align="center"> <a href="storycorner.php">Story Corner</a> </td> </tr> </table> </br></br></br> <h2 id="h2" align="center"> New Members </h2> </br></br> <?php $year = (date('Y')); $month = (date('m')); $day = date(('d')- 30); $datecheck = mktime(0,0,0,$month,$day,$year); $new = $mysqli->query("SELECT DISTINCT signupdate FROM profiledata"); $signupdate = $new; if(mysql_num_rows($signupdate)>0){ print "<ul>"; while($users=mysql_fetch_array($signupdate)){ print "<li>{$users[0]}</li>"; } ?> </br></br> <p chat> Instant Messages and Online friends here </p chat> </br></br></br> <table align="center" width="1100px"> <tr> <td> <a href="tos.php">Terms of Service</a> </td> <td> <a href="suggestionbox.php">Suggestion Box</a> </td> </tr> <tr> <td> <a href="privacy.php">Privacy Policy</a> </td> <td> <a href="problem.php">Report a Problem</a> </td> </tr> <tr> <td> <a href="contact.php">Contact Us</a> </td> </tr> </table> </div> </body> </html>
  14. Hello again! having an error issue. Parse error: syntax error, unexpected 'DISTINCT' (T_STRING) in /home/jayden1/public_html/newmembers.php on line 91 <?php $year = (date('Y')); $month = (date('m')); $day = date(('d')- 30); $datecheck = mktime(0,0,0,$month,$day,$year); $new = $mysqli->query(SELECT DISTINCT signupdate FROM profiledata); $signupdate = $new; if(mysql_num_rows($signupdate)>0){ print "<ul>"; while($users=mysql_fetch_array($signupdate)){ print "<li>{$users[0]}</li>"; } ?> i have went through it like 100 times. I know i am missing something somewhere. Anyone know what I forgot?
  15. everything echos fine. not sure where to go from here.
  16. Hey everyone. I am trying to show currently active users. It worked on my server but it will not show up on my live server. navigate.php <?php error_reporting(E_ALL); include "/home/jayden1/database_access/dblogincheck.php"; if(isset($_SESSION['username'])){ $user = $_SESSION['username']; $date = date('c'); mysql_query("replace into navigate ( username, time ) values('$user','$date')"); } ?> showing the list <?php error_reporting(E_ALL); include ("/home/jayden1/database_access/dblogincheck.php"); include ("navigate.php"); $d=date('c',time()-5*60);//last 5 minutes $q=mysql_query("SELECT `username` FROM `navigate` WHERE time>'$d'") or die ("query failed to find".mysql_error()); if(mysql_affected_rows()>0){ print "<ul>"; while($users=mysql_fetch_array($q)){ print "<li>{$users[0]}</li>"; } print "</ul>"; } ?> I just seen that it isn't posting it into the db. Anyone know what I am doing wrong?
  17. SMTP error from remote mail server after end of data: host k2smtpout-v01.prod.mesa1.secureserver.net [64.202.189.86]: 552 5.2.0 tJhP1m00K2k7bSo01 :: DEDCPANEL:: Message rejected for spam or virus content :: Please include this entire message when contacting support :: v=2.0 cv=B75nJpRM c=1 sm=1 p=Zycs2LkzuxUA:10 a=/YMFs7hsgfZFS9+pD+TI1Q==:17 a=0rp-iRRafjwA:10 a=GYKhdZzdMAoA:10 a=UfYdpAudXA0A:10 a=Fhs_hUukvqMA:10 a=TZb1taSUAAAA:8 a=6kIOgtkx3iQA:10 a=dbRHsw5eAAAA:8 a=CjxXgO3LAAAA:8 a=oHJmyixqeM73gJEqkaAA:9 a=iKupZL6ZdNsA:10 a=djbTbbvMrfMA:10 a=rC2wZJ5BpNYA:10 a=2J9aSTsWCMoA:10 a=La303XB5pKgA:10 a=/YMFs7hsgfZFS9+pD+TI1Q==:117 :: 100.00
  18. I have this live now. I registered an account and the email didn't go to my email. It came back to my website email..... Help????
  19. I have my site almost completed. Yes I know what I want it to look like. I know what I want it to do but I do NOT know how to do it. On a person's profile, we will call person A, page there is a place where it will show a button.(if the query comes back that person A is not on person B's friends list).. "Request Friendship". Once that button is clicked, I want person A to receive a message to accept or decline. If person A accepts, I know I will use $_POST to complete the friends list (friends table). What I do not know how to do is: " I want person A to receive a message to accept or decline."
  20. I know some php. I dont know what to use. I figured out how i am going to display friends list. I just need to figure out how to do the add request.
  21. Hello again everyone. I have searched google, php freaks and many other sites and I have found some information but not what I want to do. If I am posting in the wrong area I apologize. I want add a friend request, and a friends list to my website. I want to have some one click the famous Add to Friends button and the other person can approve or decline the request. I am not sure where to start. I know I will need a db for friends list and mysql searches but honestly I have no idea how to complete it. ANY Information, links, tutorials, will help! Thanks in advance!
  22. I am creating kinda like a small social site. I want to be able to send messages back and forth like facebook does. The I M is the email and vise versa. Anyone know how to do it? Where do I start?
  23. email address check done! thanks! Now I have a question. I never received the email...... Help?
  24. It doesn't like this code.... Am I missing something? Or would it be better doing it a different way? The original code used eregi which is outdated now. Thanks again for the help!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.