ranjuvs
Members-
Posts
135 -
Joined
-
Last visited
Never
Everything posted by ranjuvs
-
ho! change this is_dir($filename) to is_file($filename). you are checking for files right!
-
see whether the path assigned to $resource_path is valid and whether it contains files other than '.' and '..'
-
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>"; } }
-
What about this <?php if(isset($_GET['vyb3'])){ $vyb3=$_GET['vyb3']; $filename = $vyb3 . '.php'; if(file_exists($filename)) { include($filename); } }
-
Please try this <?php $allowed = array(); while($row_pages = mysql_fetch_array($result_pages)) { $pages = $row_pages['pages']; array_push($allowed, $pages); } ?>
-
no you need to loop using the posted value
-
[SOLVED] I have a problem, could use some advice.
ranjuvs replied to vetman's topic in PHP Coding Help
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'"; ?> -
You need to loop the Update query for each items selected. Now it does only for the first item. Regards Ranju
-
I didn't understand this part - "But i want to system time when select timezone." Can you make it clear
-
Like this $newVar = clean_field($var1, $no1); print $newVar; The function is returning a value. You can assign the same to the new variable.
-
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.
-
can you please post your code here
-
can you please post your code
-
I didn't understand your problem. can you please make it clear for me
-
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.
-
[SOLVED] how to send variable through link
ranjuvs replied to phplearner2008's topic in PHP Coding Help
Try this <a href = "http://localhost/mypage.php?id="<?php print $id ?>>MyPage</a> -
Hi rocksolid, See below my my environment Apache : 2.2 PHP : 5.2.4 OS : Windows XP
-
I don't find any problem. The same code is working fine for me!!!
-
Invalid link resource - CANT SEE WHY AND ITS REALLY BUGGING ME!
ranjuvs replied to ukweb's topic in PHP Coding Help
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) -
500 server error when using function in my index.php
ranjuvs replied to mediakonsult's topic in PHP Coding Help
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. -
a bit rusty with my PHP - need help with fopen
ranjuvs replied to simcoweb's topic in PHP Coding Help
foreach works with arrays. in this case fread returns a string or FALSE -
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
-
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.
-
which database r u using?
-
[SOLVED] Echo returned variable from function
ranjuvs replied to adam291086's topic in PHP Coding Help
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