Jump to content

daxguy

Members
  • Posts

    62
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

daxguy's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello Everyone I have been looking over the internet for a few hours now. But I could not find solution to my problem. I am having trouble changing the default view of the products being displayed in the shop page. They are like thumbnails, I can change how many of them will appear on a line or on a page. But I want to change the view to list. I want a list of products to appear with the add to cart button. I am sending a link as an example to how i actually want it to be http://abduls.biz/shop/
  2. I am having trouble posting a script using my html form.. If i remove functions like mysql_real_escape_string() or htmlentities() the query execution gives error like characters ' or " are causing problems, I want to post a script with <script>code</script> in the field and want it working on the html page as it is coded on an html page.. Can anyone help? This is the input field Description</b></td><td><textarea name="news_des" cols="50" rows="7"> extracting the information if(!empty($_POST['news_des'])) { $news_des = mysql_real_escape_string(trim(htmlentities($_POST['news_des']))); // to get tags along }else { $error[] = 'You forgot to enter the News Description!'; }
  3. I have a search box which uses multiple query depending on the search criteria the following queries work just fine select * from `car_post` where `approve` = '1' and `caru_city` = '2' select * from `car_post` where `approve` = '1' and `caru_make` = '7' and `caru_city` = '2' These queries mentioned above work just fine.. but i want the results to show the latest entries in the table so write the query as select * from `car_post` where `approve` = '1' and `caru_make` = '7' and `caru_city` = '2' ORDER BY caru_id DESC This query works perfectly fine in the SQL client.. it gives the results there... but as i am using it on my page.. by just adding ORDER BY caru_id DESC The query gives the following error 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 'DESCLIMIT 0, 10' at line 1 I dont understand if the query is working all fine in the sql client directly why isnt it working here?
  4. Thanks for your replies.. i loved the function given out here it works just fine wid me.. what rule should i be using in .htaccess file to rewrite the following link I am able to make seo friendly urls using the functions.. how shud i implement it now on the website http://uaecarmarket....e_car.php?id=57 to http://uaecarmarket....-2007-For-Sale/
  5. I have no clue of working with mode_rewrite().. what should be the rule in the .htaccess file for converting this url to url of my post title i am adding the url here which i want to convert http://uaecarmarket.org/read_news.php?id=30 i want to change this url to my post title.. how shud i do that for instance my post title is present in $post_title? can anyone help
  6. I was wondering how can I create clean urls using PHP. Can someone explain this to me in laymans terms? Here is my current url a element link and how it looks in the browser http://www.example.com/members/1/posts/page.php?aid=123 But I want it to read the pages title. http://www.example.com/members/1/posts/title-of-current-page/
  7. Hello, I have a small issue i am using a facebook login script that allows users to log into the website with there facebook user account. I want to extract information regarding the user and feed it directly to my database like there name, sex, address etc from there facebook account. I am attaching the facebook script that i am using to this post. can any help me or give me suggestions on how to do that? facebook_script.php-5Dec-2012.php
×
×
  • 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.