Jump to content

baber_abbasi

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by baber_abbasi

  1. Hi, I need to fetch records between defined date ranges i.e Date from 01/08/2006 to 15/08/2006. I am using following command to do above task but its not bringing accurate data. SELECT * FROM ABC WHERE date BETWEEN '01/08/2006' AND '15/08/2006' Can anyone help??
  2. This is what I was wondering but there are quiet few websites using PHP and having these features. They even track if email is opened or not, receipient IP address and much more. Plz chk out http://www.didtheyreadit.com . I was wondering PHP can do this with sockets or something else. Does anyone have a word to say??
  3. It didn't work. I just tested sending an email to fake email address via Outlook express and it was bounced immediately. Then I used same email address in my php script but it didn't give me a message if it was bounced.
  4. Hello, I am using a simple php mail function to send emails from database. I need PHP to chk and keep a log of bounced emails. Can anyone help. Thanks in advance.
  5. Thanks. I just replied but it couldn't work. Can you plz look into this matter?? Thanks again.
  6. Hello, I am not good in Jscript coding while I know PHP very well. Just stuck in a very small issue though i.e "Using PHP sent parameters in jscript function" I am using Jscript to fetch 2 parameter values (these are actually form field name), add them and give their total in another form field. There are 3 fields in the form. [code] <HEAD> <script type="text/javascript"> function calc(f, e){       one = document.autoSumForm.f.value;   two = document.autoSumForm.e.value;   document.autoSumForm.total1.value = (one * 1) + (two * 1); } </script> </HEAD> <BODY> <form name="autoSumForm">       <table width=50% bgcolor="#FFFFFF" cellspacing=1 cellpadding=2>         <tr bgcolor="">                      <td><b>One</b></td>           <td><b>Two</b></td>           <td><b>Total</b></td>          </tr> <? //loop through here and post as an array for ($i = 1; $i <= 1; $i++) { //variables for auto calculation $fn = "a".$i; $ef = "b".$i; ?>                                  <td><input name="a<?=$i?>" type="text" onFocus="calc(<?=$fn?>, <?=$ef?>);"></td>                 <td><input name="b<?=$i?>" type="text" onFocus="calc(<?=$fn?>, <?=$ef?>);"></td>                 <td><input name="total<?=$i?>" type="text"></td>                               </tr> <? //end loop here } ?>       </table>       </td>         </tr>       </table>   </form> </BODY> </HTML> [/code] The only problem in this code is that function i.e function calc(f, e){} is not fetching parameters values i.e (f , e). Plz tell me how to make it work & thanks in advance. :)
  7. I have tried but can't display an image at the place where I have defined an AREA. if you can show me how it can be done, that would be great. Thanks again. [!--quoteo(post=374749:date=May 17 2006, 11:41 PM:name=Barand)--][div class=\'quotetop\']QUOTE(Barand @ May 17 2006, 11:41 PM) [snapback]374749[/snapback][/div][div class=\'quotemain\'][!--quotec--] The imagecopyxxxxx() functions take all or part of one image and place it at a specified place in another. If you look them up in the manual you should find at least one that fits your needs for this problem too. [/quote]
  8. Hi Barand, I appreciate your help in the matter. Your past response was infact regarding image merging/resizing which helped a lot. Thanks again. Now my question is regarding displaying an image (not merging) at specific area of MAP tag. Plz see my current issue below. [!--quoteo(post=374738:date=May 17 2006, 11:15 PM:name=Barand)--][div class=\'quotetop\']QUOTE(Barand @ May 17 2006, 11:15 PM) [snapback]374738[/snapback][/div][div class=\'quotemain\'][!--quotec--] See my reply to similar question of yours a few weeks ago [a href=\"http://www.phpfreaks.com/forums/index.php?s=&showtopic=90879&view=findpost&p=364301\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...ndpost&p=364301[/a] [/quote]
  9. Hi, I am using HTML MAP/AREA tags and need to display an image file at a defined AREA coordinates. My following code is loading an image 'background.jpg' and I have defined 2 areas on it. <div> <map name="Map" id="Map"> <area href=one.php shape=rect coords=0,0,10,10> <area href=two.php shape=rect coords=10,0,20,10> </map> <img src="images/background.jpg" alt="" border="0" usemap="#Map"> </div> Now I need to display another image at one area location from above code i.e (coords=10,0,20,10 ). This means, above code is displaying ONE BACKGROUND image and I need to display another image at ONE AREA-(coords=10,0,20,10 ) of such background image. Hence hiding such portion of background image by displaying the contents of other image file. I know its possible but need to know how I can implement it. Thanks in advance for your help. :)
  10. Thanks. Can you tell me how an image size can be changed?? Like I have an image and I need to change its width/height, which function can do this?? and change without breaking its pixels. Thanks again.
  11. Hi Barand, Thanks a ton, it worked great for me. I am now stuck in another situation and hope you can help me find a way out of it. :) I have following x.y (co-ordinates) and I need to resize an image based on these co-ordinates. 50,0 60,0 50,10 60,10 50,20 60,20 These x.y (co-ordinates) make a shape of 'vertical rectangle' like below but image file is in square shape. -- | | | | -- This is something, I am looking to edit my image file-(in square shape) to have a new shape based on above x.y (co-ordinates). Thanks in advance and I will appreciate anyone giving useful hints/codes.
  12. Hi Barand, Thanks for the help. imagecopymerge() solved the requirement. Now I need to save the merged image at my server, how can I do this??? I am using following code to do this but its not saving updated image in the new image file. Bundle of thanks. [code] <?php //copymerge header('Content-type: image/png'); $simg = "images/abc.jpg"; $simage = imagecreatefromjpeg($simg); $dimg = "xyz.png"; $dimage = imagecreatefrompng($dimg); $dx = 50; $dy = 50; $sx = 50; $sy = 50; $sw = 50; $sh = 50; $pct = 100; imagecopymerge($dimage, $simage, $dx, $dy, $sx, $sy, $sw, $sh, $pct); imagepng($dimage); // save the file $fname = $dimg; if(!($fq= fopen ($fname, "w+"))) die ("Can't open"); fwrite ($fq, imagepng($dimage)); fclose ($fq); ?> [/code]
  13. Hi, I need to edit an image so as I can insert another small image in it at some given location/coordinates. For example; mainImage = abc.gif insertImage = xyz.gif I need to insert xyz.gif into abc.gif at some given location/coordinates. Pls tell me how its possible. Thanks in advance.
  14. Hi, I am trying to split an image in 4 parts, give each splitted part a name and save such splitted image files at some given path at local harddisk or server. Is it possible? any one can help plz? Thanks in advance.
  15. I have few values in a field stored in a table. I need to print this field values by loop in a way that it prints like following format; and so on........ Using following loop format do { PREV: $row[\'values\']; NEXT: $row[\'values\']; } while() Plz help me solve this problem. Thankx in advance.
  16. I have edited an existing code to my own having LEFT JOIN feature in it. I am getting errors while replacing table name. EXISTING CODE $tablepre = \"calendar\"; $sql = \"SELECT id, y, m, d, title, text, TIME_FORMAT(start_time, \'%l:%i %p\') AS stime, TIME_FORMAT(end_time, \'%l:%i %p\') AS etime, \" . $tablepre . \"users.uid, fname, lname FROM \" . $tablepre . \"mssgs LEFT JOIN \" . $tablepre . \"users ON (\" . $tablepre . \"mssgs.uid=\" . $tablepre . \"users.uid) WHERE id = \" . $id; I need to replace [ \" . $tablepre . \"users.uid ] with [ clients.uid ] Thankx in advance.
  17. Is there any possibility that I fetch database values form Visual Foxpro database and then save into MYSQL database?? If yes, plz tell me how? Thanking you.
  18. Try this; $fonction = mysql_query (\"select group FROM members WHERE username = \'Saizen\'\"); if(mysql_num_rows($fonction) > 0){ $row = mysql_fetch_array($fonction); do { echo $row[\'group\']; $row = mysql_fetch_array($fonction); while($row); } }else{}
  19. Hi, Plz tell me how can I drop a table created already in my database by using mysql_query() function. Thankx
  20. Thankx for ur help. I tried this but get same output thatis only forst image from table is displayed. Couldu plz check it again? Thankx again.
  21. I am using a script to display image from database. I want to display all images from my table onto the page. The code I am using is following and I will appreciate ur help if necessary modifications are made into it as required. \" $dbServer = \"localhost\"; $dbDatabase = \"blob\"; $dbUser = \"root\"; $dbPass = \"\"; $sConn = mysql_connect($dbServer, $dbUser, $dbPass) or die(\"Couldn\'t connect to database server\"); $dConn = mysql_select_db($dbDatabase, $sConn) or die(\"Couldn\'t connect to database $dbDatabase\"); $result = mysql_query(\"SELECT * FROM myBlobs\"); if(mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result); do{ $dd = $row[\'blobData\']; print($dd.\"<BR>\"); $row = mysql_fetch_array($result); }while($row); }else{echo\"No record\";} \" From above code, it displays only first image and don\'t increment to next which it should be. Please tell me how sould I resolve this problem. Thankx
  22. I have hosting service with database support. There is no database created on the server as yet. I am trying to create one with my script but it is giving me error while on my local machine it executes successfully. The code that I am using is as below; <?php $sqlcrt = mysql_query(\"create database air\"); $dbhost = \'localhost\'; $dbusername = \'abc\'; $dbpasswd = \'xyz\'; $database_name = \'air\'; $connection = mysql_pconnect(\"$dbhost\",\"$dbusername\",\"$dbpasswd\") or die (\"Couldn\'t connect to server.\"); $db = mysql_select_db(\"$database_name\", $connection) or die(\"Couldn\'t select database.\"); $query = mysql_query(\"CREATE TABLE cities ( id int(10) NOT NULL auto_increment, name varchar(30) NOT NULL default \'\', regid int(10) NOT NULL default \'0\', PRIMARY KEY (id), UNIQUE KEY id (id) )\"); ?> The username and password used above are same as used for connecting to server through FTP. Plz give me some hint how to resolve the prob. Thankx for time.
  23. Can some one tell me about the utility available for loading data into MYSQL from any file? Thankx
  24. Can some one tell me about the utility available for loading data into MYSQL from any file? Thankx
×
×
  • 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.