PravinS
Members-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Everything posted by PravinS
-
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>';
-
is there any tool for curl scripiting............plz advice.........
PravinS replied to ShivaGupta's topic in PHP Coding Help
get one from here http://www.phpclasses.org/search.html?words=curl&x=-421&y=-163&go_search=1 -
how to inclued more then 10 php file .........in a main php.......?
PravinS replied to ShivaGupta's topic in PHP Coding Help
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
-
Refer this url: http://www.phpclasses.org/package/5927-PHP-Display-an-hierarchic-menu-stored-in-a-MySQL-table.html
-
mysql_fetch_array() expects parameter 1 to be resource, boolean is given
PravinS replied to SK1990's topic in MySQL Help
what version of php you are using -
mysql_fetch_array() expects parameter 1 to be resource, boolean is given
PravinS replied to SK1990's topic in MySQL Help
echo the query and execute it in MySQL and check the result -
mysql_fetch_array() expects parameter 1 to be resource, boolean is given
PravinS replied to SK1990's topic in MySQL Help
SQL syntax is fine, but check the table name, field names etc. -
mysql_fetch_array() expects parameter 1 to be resource, boolean is given
PravinS replied to SK1990's topic in MySQL Help
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
-
Creating links to files in a directory recursively
PravinS replied to sf_guy's topic in PHP Coding Help
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
-
So you can use FTP php script. Just create single FTP account and use your above code for uploading, but do take security measures.
-
According to you requirement don't use FTP upload script, you can use simple PHP uploading functions like copy, move_uploaded_file etc. to upload files. refer : http://www.w3schools.com/php/php_file_upload.asp
-
What exactly your requirement? If you want to upload/download multiple files from your local machine to server or server to local machine, you can use any FTP client like FILE ZILA, CUTEFTP etc.
-
Please check this lines $connection_id = ftp_connect($ftp_server); $login_result = ftp_login($connection__id, $username, $password); variable name $connection_id in second line has tow under scores(__) also update this lines as if ((!$connection_id) || (!$login_result)){ die ("No FTP-Conection established!<br>Connection with FTP-Server as user ".$username." not possible!");
-
Updating table record where field name is "AS"
PravinS replied to pioneerx01's topic in PHP Coding Help
As "AS" is reserved word in MySQL, so may not be updating the record and also not giving any error as sql syntax is correct. Try using this query mysql_query("UPDATE registrations SET `AS` = '9' WHERE `ID` = '123' "); -
how to php variable value assign as java script
PravinS replied to noahwilson's topic in PHP Coding Help
Use like this <script language="javascript" type="text/javascript"> var id = '<?php echo $id; ?>'; </script>