-
Posts
516 -
Joined
-
Last visited
Posts posted by Crew-Portal
-
-
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!
"Made with real Anus"
hahaha....
Sorry, I couldnt resist but post this
[attachment deleted by admin]
-
Well yes. Using mysql_real_escape_string(); is VERY important for all POST Variables. if anyone used MySQL syntax's then they could easily alter your database. And since the server is already connected they wouldn't need User or Pass. You may also want some strip slashes in there too and a MD5 encrypt wouldn't hurt either.
-
dezkit congratz. i saw your acc. today is 1 year from when you made your aCC
-
try calling windows.
Like I call my puppy? with a wistle?
-
yes. sorry taking too long to type with on-screen keyboard
-
Hey, whenever press any button on my keyboard my comp locks up. im using on screen keyboard atm. I need help plz
-
wow this topic sure is OLD. But sadly its still unsolved! ;D
-
why not simply open up your forum posting script in "Dreamweaver" or whatever program you use and see how its done.
-
if you guys bothered to read she needs Unicode NOT UTF-8 to flash
darkfreaks wow... Sorry to have mispleased the gods!
-
have you tried...
<?php function wcount($str) { return count(array_filter(explode(' ', $str))); } $message = (Stuff from Mysql); $message2 = wcount($message); echo (wcount($message)); ?>
-
when you are using SSl you are encripting the data. Your server simply cannot find the file because the SSl is not allowing the file to be opened.
-
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.
-
microsoft .txt's gerally only save in uTF-8. Perhaps you would need the script to save data in a .rtf file. or if you know how to you could have the script save data in a database that uses unicode instead of UTF-8.!
-
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.
-
<?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? ?>
-
Https and MD5 egnouph said
-
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(); ?>
-
wow, I laughed so hard looking at this... 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!
-
instead of sending people to diffent pages why not call a page in a MySQL Table so that if a user logs in it doesnt send them to john.php but rather it sends them to:
http://www.yourdomain.com/secret.php?user=john&session-id=23786asc8yu37gfsdb34
-
<?php $page = $_GET['page']; if (isset($error)){ echo $error; echo '<p>'; } if ($page == NULL){ include ('pages/home.php'); } elseif (file_exists('pages/' . $page . '.php')){ include ('pages/' . $page . '.php'); } else include ('pages/error404.php'); echo "<br />"; ?>
-
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()); ?>
-
sorrry I cant help you with your php.mail problems unless I see some of the php code
-
I dont understand what the problem is. I followed the tutorial by the letter and it worked great for me. But I also did some modding to the script because the ?page variables were already taken on my pages. But besides that it worked great for me...
-
not even gonna look plz edit and put your post inbetween
tags! Im sorry but its hard to read when its not color coord
Google earth in a GPS?
in Miscellaneous
Posted
I got an iPhone and its got google maps built into the GPS.