Jump to content

aconnal

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aconnal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi thanks for your reply, yes I have restarted the apache server after every change I have made. A
  2. Hello folks, Right I seem to be struggling to enable the GD extension within PHP. I am running an apache webserver with openssl and a mysql database on Windows XP. I have done some extensive searching on this and tried many solutions but to no avail and now I'm stuck. I have uncommented the gd2 extension in the php.ini file and also changed the extension_dir to c:\php\extensions. However when I run phpinfo.php it says that my extension_dir is c:\php4? This is not set in the .ini file so I'm a little confused to why it is saying this. I have also tried renaming files moving the .dll and still no luck! So thought I'd see if a kind person on here could help me? I am trying to use JpGraph to create dynamic graphs with data from my database, but when I run the script for the graphs I get this error: [i]"JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)"[/i] Any help would be much appriciated. Thanks A
  3. Ah how dim am I yes I've changed it to an int and it works fine now. Thanks for that. A
  4. Cool, here is the code to create the temporary table: $CREATE = "CREATE TEMPORARY TABLE temp_total_sales(total_sale_id int(10) NOT NULL AUTO_INCREMENT, salesperson_id int(10) NOT NULL, total_sales char(50) NOT NULL, PRIMARY KEY(total_sale_id))"; mysql_query($CREATE) or die(mysql_error()); Here is the query to extract the information: $QUERY3 = "SELECT * FROM temp_total_sales ORDER BY total_sales DESC"; $RESULT3 = mysql_query($QUERY3) or die(mysql_error()); $NUMRESULTS3 = mysql_numrows($RESULT3); Hope this helps. Cheers A
  5. Hi, I'm new to the board so please be gentle with me. Anyway I seem to have a problem, I am creating a league table for sales people, I have got it doing everything I want apart from one thing, the ordering. My script creates a temporary table and then I extract the information from that table and order it by the total of sales, however the ordering is wrong this is how it is ordering the total of sales at the moment: 9675 2140 18790?? Surely the 18790 should be at the top? It looks like mysql is ordering the numbers by the first number and not the whole value!! Any thoughts on this would be appriciated. Thanks A
×
×
  • 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.