Recent content by *Hollie21*

  1. H

    PHP convert string to int seems to give me 0?

    Hi, I'm trying to convert a string to an integer, so that I can do some maths on it. The PHP code that I have is: echo "This is the type of initial netPrice:"; echo gettype($netPrice); echo "<br/>"; echo $netPrice. " = NET PRICE<br/>"; $test = (int)$netPrice; echo gettype($test); echo...
  2. H

    php drop down box value?

    Currently I'm working on a drop down box that retrieves the data from my database and then displays it as the values within the box. However then I try and retrieve the value and place it in another form, all I get printed out is [+value+]. I'm using modx, and thats why theres no checking that I...
  3. H

    converting a parameter in php is not working?

    I'm currently using modx and I have the following problem: Currently I am passing the following variable from my chunk to my snippet: [!tax? &param1=`[+price_net+]`] Then within my main snippet I am trying to convert that variable into a float, and search within my database: <?php echo...
  4. H

    PHP form question about displaying a value?

    I am using MODx, and have got the following code in a snippet: echo '<FORM METHOD=POST>'; echo 'Name'; echo '<input type="text" name="name" value="$name">'; echo '<input type=submit name="submit" value="Update"></p>'; echo '</FORM>'; $name does equal what I want it too, as I have printed...
  5. H

    PHP MySQL Search Script Narrowing Down Database?

    I've managed to get a mySQL search script up and running coded in PHP. However what I want to do is search for multiple things one after the other, but each time to be searching through only the results from the previously narrowed down results. So I want to search through a hundred results...
Back
Top