Search results

  1. R

    PHP/MySQL query. Table header should not loop. Please help?

    I have this PHP/MySQL query that works. but it loops the heading of the table for each result. I would like the table heading to appear only once. Can someone help // books start $get_books_sql = "SELECT * FROM books where course_id = '$course_id' AND year = $year"; $get_books =...
  2. R

    Text area does not accept changes. PHP MySQL.?

    I have a text area on a small web application i am working on. When i paste values in the text area and save it, the save does not work i.e. the data is not sent to the database. However when i type and hit save it works. Can anyone please help. I tried it on firefox and IE. I am using PHP and MySQL
  3. R

    Please help me use the PHP str_replace function in a dynamic dropdown?

    Can someone please help me to adding the str_replace function in this short piece of code to the query that creates the drop down below. I have been pulling my hair out over this. I keep getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' with...
  4. R

    Please help me use the PHP str_replace function in a dynamic dropdown?

    Can someone please help me to adding the str_replace function in this short piece of code to the query that creates the drop down below. I have been pulling my hair out over this. I keep getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' with...
  5. R

    Please help me use the PHP str_replace function in a dynamic dropdown?

    Can someone please help me to adding the str_replace function in this short piece of code to the query that creates the drop down below. I have been pulling my hair out over this. I keep getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' with...
  6. R

    Please help me use the PHP str_replace function in a dynamic dropdown?

    Can someone please help me to adding the str_replace function in this short piece of code to the query that creates the drop down below. I have been pulling my hair out over this. I keep getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' with...
  7. R

    Why does a php/mysql query that creates a drop down separate option values?

    Hello guys... I have a query that i hope you can look at. Its a query that creates a drop down menu based on the contents of a table column. It seems to work but if the the contents of the field the table gets broken up on. this is the html that is produced. Thanks if anyone can help...
  8. R

    Why wont my PHP script update the database record?

    My Php script will not update my database. it reads the database just fine. BUt it does not post updates. Please help. I am pulling my hair out. <?php session_start(); include('dbconnect_main.php'); ?> <?php session_start(); // get course id and year $id =...
  9. R

    Why wont my PHP script update the database record?

    My Php script will not update my database. it reads the database just fine. BUt it does not post updates. Please help. I am pulling my hair out. <?php session_start(); include('dbconnect_main.php'); ?> <?php session_start(); // get course id and year $id =...
  10. R

    PHP Error message Fatal error: Call to undefined method DB_Error::numRows()?

    I am getting this error message... can anyone please help... please Fatal error: Call to undefined method DB_Error::numRows() in file.php on line 173 $queryx = "SELECT * FROM students WHERE year = $year ORDER BY ".$_SESSION['sort']; $result = $database->query($queryx); Line 173 =>...
  11. R

    PHP Error message Fatal error: Call to undefined method DB_Error::numRows()?

    I am getting this error message... can anyone please help... please Fatal error: Call to undefined method DB_Error::numRows() in file.php on line 173 $queryx = "SELECT * FROM students WHERE year = $year ORDER BY ".$_SESSION['sort']; $result = $database->query($queryx); Line 173 =>...
  12. R

    Creating a table from a PHP query?

    I am trying to display the results of a query in the form of a table. this it the PHP that i am using below. The problem is that the headings of the table repeats. I really don't want that... I am also trying to get a border around the cells of the table, but i get an error when i add table...
  13. R

    in want to display PHP query results in a table?

    I am trying to display the results of a query in the form of a table. this it the PHP that i am using below. The problem is that the headings of the table repeats. I really don't want that... I am also trying to get a border around the cells of the table, but i get an error when i add table...
Back
Top