Jump to content

djdubuque

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

djdubuque's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the catch, sorry if I placed this in the wrong topic area.
  2. I'm trying to pull some data from my dB but the code seems to have a glich cause when I hit submit it just returns to the search screen. <?php /** * @author Donald Dubuque - W4DJD * @copyright 2010 */ function escape($mixed){ if(empty($mixed)) return false; elseif(!is_array($mixed)) return mysql_real_escape_string($mixed); else foreach($mixed as $key => $val) $mixed[$key] = escape($val); return $mixed; } require_once('connect.php'); if(!empty($_POST['call'])){ $query = mysql_query("SELECT * FROM `jos_users` WHERE `call` LIKE '%".escape($_POST['call'])."%'"); while(($row = mysql_fetch_assoc($query)) !== FALSE) { // Print out the contents of the entry echo "Call Sign :{$row['call']} <br>" ; echo "Six Club: {$row['sixclub']}<br>"; echo "First Name : {$row['name']} <br>"; } } else { ?> <html> <body> <title>Six Club member search engine for ham radio operators.</title> <META NAME="Keywords" CONTENT="ham radio, callsign search engine!"> <META NAME="KEYWORDS" CONTENT="amateur, radio, amateur radio, ham, ham radio, arrl, short wave, shortwave, hobby, electronic, electronics, education, learning, scout, scouting, school, k12, emergency, communication, communications, telecommunication, books, magazines, software, QST, QEX, NCJ, Radio Designer, DXCC, contest, QSL, W1AW, repeaters, VHF, UHF, HF, microwave, license, club, public service, awards, certificates, volunteers, newsletter, regulations, FCC, technical, SAREX, space shuttle, projects, membership, member, VEC, exams, tests, foundation, scholarships"> <META http-equiv="Pragma" content="no-cache"> <script language="JavaScript" type="text/javascript"> function call_focus() { document.callsignsearch.call.value = ""; document.callsignsearch.call.focus(); } </script> <style type="text/css"> <!-- h1 {font-size: 50pt} --> </style> <p> <center> <body onload="call_focus()" bgcolor="white" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0" topmargin="0" text="black" link="blue" vlink="purple" alink="blue"> <a name="top"></a></p> <!-- news --> <table border="1" width="540" cellspacing="0" cellpadding="4"> <tr bgcolor="black"> <td><font face="arial" size="3"> <center> <font color="white" face="arial" size="3"><b>Six Club Member Database Search </b></font><font face="arial" size="3"></b> </center> </font> </td> </tr> <tr> <td> <center> <p ALIGN=CENTER STYLE="margin-bottom: 0cm"><FONT FACE="Verdana, sans-serif"><FONT SIZE=3><b>6mt.com Callsign Search</b><br> <FONT SIZE=2>Powered by Six Club.com <br> <p> <form method="post"> <b>Callsign:</b> <input type="text" value="" name="call_sign"size=8 maxsize=8 /><br /> <!--Zip Code: <input type="text" value="" name="zip_code" size=5 maxsize=5/><br />--> <br> <input type="submit" value="Go!" /> </form> </p> <a href="http://6mt.com" target="_self "style="text-decoration: none">Home</a> | <a href="http://6mt.com/hamdb/callsign.php" target="_self "style="text-decoration: none">Search Again</a> </body> </html> <?php } mysql_close() ?>
  3. Here is the HTML version, can this be converted to PHP? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META HTTP-EQUIV="refresh" CONTENT="5"> <title>Informations</title> <style type="text/css"> <!-- #apDiv1 { position:absolute; left:102px; top:39px; width:900px; height:336px; z-index:1; } --> </style> </head> <body> <div id="apDiv1"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center"> <h1><strong>Six Meters Propagation Logger ©</strong></h1> </div></td> </tr> <tr> <td> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Date</td> <td>UTC</td> <td>Station(mode)</td> <td>Freq</td> <td>Remarks -Reported by (Grid)</td> <td>Server</td> </tr> <tr> <td>June23</td> <td>4:34</td> <td>W7IXZ ( SSB)</td> <td>50.125</td> <td>59 DN05 - KD5DSQ(EM10)</td> <td>41.136.236.158</td> </tr><tr> <td>June23</td> <td>5:31</td> <td>test ( ssb)</td> <td>50.125</td> <td>test - ke4iap(fm18)</td> <td>wsip-24-249-248-8.dc.dc.cox.net</td> </tr> </table></td> </tr> <tr> <td><a href="add.html">ADD NEW</a></td> </tr> </table> </div> </body> </html> Next I have this; This is the Form file that adds information to the display file above. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- #apDiv1 { position:absolute; left:71px; top:50px; width:596px; height:324px; z-index:1; } --> </style> <script src="SpryAssets/SpryValidationTextField.html" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextarea.html" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField-2.html" rel="stylesheet" type="text/css" /> <link href="SpryAssets/SpryValidationTextarea-2.html" rel="stylesheet" type="text/css" /> </head> <body> <div id="apDiv1"> <form id="form1" name="form1" method="get" action="http://dx.naveesh.com/add.php"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><div align="right"><a href="index-2.html">Back</a></div></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td width="36%">DX Station</td> <td width="64%"><span id="sprytextfield1"> <label> <input type="text" name="station" id="station" /> </label> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td>Mode</td> <td><span id="sprytextfield2"> <label> <input type="text" name="mode" id="mode" /> </label> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td>Frequency</td> <td><span id="sprytextfield3"> <label> <input type="text" name="frequency" id="frequency" /> </label> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td valign="top">Remarks</td> <td><span id="sprytextarea1"> <label> <textarea name="remarks" id="remarks" cols="45" rows="5"></textarea> </label> <span class="textareaRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td>Your Call Sign</td> <td><span id="sprytextfield4"> <label> <input type="text" name="callsign" id="callsign" /> </label> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td>Your Grid Location</td> <td><span id="sprytextfield5"> <label> <input type="text" name="loc" id="loc" /> </label> <span class="textfieldRequiredMsg">A value is required.</span></span></td> </tr> <tr> <td colspan="2" align="center"><label> <input type="submit" name="Add" id="Add" value="Add" /> </label></td> </tr> <tr> <td colspan="2" align="center"> </td> </tr> </table> </form> </div> <script type="text/javascript"> <!-- var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3"); var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1"); var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4"); var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5"); //--> </script> </body> </html> Also would like it as PHP also if this file could be added to the first so that they would work together would be even better. As the Add.html inputs the data into the first one. The first file refreshes about every 5 sec. To better understand the concept here is a link to what the final would look like. http://dxworld.com/50prop.html
  4. I have a Joomla site that has at last count 3 forums(PHPBB3, SMF and Yabb) and I would like to have a way to; 1. One login screen for all forums 2. Admin can limit which forums can be viewed by user 3. Ban user from any or all forums Later I would like to keep track of what forums the user is on and there last visit was. Thanks
×
×
  • 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.