Jump to content

harristweed

Members
  • Posts

    346
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by harristweed

  1. To get over that, you need to examine each character in the string individually
  2. $result = mysql_query("SELECT * FROM smsaudit WHERE smsuser = '" . $_SESSION['SESS_SMS_USER'] . "' order by smsident DESC");
  3. RTFM http://uk.php.net/manual/en/function.json-decode.php
  4. best I can do is: <?php$seach_items=array(); $search = "PLEl25o5"; $seach_items[]=$search; $swap=array(1=>"l", 5=>"s", 0=>"o", l=>"1", o=>"0", s=>"5"); foreach ($swap as $key => $value) { if(strpos($search,"$key")){ $seach_items[]=str_replace("$key","$value","$search"); } } $query="('". implode("' or '",$seach_items)."')"; echo"$query"; ?> my excuse is i'm old!
  5. For dates on forms, a datepicker is a better option. http://jqueryui.com/demos/datepicker/
  6. put smtp server software on your local machine. It is much better to see exactly what you are sending. http://www.postcastserver.com/
  7. If your 'fancy box'updates your database, perhaps you need something like... if($result=mysql_query($update)){ exit("<script language=\"JavaScript\" type=\"text/javascript\"> <!-- opener.location.reload(true); self.close(); --> </script>"); }
  8. header('location: page.php?done=1'); Must be before any HTML out put. You have echo preceeding the header code!
  9. http://es.php.net/manual/en/function.stripslashes.php
  10. It might be better to post in Java Script forum rather than PHP!
  11. You can fix it by using a valid insert query http://www.tizag.com/mysqlTutorial/mysqlinsert.php
  12. I can connect? <?php $xml_feed="http://twitter.com/statuses/user_timeline.rss?screen_name=fleuragemapvv&count=3"; if($xml = simplexml_load_file("$xml_feed")){ echo"connected"; } ?>
  13. You need the font in the same location as the code!
  14. why so much code? why not: mysql_query("update users set lastvisit = curdate() where user_id = '{$_SESSION['userId']}' ");
  15. does this point you in the right direction? <?php $xml_feed="http://server1.thezach.net/examplewarn.xml"; if($xml = simplexml_load_file("$xml_feed")){ foreach($xml->info->area->geocode as $number){ $value=$number->value; echo"value = $value<br />\n"; } } ?>
  16. this might help http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/
  17. The \ in this line is escaping the quote, you need to add another quote! if (!is_dir($base."/".$get_album) || strstr($get_album,".") !=NULL || strstr($get_album,"/") !=NULL || strstr($get_album,"\") !=NULL) Add quote:
  18. you have a brace } in the wrong place! try: while($row = mysql_fetch_assoc($query1)) { $rowdate = $row['date']; if($selecteddate == $rowdate) { echo "Date already Exists"; } else { // form insertion data code here which i have and working fine } }
  19. I would find the space after the first 30 characters like this: $question = stripslashes($row['question']); $offset =strpos ( $question , " " ,30) ; $string = substr ($question ,0,$offset); Also in your code I do not see how the question is added to the $string variable!
  20. too scale: $old_width = $size[0]; $old_height = $size[1]; $thumbnail_width = 670; $thumbnail_height = ($old_height * $thumbnail_width / $old_width); Quality: change: $destination_handle = ImageCreate ( $thumbnail_width, $thumbnail_height ); to: $destination_handle = imagecreatetruecolor( $thumbnail_width, $thumbnail_height );
  21. for better quality, change ImageCopyResized yo imagecopyresampled
  22. I've no idea. Find out whats goinjg on. Echo out $i. Echo count of array. Look at source of table. It must be something simple!
×
×
  • 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.