![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
PravinS
-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Posts posted by PravinS
-
-
check your SQL queries, also use only mysql or mysqli
-
search this line
while($linhaRetorno == mysql_fetch_array($qrRetorno))
you have used "==" instead of "="
-
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
-
try this
<?php print $_SESSION[$question_ids[$_SESSION['question_pointer']]; ?>
-
use TUNCATE tablename
or you can just export database structure and restore back overwriting the old database
do take backup of your old database
-
you cannot compare dates in "Y-m-d" format, you need to convert it into timestamp format, use mktime() function
-
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
-
just add <br> tag in between
-
-
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
-
you have used underscore (_) in variable ($_txtstudentid) of SQL query and at top you have not used underscore
-
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; }
-
if you are not going to reload the page then you can use meta refresh tag in iframe source page
-
each form should have its own submit button and every form should have close tag
-
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>';
-
-
Thanks for your reply
-
Hi,
from few weeks I am getting "Sorry, no new content found." whenever I go to "View New Content" link
-
try using utf8_decode() function
-
if you want to send mails to more than 100 emails ids then your mail code should be in while loop
-
its correct
-
have u retarted the apache server after doing changes in php.ini file
-
you can use TCPDF php library
using TCPDF library you can directly create PDF of HTML
-
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()
Warning: mysql_query() expects parameter 2 to be resource, object given in F:\xampp\htdocs\taranaki2.php on line 69
in PHP Coding Help
Posted
you are mixing mysqli and mysql functions
if you use "mysql_connect" then you need to use "mysql_select_db" to connect the database