Jump to content

Crew-Portal

Members
  • Posts

    516
  • Joined

  • Last visited

Posts posted by Crew-Portal

  1. haha. We bought a new new toothpaste. Look what it says right on the bottle (in attachment)

     

    We couldnt help but buy it. I was laughing so much!

            :D;D:D;D

     

    "Made with real Anus"

    hahaha....

     

    Sorry, I couldnt resist but post this

     

    [attachment deleted by admin]

  2. sessions are pretty much like cookies but the user cannot edit the data and they are saved on the server side. Sessions usally contain login information and data that the user is not allowed to view or edit. In your php.ini file there is no saved location wither that or the location does not exist or you do not have "777" permissions on the file location. I reccomend re-installing your PHP server.

  3. Continuasly paging a MySQL Database will be hard on the system. I would personally think about looking into having your AJAX save data to a .txt document then using a javascript "Tick" have the file paged on a preset of what you want. Since there will only be data in UTF-8 format there will be limited bandwidth. mySQL would tend to use alot of BW if you keep paging the system. Im not really an AjAX coder myself so i wouldnt be able to give you any scripting examples.

  4. <?php
    //Name your files pictures/misc/background1.png, pictures/misc/background2.png, and pictures/misc/background3.png
    $file = "pictures/misc/background";
    $extension = ".png";
    $a = rand(0,2);
    ?>
    <body style="background-image: url("<?php echo $file.''.$a.''.$extension; ?>");
    background-repeat: no-repeat;
    background-attachment:fixed;
    background-position: 90% 250px;
    ">
    <?php //This should work maybe? ?>
    

  5. simple try this

     

    <?php
    
    //Changeable data should be here:
    $title = "Booster Club";
    //Database minus: pg_
    $database = "boosterclub_ranks";
    
    head($title);
    if ($_GET['view'] == 'member_info' && is_numeric($_GET['id'])) {
    $id = $_GET['id'];
    $memberinfo_one_results = mysql_query("SELECT * FROM pg_boosterclub_ranks WHERE id='$id'") or die(mysql_error());
    	if (mysql_num_rows($memberinfo_one_results) != "1") {
    		echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
            <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
            <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
              <tr>
    
    <td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    						<p align="center" style="margin-bottom: 4"><b>
    						<font face="Verdana" size="2" color="#FFFFFF">Could Not Find Member Info</font></b></td>
    					  </tr>
    					  <tr>
    					  <td colspan="2" bgcolor="#CC0000"></td><tr>
    						<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    						<p style="margin: 5"><font face="Arial" size="2"Sorry...could not find the member info you requested, please try refreshing the member list and find the member there.</td></font>
    
    					  </tr>';
    	}else{
    		while ($memberinfo_one = mysql_fetch_array($memberinfo_one_results)) {
    			if ($memberinfo_one['phone1'] != '0') {
    				$memberinfo_one_phone1 = $memberinfo_one['phone1'];
    			}else{
    				$memberinfo_one_phone1 = "Phone number not provided";
    			}
    			if ($memberinfo_one['phone2'] != '0') {
    				$memberinfo_one_phone2 = $memberinfo_one['phone2'];
    			}else{
    				$memberinfo_one_phone2 = " Alternate phone number not provided";
    			}
    			if ($memberinfo_one['email'] != '') {
    				$memberinfo_one_email = '<a href="index.php?pagename=booster_club&view=member_sendmail&id='.$memberinfo_one['id'].'">Click here to email this person via the website:</a> <br>'.$memberinfo_one['email'];
    			}else{
    				$memberinfo_one_email = " Email Address Not Provided";
    			}
    		echo '	<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
    		<td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
    		<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
    		  <tr>
    
    	<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    							<p align="center" style="margin-bottom: 4"><b>
    							<font face="Verdana" size="2" color="#FFFFFF">'.$memberinfo_one['name'].' Member Info</font></b></td>
    						  </tr>
    						  <tr>
    						  <td colspan="2" bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF"><b>Contact Information</b></td>						  <tr>
    							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    							<p style="margin: 5"><font face="Arial" size="2">Email:</td><td>'.$memberinfo_one_email.'</td></font>
    							<tr>
    							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    							<p style="margin: 5"><font face="Arial" size="2">Main Phone:</td><td>'.$memberinfo_one_phone1.'</td></font>
    					  </td>
    					  <tr>
    							<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    							<p style="margin: 5"><font face="Arial" size="2">Alt. Phone:</td><td>'.$memberinfo_one_phone2.'</td></font>
    					  </td>
    					  </tr>
    						  </tr>';
    		}
    	}
    }else if ($_GET['view'] == 'member_sendmail' && is_numeric($_GET['id'])) {
    $id = $_GET['id'];
    	$memberinfo_mail_results = mysql_query("SELECT * FROM pg_boosterclub_ranks WHERE id='$id'") or die(mysql_error());
    	if (mysql_num_rows($memberinfo_mail_results) != "1") {
    		echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
            <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
            <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
              <tr>
    
    <td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    						<p align="center" style="margin-bottom: 4"><b>
    						<font face="Verdana" size="2" color="#FFFFFF">Could Not Find Member Info</font></b></td>
    					  </tr>
    					  <tr>
    					  <td colspan="2" bgcolor="#CC0000"></td><tr>
    						<td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    						<p style="margin: 5"><font face="Arial" size="2"Sorry...could not find the member info you requested, please try refreshing the member list and find the member there.</td></font>
    
    					  </tr>';
    	}else{
    		while ($memberinfo_mail = mysql_fetch_array($memberinfo_mail_results)) {
    		echo '	<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
    		<td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
    		<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
    		  <tr>
    
    	<td width="100%" colspan="3" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    							<p align="center" style="margin-bottom: 4"><b>
    							<font face="Verdana" size="2" color="#FFFFFF">Contact '.$memberinfo_one['name'].' Via Email</font></b></td>
    						  </tr>
    						  <tr>
    						  <td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF"><form method="post" action="index.php?pagename=mailsend&return=booster_club">';
    
    		$ipi = getenv("REMOTE_ADDR");
    		$httprefi = getenv ("HTTP_REFERER");
    		$httpagenti = getenv ("HTTP_USER_AGENT");
    
    ?>
    
    		<input type="hidden" name="id" value="<?php echo $_GET['id']; ?>" />
    		<input type="hidden" name="source" value="<?php echo $database; ?>" />
    		<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
    		<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
    		<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
    
    Your Name</td><td width="85%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
    							<p style="margin: 5"><font face="Arial" size="2"><input name="name" type="text"></td></tr>		  <tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Your Email</td></font><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><p style="margin: 5"><font face="Arial" size="2"><input name="email" type="text"></td></tr>	  <tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Subject</td></font><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><p style="margin: 5"><font face="Arial" size="2"><input name="subject" type="text"></td></tr><tr><td bgcolor="#CC0000"><font face="Verdana" size="2" color="#FFFFFF">Message</td><td width="22%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium"><font face="Arial" size="2"><textarea name="message" rows="15" cols="40"></textarea></font></td><tr><td colspan="2" align="right"><input type="submit" value="Send Message"></form></td></tr>
    <?php 
    
    		}
    	}
    }else{
    
    	//Begin Dynamic Content
    
    	//Begin Board Memebers
    	echo '<td width="1%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" height="1"> </td>
            <td width="59%" style="border-style: none; border-width: medium" bgcolor="#FFFFFF" valign="top" height="1">
            <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36">
              <tr>
                <td width="100%" height="17" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
                <p align="center" style="margin-bottom: 4"><b><font face="Verdana" size="2" color="#FFFFFF">Booster Club</font></b></td></tr>
              <tr>
                <td width="100%" height="17" bgcolor="#FFFFFF" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-right-width: 2; border-bottom-style: none; border-bottom-width: medium">
                <p style="margin: 5"><font face="Arial" size="2"><table width="100%"><tr valign="top"><td width="49%"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36"><tr><td colspan="2" align="center" bgcolor="#000099" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Board Members</td></tr><tr><td align="center" bgcolor="#CC0000" width="35%" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Position</b></td><td align="center" bgcolor="#CC0000" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><font face="Arial" size="2" color="#FFFFFF"><b>Name</b></td>';
    
    	//Begin WHILE for MEMBERS
    	$member_info_results = mysql_query("SELECT * FROM pg_boosterclub_ranks ORDER BY list ASC") or die(mysql_error());
    	while ($member_info = mysql_fetch_array($member_info_results)) {
    	echo '<tr><td align="center"><font face="Arial" size="2">'.$member_info['rank'].'</td><td align="center"><font face="Arial" size="2"><a href="index.php?pagename=booster_club&view=member_info&id='.$member_info['id'].'">'.$member_info['name'].'</a></td></tr>';
    	}
    	//END WHILE for MEMBERS
    
    	//End Board Memebers
    
    	//Begin Board Events
    	echo '</table></td><td><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber14" height="36"><tr><td colspan="2" align="center" bgcolor="#000099" valign="top" style="border-left-color: #808080
    border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Club Upcoming Schedule</td></tr><tr><td align="center" bgcolor="#CC0000" width="25%" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><b><font face="Arial" size="2" color="#FFFFFF">Date</b></td><td align="center" bgcolor="#CC0000" valign="top" style="border-left-color: #808080; border-left-width: 2; border-right-color: #808080; border-bottom-style: none; border-bottom-width: medium; border-top-color:#C0C0C0; border-top-width:1"><font face="Arial" size="2" color="#FFFFFF"><b>Event</b></td>';
    
    	//Begin WHILE for EVENTS
    	$currdate = date("Y/m/d");
    	$booster_club_events_query = mysql_query("SELECT * FROM pg_events WHERE squad='Booster Club' && date>='$currdate' ORDER BY date DESC");
    
    		while ($booster_club_events = mysql_fetch_array($booster_club_events_query)) {
    			echo '<tr><td align="center"><font face="Arial" size="2">'.strftime("%m/%d/%Y", strtotime($booster_club_events['date']).'';
    			if ($booster_club_events['date_end'] != "") {
    				echo '<br>-'.strftime("%m/%d/%Y", strtotime($booster_club_events['date_end']));
    			}
    			echo '</td><td align="center"><font face="Arial" size="2"><a href="index.php?pagename=events&id='.$booster_club_events['id'].'">'.$booster_club_events['event_title'].'</a></td></tr>';
    		}
    
    	//END WHILE for EVENTS
    
    echo '<tr><td colspan="2" align="right"><font face="Arial" size="1"><a href="index.php?pagename=events&eventinclude=booster_club">View All Booster Club Dates & Uploaded Agenda/Minutes</a></td></tr></table></table>';
    //End Board Events
    
    }
    
    //End Dynamic Content
    echo '</td>
              </tr>
            </table>';
    footer();
    ?>
    

  6. wow, I laughed so hard looking at this... ;D U gotta say what your problem is or how you want us to expand your code? Is there an error or do u just want it to function better? Do you want it to function the same but with less code or do you want us to re-create the code? You have to expalin what it is you want us to do in order for us to help you out with your problem!

  7. Pesky code!... Few errors! Try this:

     

    <?php
    $v=UPLOAD_DIR.$_SESSION['MM_Username'].'/'.$now.$_SESSION['MM_Username'].'-'.$file;
    
    //copy image to database
    
    $sql = "SELECT `user_id` FROM user WHERE `username` = '".$_SESSION['MM_Username']."'";
    $queryresult = mysql_query($sql)
    or die (mysql_error());
    if (mysql_num_rows($queryresult) > 0) {
    $row=mysql_fetch_assoc($queryresult);
    $userid=$row['user_id'];
    }
    
    $resins=mysql_query("INSERT INTO gallery ('user_id', 'image_name') VALUES ('$userid','$v'")
    or die("Error in INSERT: ".mysql_error());
    ?>
    

×
×
  • 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.