Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by PravinS

  1. you are mixing mysqli and mysql functions if you use "mysql_connect" then you need to use "mysql_select_db" to connect the database
  2. search this line while($linhaRetorno == mysql_fetch_array($qrRetorno)) you have used "==" instead of "="
  3. try using this div.scroll { width:405px; max-height:550px; overflow-y:auto; overflow-x:hidden; } it will work as, its maximum height is 550 and after that vertical scroll bar will come
  4. try this <?php print $_SESSION[$question_ids[$_SESSION['question_pointer']]; ?>
  5. use TUNCATE tablename or you can just export database structure and restore back overwriting the old database do take backup of your old database
  6. you cannot compare dates in "Y-m-d" format, you need to convert it into timestamp format, use mktime() function
  7. try using GROUP BY clause like this SELECT course.courseTitle, COUNT(DISTINCT student.sex) FROM course, student WHERE student.sex = 'f' GROUP BY course.courseTitle
  8. check this http://www.php-guru.in/2013/import-csv-data-to-mysql-using-php/
  9. use MySQL replace function in query like this UPDATE Pic SET Place_id = REPLACE(Place_id, '#', '') also do take table backup before doing mass update
  10. you have used underscore (_) in variable ($_txtstudentid) of SQL query and at top you have not used underscore
  11. try using this function function sort_array($array, $key, $order) { if ($order=="DESC") $or="arsort"; else $or="asort"; for ($i = 0; $i < sizeof($array); $i++) { $sort_values[$i] = $array[$i][$key]; } $or($sort_values); reset ($sort_values); while (list ($arr_key, $arr_val) = each ($sort_values)) { $sorted_arr[] = $array[$arr_key]; } return $sorted_arr; }
  12. if you are not going to reload the page then you can use meta refresh tag in iframe source page
  13. each form should have its own submit button and every form should have close tag
  14. Try replacing while loop using below code $i = 1; echo '<tr>'; while($row = $ret->fetchArray(SQLITE3_ASSOC) ) { echo '<td>' .$row['Domain'].'</td><td><input type="checkbox" name="a[]" value="n"></td>'; if ($i % 5 == 0) echo '</tr><tr>'; $i++; } echo '</tr>';
  15. Check codeigniter http://ellislab.com/codeigniter User guide http://ellislab.com/codeigniter/user-guide/
  16. Hi, from few weeks I am getting "Sorry, no new content found." whenever I go to "View New Content" link
  17. if you want to send mails to more than 100 emails ids then your mail code should be in while loop
  18. have u retarted the apache server after doing changes in php.ini file
  19. you can use TCPDF php library using TCPDF library you can directly create PDF of HTML
  20. what is your logout.php page script, you may have used session_destroy(), it will destroy all your registered sessions instead of session_destroy() use Unset()
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.