User Profile

Collapse

Profile Sidebar

Collapse
jimmyg123
jimmyg123
Last Activity: Jan 5 '09, 11:51 PM
Joined: Mar 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jimmyg123
    replied to Iconv not working on php4.3.3
    in PHP
    Copying the iconv.dll and php_iconv.dll to the windows/system32 folder seems to have fixed it.

    Thanks anyway.
    See more | Go to post

    Leave a comment:


  • jimmyg123
    replied to Iconv not working on php4.3.3
    in PHP
    This error message appears in the system log, however I am certain the file is there...

    Application popup: Warning : Unknown(): Unable to load dynamic library 'E:\PHP\extensi ons\php_iconv.d ll' - The specified module could not be found.
    See more | Go to post

    Leave a comment:


  • jimmyg123
    replied to Iconv not working on php4.3.3
    in PHP
    Yes iconv.dll is in the dll folder and php_iconv.dll is in the extensions folder...
    See more | Go to post

    Leave a comment:


  • jimmyg123
    started a topic Iconv not working on php4.3.3
    in PHP

    Iconv not working on php4.3.3

    Hey everyone,
    Sorry for a question on an outdated PHP, but I am trying to get iconv working on php4.3.3. When I enable it in php.ini by removing the ; from the ;extension=php_ iconv.dll
    line, php pages simply refuse to load.

    Can anyone point me in the right direction as to how to successfully enable iconv?

    Cheers,
    Jimmy
    See more | Go to post

  • jimmyg123
    replied to Uploading file, works in firefox but not IE
    in PHP
    I actually am now thinking it could have something to do with using two forms... If that's the case sorry!
    See more | Go to post

    Leave a comment:


  • jimmyg123
    started a topic Uploading file, works in firefox but not IE
    in PHP

    Uploading file, works in firefox but not IE

    Hey everyone,
    I've just written some basic code to upload a pdf file from a browser to a server. It works fine when I use Firefox, however when I use IE after clicking the upload button it returns to the index page which I just can't figure out.
    If anyone has any idea how to fix this could they let me know, thanks!

    (it is added to another page which includes mysql_connect() and all that, it is not a mysql problem but...
    See more | Go to post

  • jimmyg123
    replied to Getting value from Drop down menu
    in PHP
    Anyone????
    See more | Go to post

    Leave a comment:


  • jimmyg123
    started a topic Getting value from Drop down menu
    in PHP

    Getting value from Drop down menu

    Hi,
    I have used a loop so there are a number of quantity drop down menu's designed for a shopping cart style website, with $i being the loop counter and qty being the name of the drop down menu so I have used (ignore the onChange function)

    Code:
    <select id='qty{$i}' onChange='findTotal($price,$i)'>
    	<option value='0'>0</option>
    	<option value='1'>1</option>
    	<option value='2'>2</option>
    ...
    See more | Go to post

  • Finally got it working, thanks to everyone who helped.
    My last problem was passing total{$i} and qty{$i} through to the function, guess the javascript didnt like it...

    For anyone who wants to know how I got it to work here is my working:
    Javascript:
    Code:
    <script type='text/javascript'>
    function findTotal(price,i)
    { 
    	var qtd   = document.getElementById('qty'+i).value;
    	var result
    ...
    See more | Go to post

    Leave a comment:


  • Finally got it working, thanks to everyone who helped.
    My last problem was passing total{$i} and qty{$i} through to the function, guess the javascript didnt like it...

    For anyone who wants to know how I got it to work here is my working:
    Javascript:
    Code:
    <script type='text/javascript'>
    function findTotal(price,i)
    { 
    	var qtd   = document.getElementById('qty'+i).value;
    	var result
    ...
    See more | Go to post

    Leave a comment:


  • I added a javascript alert in my function to see if I could debug, and when I change the menu I don't get the alert, which means the function isn't being called properly... Does anyone understand why???

    Function:
    Code:
    <script type='text/javascript'>
    function totalise(price,total,qty)
    { 
    	alert(\"HELLOOOOO\"); 
    	var qtd   = document.getElementById(qty).value;
    	var result = document.getElementById(total);
    ...
    See more | Go to post

    Leave a comment:


  • I've changed my function to

    Code:
    function totalise(price,total,qty)
    { 
    	var qtd   = document.getElementById(qty).value;
    	var result = document.getElementById(total);
    	result.value = price * qtd;
    }
    with the menu like this
    Code:
    <select id='qty{$i}' onChange=totalise($price,total{$i},qty{$i})>
    I'm not getting any javascript errors, but nothing happens when I change the quantity...
    See more | Go to post

    Leave a comment:


  • I've figured out how to loop the id names I did it like this (where $i is the loop number), and looking at the source code when I view the page it is working fine

    Code:
    <select id='qty{$i}' onChange=totalise($price,total{$i},qty{$i})>
    					<option value='0'>0</option>
    					<option value='1'>1</option>
    					<option value='2'>2</option>
    					<option value='3'>3</option>
    ...
    See more | Go to post

    Leave a comment:


  • I've figured out how to loop the id names I did it like this (where $i is the loop number), and looking at the source code when I view the page it is working fine

    Code:
    <select id='qty{$i}' onChange=totalise($price,total{$i},qty{$i})>
    					<option value='0'>0</option>
    					<option value='1'>1</option>
    					<option value='2'>2</option>
    					<option value='3'>3</option>
    ...
    See more | Go to post

    Leave a comment:


  • Ummm, no not really because my problem is that I want to implement this code into a loop, and I'm not sure how to...
    Thanks anyway
    See more | Go to post

    Leave a comment:


  • okay I get that, but how do i concatenate the loop number to the name of the total field?

    this is my loop

    Code:
    	for($i=0;$i<$num_rows;$i++){
    		$name = mysql_result($query,$i,2);
    		$price = mysql_result($query,$i,3);
    		$desc = mysql_result($query,$i,5);
    		$photo = mysql_result($query,$i,4);
    		echo("
    		  <tr>
    			<td rowspan='3' valign='middle' align='center'><p><a
    ...
    See more | Go to post

    Leave a comment:


  • Shall I assume no-one can help me?
    See more | Go to post

    Leave a comment:


  • Using total{i} takes the number of the loop and adds it to the total name
    so when it runs it would be read as
    total0
    total1
    total2

    ... which is what i should be using right?
    See more | Go to post

    Leave a comment:


  • Javascript onChange calculate total quantity*price help!

    Hi everyone.
    I'm trying to create a shopping cart (with PHP) and it's all going pretty good. Except I'm trying to make a quantity drop down menu which when you change the quantity the total field is updated... I had it working for one, but when I tried to implement it into a for loop (so that when there are more than one item on the page they work separately) nothing...
    See more | Go to post

    Leave a comment:


  • jimmyg123
    started a topic Java calculation on changeMe used in a for loop
    in PHP

    Java calculation on changeMe used in a for loop

    Hi everyone.
    I'm trying to create a shopping cart (with PHP) and it's all going pretty good. Except I'm trying to make a quantity drop down menu which when you change the quantity the total field is updated... I had it working for one, but when I tried to implement it into a for loop (so that when there are more than one item on the page they work separately) nothing happens.

    Here is my javascript
    Code:
    <script
    ...
    See more | Go to post
No activity results to display
Show More
Working...