Jump to content

art15

Members
  • Posts

    50
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

art15's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks for your reply. I just don't want to LIMIT it to 4. When the output result has 40 rows. I want to split it into chunks of 4. so instead of one variable say $total displaying all the 40 rows. I want $total1 to be first group having 4 values, $total2 having next 4 and so on.. I belive it should be an array. Thanks
  2. Hi, When I fetch the result from mysql, it gives me the result of all the rows. what I want is to group the output of mysql into group of 4. eg output of $new into a group of 4; $sSQL="select something from table something between a and b;"; $result=mysql_query($sSQL) or die('Error, cannot retrieve the information'); while($rs=mysql_fetch_row($result)){ echo $new=$rs[0]."<br>"; } Thanks
  3. You got it right LittleGuy.
  4. Sorry guys for making such long sentence. Let me break it. If I want the php script to modify the file date automatically how do I do it? If it changes the date can I create a random function to modify the date in a specific range? Thanks
  5. Can anyone suggest how I can achieve this? If I have 10 php pages in my website and If I want a php script which can change the file date automatically in a range i specify if its last modify date is greater than 10 days? Thanks
  6. Hi Guys, I need help setting up the rss feed on my website so that I can allow other users to use something like <script language="JavaScript" src="http://mysite/rss.php"></script> to do an include. what changes do I need to make for this. Is it to do with .htaccess file? Thanks
  7. Hi, I have a php script which is formatted to work as a rss feed file. I am able to include this feed file on my other website using one include file which has a class and other .rat file which is a template file. This works for me, however if I want to allow a webmaster to put this feed on his website by using some simple one line code technique such as: <script type="text/javascript" src="http://www.freshcontent.net/freebies_news_feed.php"></script> How do I do this? Thanks
  8. Hi, If I have a website for example www.abc.com and it has its own database and tables. I have another website www.xyz.com. if I want to access the tables from abc.com on xyz.com. How do I do this? Thanks
  9. I have an RSS script which is reading the information from the database, the script declares the header at the start of the document which looks like this: header("Content-Type: text/xml"); If I have this line in my document, I get the error as XML Parsing Error: xml declaration not at start of external entity Location: http://www.abc.com/rss.php Line Number 2, Column 1:<?xml version="1.0"?> ^ If I comment this line, the script pulls up the information correctly but then it is not formatted correctly and is not being read by rss reader when you open it. I have been trying to fix it but has no luck Thanks.
  10. Hi, I have a drop down box which allows user to navigate through pages <form name="visit" style="font-size: 9pt;"> <select name="selectname" SIZE="1" onChange="change()"> <option value="">Change Page</option> <option value="index.php"> Home Page</option> <option value="page2.php">News</option> <option value="page3.php">Rss</option> </select> </form> <script language="JavaScript"> function change() { var url = document.visit.selectname.options[document.visit.selectname.selectedIndex].value window.location.href = url } </script> The page switches perfectly, however once you reach the page selected, the drop down says "change page". i would like it to say the option selected like if user selects Rss it should say Rss. Any ideas?
  11. Hi All, If in php file, I need to have a variable printed <?php print $username; ?> where $username="User Name", is it that using <?php print $username; ?> consume more memory. Instead if I just write "User Name" on my php page without using a variable file to store the $username variable and using that variable file to echo the string User Name.? Thanks
  12. Hi Guys, This is something new to me. I need to setup videos on my site. I have got the ffmpeg php extension loaded on my server. Now I am not able to get the start point on how do I get the videos to works. Can anyone guide me on how do work this out? Is there any reading which can get the videos work on my website? Any help will be appreciated. Thanks.
  13. Hi, You can try checking the checkbox value. not assocaiate the name with the if condition. let the name be as it is but value="if( condition) checked) Thanks
  14. Thanks for the quick reply.
  15. Hi Does it matter the order of include files in php. for eg if I have 5 included files, at the start of the page. say 1.php, 2.php, 3 and so on.. Is it that php will include the stuff from 1.php first as it first in order and try to include the stuff from that file first and then it will go to 2.php? Also does more number of includes slows the processing? Thanks.
×
×
  • 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.