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

Restrict form submission for n times

Hi, Suppose I have a form where I am accepting mobile number from users and showing such as show.php?m=9999999999   Now what I want is that any person / visitor can submit form or go to above URL with...

View Article


Image may be NSFW.
Clik here to view.

Preselecting checkboxes based on values in database...

Alright so I got one last issue here as it relates to my project....I have a main standards table. I also have several tables like assets, substrates, organizations, etc. For each standard, several...

View Article


Creating links to pages based on directory contents

Hello everyone,   I am new to this forum (and php!) and searching for a solution to some functionality I am trying to implement.   For our company intranet, our HR department has requested the ability...

View Article

Image may be NSFW.
Clik here to view.

Advanced search engine - Simple Matrimonial

I have a database call Profile. In this database i have several fields.   Name Gender  DOB Language   My requirement is advanced search form for homepage. in this search we should able to sort...

View Article

Help with User Login on index.php includes

Hi All   I developed a site using PHP & a MYSQL database. From the off I structured the site by routing everything through index.php. This way the page shell (banner, navigation etc) is always...

View Article


Image may be NSFW.
Clik here to view.

mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given

Hey all. First I want to say that I'm very amateur when it comes to coding. Most of what I know has been self-taught so I don't have any formal education. My coding vocabulary is awful, but generally...

View Article

php coding help

Hi,     I am new to php code. i have one search form in welcome.php. results will be displayed in anotherpage search.php. after displaying the reusult when i reload the page it is submitting the form...

View Article

Warning: mysql_fetch_array() error

Hi, anyone can help me with this error? Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in...on line 653     Line 653:         while ($row = mysql_fetch_array($res,...

View Article


PHP code

Hi guyz I found this code : http://pastebin.com/gK4qTxVy This is to check the mysql connection, the problem is this checks the DB connection internally only. I mean you need to upload this file to the...

View Article


How do you access to a variable in a class from another class?

Hi, I need to hold a value globally which could be user ID or DB object and so on.   The value must be accessible from any classes or files. In this case which design pattern would you use?...

View Article

Image may be NSFW.
Clik here to view.

PHP sessions query

Hi there,   I'm trying to put together a multi-page form, which uses PHP sessions to store data, but am having trouble getting it working. Here is my code for the first page. (I haven't yet added any...

View Article

Menu parent active

Hi Guys,    I have the below code that I am trying to make work correctly, basically it creates a menu structure and then should only make the parent active if the page you are on belongs to that...

View Article

Nested if statements

Today doesn't seem to be my day. Having problem after problem. Haha. This time my nested IF statements don't seem to be working. If the name has been input I want to go to the next page of the form, if...

View Article


Wordpress: sort archive page by recent activity

Having installed the 'filter by comments' plugin which "Adds query vars (comment_count, comment_count_compare, orderby_last_comment, orderby_last_activity) for filtering posts by comments". Then...

View Article

[PHP,HTML] login page detect more than 1 table

Hello, im a new user here. Im now working on a project called student attendance management sytem. I have doing all the necessary tables in database which is  admin, lecturer, student, parent,...

View Article


Login Script Error Messages Not Showing

Well I have this login script, and there are if statements if something doesn't match up and it will set $error with a sentence of what is wrong.  Then at the bottom of the code has the login form,...

View Article

Image may be NSFW.
Clik here to view.

Need some help with a problem I am having

Me and a couple of my friends from photographer school decided to go on vacation together to a city in Poland called Gdanks and we took a lot of pictures and had a lot of fun and all that good stuff....

View Article


IM help

Im trying to make an Instant Message box on my site. First, you type in a username then I want it to create a new html file in /Users/ called (username).html . than I want the chat box on the site to...

View Article

(PHP Button) So simple yet so complicated?!? Please help

Hello everyone, I am currently coding what I thought would be a simple PHP button that would alternate each time you click it to provide a different action. I've spent almost 2 hours trying to figure...

View Article

not a valid MySQL-Link resource?

<?php $con=mysqli_connect("blah","blah","blah","blah"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } if ($_POST['rateup']) {...

View Article
Browsing all 13200 articles
Browse latest View live