Jump to content

ranjuvs

Members
  • Posts

    135
  • Joined

  • Last visited

    Never

Everything posted by ranjuvs

  1. ho! change this is_dir($filename) to is_file($filename). you are checking for files right!
  2. see whether the path assigned to $resource_path is valid and whether it contains files other than '.' and '..'
  3. is this what you are trying $qry1="select * from product_table"; $result1 = mysql_query($qry1); if(mysql_num_rows($result1)>0) { while($row1=mysql_fetch_array($result1)) { echo "<table border=1 bgcolor=#ffddee>"; echo "<tr>"; echo "<td width=148>Image</td><td width=148>prod_name</td<td width=148>description</td><td width=148>cut outprice</td><td width=148>price</td>"; echo "</tr>"; echo "<tr>"; echo "<td width=125>" . "<img width=116 height=117 src='admin/uploads/" . $row1['image'] . "'/>" . "</td>"; echo "<td valign=top width=125>". $row1['product_name'] . "</td>"; echo "<td valign=top>". $row1['description'] . "</td>"; echo "<td valign=top class=cut>". $row1['cutout_price'] . "</td>"; echo "<td valign=top>". $row1['price'] . "</td>"; echo "</tr>"; echo "</table>"; } }
  4. What about this <?php if(isset($_GET['vyb3'])){ $vyb3=$_GET['vyb3']; $filename = $vyb3 . '.php'; if(file_exists($filename)) { include($filename); } }
  5. Please try this <?php $allowed = array(); while($row_pages = mysql_fetch_array($result_pages)) { $pages = $row_pages['pages']; array_push($allowed, $pages); } ?>
  6. no you need to loop using the posted value
  7. In the update page you need to include the code below <?php $getId = $_POST['id']; $getName = $_POST['name']; $getLastname = $_POST['lastname']; $sql = "UPDATE example SET name='$getName', lastname='$getLastname', email='$email' WHERE id ='$getId'"; ?>
  8. You need to loop the Update query for each items selected. Now it does only for the first item. Regards Ranju
  9. I didn't understand this part - "But i want to system time when select timezone." Can you make it clear
  10. Like this $newVar = clean_field($var1, $no1); print $newVar; The function is returning a value. You can assign the same to the new variable.
  11. This won't work as you are setting the time zone in a different page. For this to work you need to set it on the top of every page or in the configuration file which is included in every file. Try to put the code putenv("TZ=America/Santiago"); on top of your page and try to print the same. the shell command you are using is of no use. It just builds a link to the file specified.
  12. I didn't understand your problem. can you please make it clear for me
  13. I don't know what you are trying to do with shell command just adding the command putenv("TZ=Asia/Hong_Kong"); at the top of the page will work fine. May be you could save the part "TZ=Asia/Hong_Kong" in session if you need to assign different time zones for different user.
  14. Try this <a href = "http://localhost/mypage.php?id="<?php print $id ?>>MyPage</a>
  15. Hi rocksolid, See below my my environment Apache : 2.2 PHP : 5.2.4 OS : Windows XP
  16. I don't find any problem. The same code is working fine for me!!!
  17. You called the function mysql_select_db($database_sql, $sql); inside a function and hence can't access the variables declared outside. Either you have to pass the variables "$database_sql" and "$sql" to the function. (I guess you are not using classes)
  18. Your Web server encountered an unexpected condition that prevented it from fulfilling the request by the client for access to the requested URL. This is a 'catch-all' error generated by your Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 error notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of your Web server site to locate and analyse these logs. Resolving 500 errors - general This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of your Web server site to locate and analyse the logs which should give further information about the error.
  19. foreach works with arrays. in this case fread returns a string or FALSE
  20. Print out and see what is the valu for $row["PROPERTY_IMAGE"] and check whether its a valid path and file. Also see whether the file has the required permissions
  21. Use cron job. Write a script which checks the date and if required send a mail. Set this script as a cron job which runs everyday or every week or every month.
  22. You have to do like this $image = $add ->get_template($domain,$account); echo $image; what you are doing is assigning the $add object to $image variable
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.