User Profile
Collapse
-
I have a normal pagination code which shows 10 listings per page and the latest added listings are shown first. now instead of showing the latest listings first, need to show listings that are randomly picked or as described by dlite922. Thanks for your interest in this.... -
-
Rotational view of paginated listings Reply to Thread
Hi dlite922,
First i am thankful to you for providing me with two types of solution.
The first one using RAND mysql option, it surely selects listings randomly. But when you use it in pagination each time it will selects listings randomly. i.e. when the user clicks on the 2nd page it will infact select 10 random listings, so the user will not be viewing the...Leave a comment:
-
Rotational view of paginated listings
I need to change an existing listings page with pagination.
Each page shows 10 listings and they are ordered by the date they are added to the site.
Now recently added listings show up in the first page. I need to get all the listings to come on the first page by rotating the showing of listings perhabs each day (each page should only show 10 listings).
Thus first day showing first 10 listings in the first page... -
Thanks Markus for providing the code. But the snippet didn't work for me. when I removed the .php extension from the filename the page did not come up.
But I think I can try my hand with what you have provided.
Thank you very much!...Leave a comment:
-
How to remove .php extension from URL
Hi
I need to remove the .php extension using .htaccess from my URL.
I have tried different .htaccess code by searching in the net but none is fruitful..
I have the least idea about regular expressions. can anyone please help?
my URL is
http:///www.domainname.com/projectna...p/region/state
here region and state are dynamically changing... and i want to remove .php from ... -
There were a ads section that was placed on several pages, once I removed the ads section, I did not get the internal server anymore. But I still had to check over 1 or 2 days to confirm, If exactly it was the problem with the ads (1 or more ads)
Thank you very much for all your responses
samatairLeave a comment:
-
The error is coming nearly on all the pages. After I get an Internal Server Error, I get the same page exactly right without problems by refreshing the page. The error doesn't occur very frequently but at times which is troublesome.Leave a comment:
-
I had checked with the website for errors in SQL statements but they are fine. I had really no idea about the error log. If any error is pointed out in the php scripts I can correct it. Or if there is a problem with the apache server configuration, I can ask the server people to configure it.
Please let me know if you know more details.
Thanks for responding......Leave a comment:
-
help with error log
I am PHP developer working on a website where we receive 500 Internal Server Error. I requested the apache error logs. I could see the following after the execution of php script file.
Error Log Details
Code:[warn] (2)No such file or directory: mod_mime: analyze_ct: cannot get media type from 'x-mapp-php4' [warn] mod_mime: analyze_ct: cannot get media type from 'x-mapp-php4'
Code:[suexec
-
Thank you Xaxis, I had followed the same thing, set the Error Reporting and cleared out all the warning and notices. But still I got the HTTP Error 500. So I had asked for the Server Error Logs from my hosting provider and waiting for their reply.
Thanks once again!...Leave a comment:
-
syntax errors
Hi All,
I am working in an old website developed many years ago using PHP.
My job is to add some features and additions and bug fixing.
So far it's fine. Now the website faces the problem of
500 Internal error.
I had reported to the hosting company.
They said when they checked the site it's working fine.
and also suggested to check the "File Permissions" and look for any... -
The total size of all the image files I had uploaded was 1.5 MB.Leave a comment:
-
Image Upload
Hi
I have being working on a form.
The form allows 5 image files to be uploaded with other user details.
All the 5 image files are uploaded at the same time (with a single submit button click).
The uploaded images are resized to thumbnails 120x120 version and 600x400 version.
Maximum 1 MB size image files are allowed to upload.
I have tested with this in my local server using XAMPP for Windows and... -
solved
Great! mwasif's query worked fine. Thank you very much.
Thank you too Atli for the follow up and suggestions.
You both were so helpful.
Thanks once again!Leave a comment:
-
Thank you Atli. But it also gives
Error:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1Leave a comment:
-
I think your solution might work. But I have to check it. Thank you very much MarkusLeave a comment:
-
Yes, I have stored the Last Login date and time. So should I use a Cron or a Schedule Job to run a code with every 30 mins to check and update the user status?Leave a comment:
-
Login Logout status maintenance
I am using sessions to maintain login/logout status. I update the table when a user logs in and logs out. But some users don't logout. How to automatically log them out and update the status.
I had used the meta tag to refresh the page after 20 mins, so if the page is kept opened it automatically logs out the user after 20 mins. But it's not providing me results which I expect. Please anyone let me know, how to do this?
Thanks... -
SQL - work around
[code=mysql]UPDATE users set user_type='CLIE NT' where user_id in (SELECT user_id FROM clients)[/code]
The above query is not working with MYSQL version 4.xx, is there a work around for this.
No activity results to display
Show More
Leave a comment: