mandaksk
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by mandaksk
-
-
$str="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15";$sql=mysql_query('select email from table where recid in ($str)');while($row=mysql_row($sql)){ mail($sql['emailid'].......);}
-
Login Problem
in PHP
You are checking the $user and $pass without assigning any values to them in condition 1, and 2. Put these lines before and outside the conditions.<?php$user = $_POST['user'];$pass = $_POST['pass'];if(!isset($user)||!isset($pass)){echo "error1";.....?>
-
As a security measure, documents on server are not allowed to be changed by viewers. Only FTP users are allowed to change it.If you really want to make people change the contents, ask them to download, change it and upload the file. Then you replace the existing file with the new one.
-
XML PArser
in PHP
Your xml contains 2 root nodes which is giving the strange result. As per my knowledge there should be only one root node. A simple suggestion is to put it like this.<tag><tagA>...</tagA><tagB>...</tagB></tag>Also PHP will recognize only one root node and not more. Hope you got clarified.-Krishna Srikanthhttp://www.krishnasrikanth.com
-
Hi,Don't try to put entire page content in database. Then you have to go into database every time you need to make a spelling correction or so. Instead divide the content into different php or html pages and include them dynamically. Put the common content in one page, and dynamic contents in different pages. Call them something like this.<html>..... some common code like headings, banners, ads etc...<?phpinclude($_REQUEST['info'].'.php');?><!-- Navigation --><a href="whatever.php?info=computers">Computers</a><a href="whatever.php?info=health">Health</a></body></html>Also database connections are precious as they effect the script execution time. So use database only for "mission critical" things like meta data, user id and passwords, forum messages etc.- Krishna Srikanthhttp://www.krishnasrikanth.com
XML PArser
in PHP
Posted