Pinto Posted August 13, 2015 Share Posted August 13, 2015 how does one display php using ip pages Link to comment Share on other sites More sharing options...
Ralf Herrmann Posted August 13, 2015 Share Posted August 13, 2015 Can you be more specific about where/how exactly you want to use PHP in Pages? In templates, it works like this: Link to comment Share on other sites More sharing options...
Pinto Posted August 13, 2015 Author Share Posted August 13, 2015 Create new page in pages and create a php script Link to comment Share on other sites More sharing options...
Pinto Posted August 13, 2015 Author Share Posted August 13, 2015 Tried posting code Link to comment Share on other sites More sharing options...
Pinto Posted August 13, 2015 Author Share Posted August 13, 2015 What I'm trying to accomplish is a html form that when submitted runs a SQL query and searches a table I createdReturns a list of results I have code but it wont run in ip pages for some reason Link to comment Share on other sites More sharing options...
Edison Tsai Posted August 14, 2015 Share Posted August 14, 2015 Have you done it?I tried echoing a word by wrapping it with 2 curly braces on each end, and it did show but shows some errors.{{ echo "test"; }} Link to comment Share on other sites More sharing options...
Ralf Herrmann Posted August 14, 2015 Share Posted August 14, 2015 Have you done it?I tried echoing a word by wrapping it with 2 curly braces on each end, and it did show but shows some errors.{{ echo "test"; }}Don’t do that. ;-) That’s not how templates work. See the link to the documentation I posted above. A Hello World example should look like this:{{ $myvariable="Hello World!"; }} {$myvariable} Link to comment Share on other sites More sharing options...
Pinto Posted August 16, 2015 Author Share Posted August 16, 2015 How would one connect to a table I made and display rows Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.