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

How to eliminate space from textbox, if user enters space's

HOW TO DO THIS IF A USER ENTER'S SPACE'S " " IN NAME textbox, it should show , the text box is blank what function should we use here?

View Article


Image may be NSFW.
Clik here to view.

My code isn't working for any apparent reason?!

Hi There,   I have got this code:   function displayPosts() {         $query = mysql_query("SELECT * FROM social ORDER BY id DESC") or die(mysql_error());         while( $result =...

View Article


gmail login?

If I have a php file linked to a login form, could I login to gmail? For example, something like this: header("Location:...

View Article

I don't know why my checkbox isn't working.

Hey guys,   I'm struggling to find why my checkbox isn't posting as set. I would really appreciate it if someone could tell me what I'm doing wrong.   Here's the form: $form = "<form...

View Article

accurate php hit/visitor counter

I currently have this <?php /* counter */ //opens countlog.txt to read the number of hits$datei = fopen("countlog.txt","r");$count = fgets($datei,1000);fclose($datei);$count=$count + 1 ; // opens...

View Article


Pagination From Search Results

Hi,I have cobbled together the code from two tutorials, both of which work superbly on their own, but I must have something wrong in the code because together they don't work.I have a database of...

View Article

need some help please

okay i have everything i need to get things working for myself but need someone if at all possible to walk me through on how to recreate my database through this website if at all possible...

View Article

some assistance with my php

when you visit this link it is showing some errors http://omgtechnotes.me.pn/insert.php   below is the code for it    I removed my user name and password for security purposes.  <html...

View Article


Image may be NSFW.
Clik here to view.

Help! My code isn't working for no reason!

Hi There,   I have got this code:   function displayPosts() {         $query = mysql_query("SELECT * FROM social ORDER BY id DESC") or die(mysql_error());         while( $result =...

View Article


Trimmer zeros from char variable

Hi   User may insert numbers as:   000000000004545498 00000003585498   No matter what he types, I need always remove zero from left side of variables. (char type)   Is there a ready function for this,...

View Article

contact form stoped work after changeing the css

hello every one today i'm trying to make this contact form:https://www.cubby.com/pl/slick-ajax-contact-form-jquery-php--origanal/_52f5017a83bb468e8dcf83d4599df786 look like this...

View Article

Limit Number of Times of Form Submission

After a couple days of search google and looking through the plethora of books here on the shelf, I have come to the conclusion that what I am looking for I simply don't have the right terminology for...

View Article

checking if forms are filled on submission

Here is my html form and my php code. It is supposed to check if any of the forms have not been filled and echo a message if they have not. Then process the registration if they have. But it seems to...

View Article


Populating dropdown from SQL database

I am trying to create a page which populates the filter from SQL database. In current script below it is done manually. Considering I am new to php, will really appreciate if some one can advise what...

View Article

Image may be NSFW.
Clik here to view.

View variable in the same line as the counter for

Hello my name is Erison. I'm new here and I'm sure that is not sleep for days. I want that number in the variable $parcelaX be displayed only when equal to $i of loop "for".   can someone help me?...

View Article


time difference between two countries?

Hello,   I need to create a simple PHP script/application which will let the users search for two countries/cities in the world and the time difference between those two places will be shown to them on...

View Article

regarding changes with dbase functions...

Hi guys,   I am having a problem with my old scripts I am trying to run, I have $newdb = new db; and it isnt enough. Then this code comes up with "false": $db->mysql_connect($sql) or die('Kon geen...

View Article


Help with code. query does not work inside a function?

Hello all,   This is my first post. Im trying to learn PHP from scratch. So for myself im making a registration system and some other things but there is something strange happening and i can not...

View Article

Question about using webgring

I have been learning on how to debug PHP code. One of the things  had a question on is using webgrind, to test performance of scripts.   I was told that webgrind shouldn't be used on a production...

View Article

Image may be NSFW.
Clik here to view.

php mail always ending in spam

Hi.   I searched the entire page for a topic, as i thought it must have ben asked before, but unfortunately i couldn't seem to find anything at all so, i created a perfectly working email, sending as...

View Article
Browsing all 13200 articles
Browse latest View live