Quantcast
Channel: PHP Freaks: PHP Help
Browsing all 13200 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Shopping cart problem

Hi there,   I have a problem with my site www.lifetimewoodtreatment.co.uk      For some reason the products are not being added to the cart. I've looked at all the files and dont know where the problem...

View Article


Checkboxes

I am designing a voting webpage where in users can choose multiple values and all are submitted to a mysql database. I am using checkboxes. I can get one value to go in great, but its the mutiple value...

View Article


expects parameter 1 to be resource, boolean given

I have been doing this all by myself. I have tried to only look for help when I can't find a possible fix, but I am getting very frustrated now. I have spent like an hour trying to figure out why this...

View Article

Email Photos From Website

Hi, i have a catalog that display 6 pictures in every item.. sometimes i need to send a specific photho from the item very quickly.. but i cant i tried everthing.. the process that i do is download the...

View Article

Creating folders

Ok I have made a script that creates some folders and adds some files to them folders, the scrip successfully does this although I can write to the folder /var/www/users/"username"/photos/original/ but...

View Article


create dynamic php page title?

Hi friends, I want to make my website's product-detail pages title dynamic. so help me how can i create this in php. please share your  suggestion. thanks.  

View Article

Session Variables - Is there a smarter way to do this?

Im passing form values over to a confirmation page where Im setting session variables in order to allow the user to "go back" if they wish, to ammend their previous entries.   I just wanted to...

View Article

Paging of Large db advise needed

I have a DB with 400 000+ entries and am trying to split it into 10 entries per page...   My usual paging for smaller DB rows are working fine with no loading issues. Just with the large table (with...

View Article


Need some help using the QueryString to allow users to further filter data in...

so I built a simple grid that loads data based on params sent via the querystring.  I'm using the same backend for both a Simple Search and Advanced Search.   What I happend is a Search for Last Name...

View Article


Remove null values from database

Hi.  I was curious if anyone had any other methods of removing those NULL rows in a database table.  If you don't use auto increment primary key for your database table then you don't have this...

View Article

preg_match returns Notice: Undefined offset

I understand the problem, but I do not know how to fix this.     I am using preg_match function here: function youtube_id_from_url($link) { $pattern = '%^# Match any youtube URL (?:https?://)? #...

View Article

Image may be NSFW.
Clik here to view.

How to refresh page using Submit and PHP

Hello friends.   I am have a search bar that displays results from my DB   How do I refresh the page (e.i, index.php) and add the info to a search bar when the user clicks SUBMIT   note: I do not want...

View Article

prepared query join problems.

Good evening,   I am trying to create a user profile system on my website. I have the ability to register and login fine. I've hard coded a dummy profile into the profiles table.   The way in which I...

View Article


Echoing every mysql result, not just the one...

I'm having a few troubles.    When I run the first query below in phpmyadmin, i receive six results.   However when I run the code below $info_msg is only echoed once, whereas I was expecting it to be...

View Article

unexpected T_VATRIABLE

Hi Guys   I have checked the code over and over and have probably become word blind at the moment, I am getting an error saying   Parse error syntax error, unexpected T_VARIABLE in...

View Article


How to add search tool to a pagination php script

My php page is Pagination style with a few pages   Is a possible to add a search bar to pagination website?   How do I carry the search term over in the address bar w/ pagination?

View Article

What is the problem with my WHILE loop?

I have created this WHILE loop inside a javascript function to pull a range of data from corresponding mysql records.   It is supposed to grab the year header and range of values from 2005-2020 from...

View Article


Search page not working properly

Hi I have a search page that is not working. Can anyone tell me how I can fix my code below to make it work? Thank You <?php require_once "../db/connect.php"; // make link here $link =...

View Article

Code won't update database

I created a script that is supposed to update some values in a database. However, it won't change anything. This is my code://Edit article mysql_query("UPDATE articles WHERE artnum=\"".$_POST['ID']."\"...

View Article

[Joomla] Problem when calling this function

Hello; I have a portion of code that work outside a function, but when i include it inside a function it didn't work. I don't know why? Certainly i am missing something but i could see it. If someone...

View Article
Browsing all 13200 articles
Browse latest View live