Jump to content

fareedreg

Members
  • Posts

    103
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fareedreg's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I am using phpgraphlib for creating graph.. everything is working fine and i can view graph in my windows machine wamp server. AS i know that in windows GD library(used for creating image) has installed with wamp server ... in windows i just uncomment the line ph_gd2.dll in php.ini. But in lamp server every form working fine but graph form which was calling phpgraphlib is not opening. when i open this form it show me (//localhost) instead of graph... WHY? I know that phpgraphlib using image() for creating image.. In windows if you uncomment php_gd2.dll , the process of image creating is fine. But in Centos5 i am not able to find the solution even from php.ini. I already tried to load php-gd latest but facing the same problem Please help? Thanks
  2. great website.. great help.. great people... thanks
  3. Sorry Thanks for support.. Now its working...
  4. I am getting trouble since today morning from the associative array. Actually I am using phpgraphlib.php to create line graph. Every thing is working fine.. I can easily create graph if i type value direct in the associative array like this. include('phpgraphlib.php'); include('connect.php'); mysql_select_db($Db, $link); $query = "select colone,coltwo from graphtemp"; $result = mysql_query($query,$link); $nro=mysql_num_rows($result); $row=mysql_fetch_assoc($result); while ($row = mysql_fetch_assoc($result)) { $A[] = $row['colone']; $C[]= $row['coltwo']; } $data=array("$A[0]"=>$C[0],$A[1]=>$C[1],$A[2]=>$C[2],$A[3]=>$C[3], $A[4]=>$C[4],$A[5]=>$C[5]); $graph = new PHPGraphLib(750,400); $graph->addData($data); here i am mentioning only 6 number of rows. but problem arise when i do not know the number of rows in the table. How can i accept the values from the mysql table when i do not know the exact number of row.. Please help
  5. hi guys ..I want to create graphs in php. Data will be taken by mysql ofcourse... I have seen lots of options like fusion chart xml, phpgraphlib and so on... my question is What will be the best library or tool. What will be your recommendation to create graphs. Thanks
  6. Last year i had completed Library management system for my client and got lots of help from phpfreaks.com.. Thanks for all who help me out there.. Now i would like to share this LBS with other developers so they can work on it and make it more powerfull and free open source ofcourse.. Please help me out how can i share it and make it opensource for all the developers. Thanks
  7. Dear All I have a sample code in which validation is done by java script.. All working fine in IE but not working in firefox. Please suggest. code below <html"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" src="js/gen_validatorv31.js" type="text/livescript"></script> </head> <body> <form id="form1" name="newclient" method="post" action="save.php"> <label></label><p> <label>Name <input name="txtname" type="text" id="txtname" size="50" maxlength="250" /> </label> </p> <p> <label> <input type="submit" name="cmdsubmit" id="cmdsubmit" value="Submit" /> </label> </p> </form> <label></label><p> </p> <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("newclient"); frmvalidator.addValidation("txtname","req","Please enter Name"); frmvalidator.addValidation("txtname","maxlen=249","Max length for Name is 250 character"); </script> </body> </html>
  8. how to make it numeric too. function validate_required(fldb) { var error=""; if (fldb.value==null||fldb.value==""||) { error="Please enter deposite amount"; fldb.focus(); } else { } return error; }
  9. I dont know what to do in this file ...
  10. //connect.php <?php $link = mysql_connect("localhost","root","redhat") or die("Could not connect : " . mysql_error()); $Db = "libmanage"; ?>
  11. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\library\connect.php:11) in C:\library\memdepadd.php on line 2
  12. I am calling second.php from first.php.. and using session_start() in first.php......... after saving data if i call first.php again from second.php ..i m getting this message. WHY ? Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent
  13. have a look at first.php $idval=1; include('connect.php'); $Tb = "mem_depo"; mysql_select_db($Db, $link); $query = "select id from mem_depo order by id"; $result= mysql_query($query,$link); while ($row=mysql_fetch_array($result)) { $f1=$row["id"]; } if ($f1>=1) { $idval=$f1+1; ''''''''''''''''''''''''''''variable which i would like to access in second.php } mysql_close($link); include('style.php'); $val=$_POST["itemmem"]; include('balance.php'); ?> second.php $depid = $_POST['idval']; '''''''''''''''''this is coming null $memid = $_POST["txtmemid"]; $depamt = $_POST["txtdepamt"]; $tmy = $_POST["txtdepyy"]; $tmm = $_POST["txtdepmm"]; $tmd = $_POST["txtdepdd"]; $tstamp = ("$tmy-"."$tmm-"."$tmd");
  14. Please make ur query clear.. by the way the answer can be go to the first table and got 1st id.. now search this 1st id in second or third table with the help of loop in php and get records.
×
×
  • 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.