
PravinS
-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Posts posted by PravinS
-
-
use any php mailer class, you can check this url
http://www.phpclasses.org/search.html?words=php+mailer&x=-421&y=-163&go_search=1
-
Try using this this headers
$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: \"ClairVision Network\" <\"[email protected]\">\r\n";
-
According to XML you will get values like this
$data = "http://www.mesquiteweather.net/xml/mesquite.xml"; $xml = simplexml_load_file($data); $fname = $xml->fname; $lname = $xml->lname; $location = $xml->location; $report = $xml->report; $description = $xml->description;
-
Try this
$result = str_replace(substr($word,1,1),ucfirst(substr($word,1,1)),$word);
-
Please check your MySQL query
-
Add semicolon(
on lines
echo $query
echo $result
echo $views
-
$queryreport = mysql_query("SELECT post_time_dif FROM response WHERE profile_id = '$id'"); $post_time_dif_tot = 0; while($row = mysql_fetch_array($queryreport)){ $post_time_dif = $row['post_time_dif']; $post_time_dif_tot += $post_time_dif; }
set zero value to $post_time_dif_tot variable above while loop or try above code or else you can disable notice errors from php.ini file
-
Try using "array_merge" and "array_merge_recursive" php functions
-
There are number of CMS in php like joomla,drupal etc, they provide all tutorials and documentations. You can visit there site.
-
If you want to post any data from "index.php" to "print.html.php", then you need to submit your index page to print page, for that you can dynamically change form action to print page using javascript and submit that form.
may this will help you
-
First change type of print button from submit to button(i.e. type="button"). And add javascript onclick event on that button i.e.
<input type="submit" value="Print" name="print" onclick="javascript: window.location='print.html.php';">
-
Use MIN function in mysql to fetch least amount
Refer: http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_min
-
Try this
$mail->Body = '<span style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px">'.$text.'</span>';
-
-
create on common file and include all files in this common file, then include this common file in you main php or any other files
-
yes using .htaccess (RewriteRule) you can set urls according to your requirement
-
-
what version of php you are using
-
echo the query and execute it in MySQL and check the result
-
SQL syntax is fine, but check the table name, field names etc.
-
Please check your SQL query
-
Using query string, you need to use key=value way of passing values like
<td width="33%" align="left"> <?php if ($result==1) header("Location: import1.php?imagename=$imagename"); ?></td>
and in import1.php page you need to get the value using GET method like this
$imagename = $_GET['imagename']; echo "the filename is " . $imagename;
may this will help you
-
try using urlencode() and urldecode() functions for the links
-
Please check the server configuration and also check that FTP functions are enabled on web server
syntax error - unexpected }
in PHP Coding Help
Posted · Edited by PravinS
your semicolon ( ; ) is after curly bracket ( } ), bracket should be after semicolon