Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. ">" problem in PHP code

">" problem in PHP code

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
databasehelpphphtmlcss
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SNArruda
    wrote on last edited by
    #1

    Hi, I try to execute a php code that stop when find a ">" char. I new in web developing and i think that my feel experiencie is the real problem. some one can help me ? The messege i received on top of the page in preview is setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if > (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?> The code i wish to execute is: <?php require 'class.eyemysqladap.inc.php'; require 'class.eyedatagrid.inc.php'; // Load the database adapter $db = new EyeMySQLAdap('localhost', 'root', '', 'codes'); // Load the datagrid class $x = new EyeDataGrid($db); // Set the query $x->setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?><HTML><HEAD><TITLE>EyeDataGrid Example 1</TITLE><LINK href="table.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6002.18130" name=GENERATOR></HEAD><BODY> <H1>Basic Datagrid</H1> <P>This is a basic example of the datagrid</P> <?php$x->printTable(); ?> </BODY></HTML>

    M C 2 Replies Last reply
    0
    • S SNArruda

      Hi, I try to execute a php code that stop when find a ">" char. I new in web developing and i think that my feel experiencie is the real problem. some one can help me ? The messege i received on top of the page in preview is setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if > (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?> The code i wish to execute is: <?php require 'class.eyemysqladap.inc.php'; require 'class.eyedatagrid.inc.php'; // Load the database adapter $db = new EyeMySQLAdap('localhost', 'root', '', 'codes'); // Load the datagrid class $x = new EyeDataGrid($db); // Set the query $x->setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?><HTML><HEAD><TITLE>EyeDataGrid Example 1</TITLE><LINK href="table.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6002.18130" name=GENERATOR></HEAD><BODY> <H1>Basic Datagrid</H1> <P>This is a basic example of the datagrid</P> <?php$x->printTable(); ?> </BODY></HTML>

      M Offline
      M Offline
      mdusyl
      wrote on last edited by
      #2

      Can you please post the error message with error line number? Also please check is there any whitespace before <?php , if there is any then try removing it. :) http://www.halalit.net

      1 Reply Last reply
      0
      • S SNArruda

        Hi, I try to execute a php code that stop when find a ">" char. I new in web developing and i think that my feel experiencie is the real problem. some one can help me ? The messege i received on top of the page in preview is setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if > (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?> The code i wish to execute is: <?php require 'class.eyemysqladap.inc.php'; require 'class.eyedatagrid.inc.php'; // Load the database adapter $db = new EyeMySQLAdap('localhost', 'root', '', 'codes'); // Load the datagrid class $x = new EyeDataGrid($db); // Set the query $x->setQuery("*", "people"); // If were called using ajax, only display the table, not the page body if (EyeDataGrid::isAjaxUsed()) { $x->printTable(); exit; } ?><HTML><HEAD><TITLE>EyeDataGrid Example 1</TITLE><LINK href="table.css" type=text/css rel=stylesheet><META content="MSHTML 6.00.6002.18130" name=GENERATOR></HEAD><BODY> <H1>Basic Datagrid</H1> <P>This is a basic example of the datagrid</P> <?php$x->printTable(); ?> </BODY></HTML>

        C Offline
        C Offline
        cjoki
        wrote on last edited by
        #3

        just a basic look at the code it seams that you are missing a space in this part of the code. <?php$x->printTable(); try <?php $x->printTable();

        P 1 Reply Last reply
        0
        • C cjoki

          just a basic look at the code it seams that you are missing a space in this part of the code. <?php$x->printTable(); try <?php $x->printTable();

          P Offline
          P Offline
          polluks
          wrote on last edited by
          #4

          I can't understand the question/problem, but the cjoki is right. You must format the code more clearly and carefully. There isn't white space betwen <?php$x->printTable(); ...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups