michaelsambol
Forum Replies Created
-
Forum: Hacks
In reply to: Calling PHP script in custom pluginHere’s the code. The action isn’t quite working.. It might have something to do with using ‘ versus “. Is this even the correct way to be doing this (with a form action)? Thanks!
while ($row = mysql_fetch_array($result)){ $txt .= "<tr><td>"; $txt .= '<img src="' . content_url() . $row['PICTURE'] . '" height = 75 width = 75/>'; $txt .= "</td><td>" . $row['ID'] . "</td><td>" . $row['NAME'] . "</td><td>"; $txt .= '<form action=\'http://www.example.com/activity?id=$row[\'ID\']\' method="post" /> <input type="hidden" value=$row[\'NAME\'] name = "ID"/> <input type="submit" value="Check out more" name="action" /> </form>'; $txt .= "</td></tr>"; } $txt .= "</tbody> </table> [/minimal_table]"; return $txt;Forum: Hacks
In reply to: Calling PHP script in custom pluginOkay, so just put the target as the new page and attach the id on the end of the url? and then on my new page just have a shortcode which calls my PHP script?
Forum: Hacks
In reply to: Calling PHP script in custom pluginNot quite sure.. the information needs to be passed to a PHP script I have written. The script will take the ID it receives, query the database and display the information on a new page. Could I put the PHP in a template?
Forum: Fixing WordPress
In reply to: PHP not displaying images from database@threecows haha now the test plugin seems to be interfering with the theme … for example, the theme’s shortcode for button ( [button] ) no longer produces a button..
Forum: Fixing WordPress
In reply to: PHP not displaying images from databaseYES THANK YOU Threecows. It works. You’re amazing. Appreciate the help.
Forum: Fixing WordPress
In reply to: PHP not displaying images from databaseNothing is printing :/
I tried to simplify it and print just one image, but the image doesn’t print. Here is the code I used:
echo '<img src="' . get_bloginfo('template_directory') . '/wp-content/images/pic.jpg' . '" />';Forum: Fixing WordPress
In reply to: PHP not displaying images from databaseSorry, I have one follow-up. What should I do if the link to the image is dynamic, not static. Instead of
/wp-content/images/pic.jpg, I need$pictureI am trying to populate a table of images from a folder
Forum: Fixing WordPress
In reply to: PHP not displaying images from database@threecows Adding “get_” in front of “bloginfo” worked! Thanks!