Search results

  1. T

    How do i define a php variable that contains a predefined variable?

    This is what i have <?php $description= 'foobar' ?> <?php $query = 'key=description&value=$description' ?> <?php echo $query ?> this echos: key=description&value=$description what i want it to echo is: key=description&value=foobar what am i doing wrong?
  2. T

    How would i run a php function multiple times within a single page?

    I have a time variable in a wordpress theme that needs to be converted from seconds to hh:mm:ss. I have the following function: <?php function minutes( $seconds ) { return sprintf( "%02.2d:%02.2d", floor( $seconds / 60 ), $seconds % 60 ); } echo minutes( get_post_meta($post->ID, 'trt'...
Back
Top