harristweed
Members-
Posts
346 -
Joined
-
Last visited
-
Days Won
1
Everything posted by harristweed
-
To get over that, you need to examine each character in the string individually
-
$result = mysql_query("SELECT * FROM smsaudit WHERE smsuser = '" . $_SESSION['SESS_SMS_USER'] . "' order by smsident DESC");
-
RTFM http://uk.php.net/manual/en/function.json-decode.php
-
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!
-
For dates on forms, a datepicker is a better option. http://jqueryui.com/demos/datepicker/
-
and where is that?
-
NEED HELP on Verifying email address project.
harristweed replied to loudog's topic in PHP Coding Help
put smtp server software on your local machine. It is much better to see exactly what you are sending. http://www.postcastserver.com/ -
Help required on php-jquery coding
harristweed replied to [email protected]'s topic in PHP Coding Help
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>"); } -
header('location: page.php?done=1'); Must be before any HTML out put. You have echo preceeding the header code!
-
http://es.php.net/manual/en/function.stripslashes.php
-
It might be better to post in Java Script forum rather than PHP!
-
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"; } ?>
-
You need the font in the same location as the code!
-
Efficiently allocating resources for large import of images
harristweed replied to delayedinsanity's topic in PHP Coding Help
Why import pics? Just link to them? -
why so much code? why not: mysql_query("update users set lastvisit = curdate() where user_id = '{$_SESSION['userId']}' ");
-
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"; } } ?>
-
this might help http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/
-
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:
-
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 } }
-
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!
-
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 );
-
for better quality, change ImageCopyResized yo imagecopyresampled
-
Generate different colors on table rows using array
harristweed replied to rocky_88's topic in PHP Coding Help
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!