PravinS
-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Posts posted by PravinS
-
-
-
-
Enable error_reporting(E_ALL) for PHP errors and let see what happens.
-
Try this
$array_search = array('<td>','</td>','<tr>','</tr>'); $array_replace = array('','','',''); $str = str_replace($array_search,$array_replace,$str);
-
-
As this code is not in form, so "this.form" will not work, instead of it assign "id" attribute to radio button and use javascript "document.getElementById" function to check the radio button.
-
Remove "%" from LIKE statement, search only pageid like e.g. "LIKE '$pageid'" in WHERE clause of SELECT query
-
Use
"$stmt->affected_rows" or "$stmt->num_rows"
instead of
"$mysqli->affected_rows"
-
remove "$" from $phone, it should be like "$this->phone" not like "$this->$phone"
-
you need to check user login status on every page and if it is inactive just destroy the session of logged in user.
-
Set alt,title attribute for image tag
Like:
echo "<img src='".$showimage."' height='200px' width='133px' alt='SAMPLE TEXT'/>"; OR echo "<img src='".$showimage."' height='200px' width='133px' title='SAMPLE TEXT'/>";
or you can download some javascript tooltip script and apply it to image tag.
-
Try using PHP "array_intersect()" function.
-
Rather than creating you own CMS, use open source CMS like Joomla, Wordpress etc.
-
try..
<?php include('../header.php'); include('../menu.php'); ?>
-
try using array_push()
-
Try using PHP "array_merge_recursive" function
-
No need to use "CONVERT", just use "ORDER BY datetime". Also if possible change the field name "datetime" as it is reserved word
-
You are checking USERNAME and PASSWORD both in SELECT query. I think you should check only USERNAME in database.
-
-
what error you are getting, generally shell_exec() command is disabled on servers.
-
"where" is reserved word in MySQL which is used as field name in your INSERT query, it may be giving problem, so change the field name or use "`" (back tick) to enclose field name in query
may this will help you
-
You can disable error reporting NOTICE in PHP.INI configuration file.
-
Remove "AND WHERE", just use "AND"
-
put this at the end of the page
<script language="javascript" type="text/javascript">changeButton('basic');</script>
alphabetical pagination a to z
in PHP Coding Help
Posted
This will help you