Jump to content

flemingmike

Members
  • Posts

    472
  • Joined

  • Last visited

Everything posted by flemingmike

  1. ya, i followed that document. it works on my 8350, but not on my bold 9000.
  2. i actually found a way to do it. $pin=$_SERVER['HTTP_RIM_DEVICE_ID']; my pin isnt showing yet, something to do with an mds setting.
  3. hello, just curious if anyone has ever used php to pull any kind of info from a blackberry? im trying to pull something unique from a blackberry like a pin number .
  4. so should ' . mysql_real_escape_string{$_POST['contact']} .' really be " . mysql_real_escape_string($_POST['contact']) ."
  5. hello, i am returning the error in the following code. im i doing something wrong? {$sql = "UPDATE jobs SET contact = ' . mysql_real_escape_string{$_POST['contact']} .', contactphone = ' . mysql_real_escape_string{$_POST['contactphone']} .', customer = ' . mysql_real_escape_string{$_POST['customer']} .', initial = ' . mysql_real_escape_string{$_POST['initial']} .', address = ' . mysql_real_escape_string{$_POST['address']} .', city = ' . mysql_real_escape_string{$_POST['city']} .', postal = ' . mysql_real_escape_string{$_POST['postal']} .', province = ' . mysql_real_escape_string{$_POST['province']} .', description = ' . mysql_real_escape_string{$_POST['description']} .', mechanic = ' . mysql_real_escape_string{$_POST['mechanic']} .', ponumber = ' . mysql_real_escape_string{$_POST['ponumber']} .', status = ' . mysql_real_escape_string{$_POST['status']} .' WHERE id = '$id"; $result = mysql_query($sql) or die('Error, updating job failed. Check you fields and try again.');echo "<center> You have successfully updated the new job. You can see your changes below.";}
  6. <?php include 'config.php'; include 'javascript.php'; $randeid=rand(223, 971); if(isset($_POST['add'])) { if( empty($_POST['name']) ) { // validation fails, do something echo "<center>You need to enter a Name."; } else { $sql = "INSERT INTO staff VALUES ( NULL, '$randeid', '{$_POST['name']}', '{$_POST['phone1']}', '{$_POST['phone2']}', '{$_POST['address']}', '{$_POST['city']}', '{$_POST['province']}', '{$_POST['postal']}' )"; mysql_query($sql) or die('Error, adding new Employee. Check you fields and try again.'); echo "<center>You have successfully entered a Employee."; } } ?> <form method="POST"> <p align="center">Name: <input type="text" name="name" size="20"> Phone #: <input type="text" name="phone1" size="15" onkeydown="javascript:backspacerDOWN(this,event);" onkeyup="javascript:backspacerUP(this,event);"> Phone 2 #: <input type="text" name="phone2" size="15" onkeydown="javascript:backspacerDOWN(this,event);" onkeyup="javascript:backspacerUP(this,event);"> <br />Address: <input type="text" name="address" size="25"> City: <input type="text" name="city" size="15"> Postal Code: <input type="text" name="postal" size="10"> Province: <select size="1" name="province"> <option>AB</option> <option>BC</option> <option>MB</option> <option>NB</option> <option>NL</option> <option>NT</option> <option>NS</option> <option>NU</option> <option selected>ON</option> <option>PE</option> <option>QC</option> <option>SK</option> <option>YT</option> </select> <input type="submit" value="Add" name="add"></p> </form> <?php echo "<table border='1' style='border-collapse: collapse' bordercolorlight='#000000' bordercolordark='#000000' width='98%' align='center'>"; echo "<tr><td width='100%' colspan='7' align='center'><b>City Core Employee List</b></td></tr>"; echo "<tr> <th align='center'>Employee #</th> <th align='center'>Name</th> <th align='center'>Phone</th> <th align='center'>Phone 2</th> <th align='center'>Address</th> <th align='center'></th> </tr>"; $result = mysql_query("SELECT * FROM staff ORDER BY name"); while($row = mysql_fetch_array($result)) { $id=$row['id']; $eid=$row['eid']; $name=$row['name']; $phone1=$row['phone1']; $phone2=$row['phone2']; $address=$row['address']; $city=$row['city']; $postal=$row['postal']; $province=$row['province']; echo "<tr>"; echo "<td align='center'>" . $eid . "</td>"; echo "<td align='center'>" . $name . "</td>"; echo "<td align='center'>" . $phone1 . "</td>"; echo "<td align='center'>" . $phone2 . "</td>"; echo "<td align='center'>" . $address . " " . $city . ", " . $postal . " " . $province . "</td>"; echo "<td align='center'><a href='editstaff.php?eid=" . $eid . "'>Edit</a></td>"; echo "</tr>"; } echo "</table>"; include 'close.php'; ?>
  7. hello, if i have an appostraphy in a text box while sumitting, it returns an error. any ideas?
  8. hello all, was wondering if i can do this: function do_your_thing(){ alert('Help!'); } <a onclick='do_your_thing()'>click me</a>
×
×
  • 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.