harristweed
-
Posts
346 -
Joined
-
Last visited
-
Days Won
1
Posts posted by harristweed
-
-
$result = mysql_query("SELECT * FROM smsaudit WHERE smsuser = '" . $_SESSION['SESS_SMS_USER'] . "' order by smsident DESC");
-
-
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.
-
and where is that?hmm that is weird, its located where it should be -
put smtp server software on your local machine. It is much better to see exactly what you are sending.
-
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!
-
-
It might be better to post in Java Script forum rather than PHP!
-
You can fix it by using a valid insert query
-
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!
-
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"; } } ?>
-
-
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:
if (!is_dir($base."/".$get_album) || strstr($get_album,".") !=NULL || strstr($get_album,"/") !=NULL || strstr($get_album,"\"") !=NULL) -
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
-
-
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!
Substituting Letters and Number
in PHP Coding Help
Posted
To get over that, you need to examine each character in the string individually