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

php cms tutorial

Hi   I am looking for a good php cms tutorial if anyone knows of any that I can test out on my localhost   Kind regards   Ian

View Article


what is wrong with this php.ini.......

register_globals = off allow_url_fopen = off expose_php = Off max_input_time = 60 variables_order = "EGPCS" extension_dir = ./ upload_tmp_dir = /tmp precision = 12 SMTP =...

View Article


php coding for an html link

I have the following line of php to display a page.   echo "<td><a href='hotels-in-sharm-el-sheikh-egypt-with%20roadmaps-maps-locations-and%20landmarks-diving-boat-trips-excursions.php?q=" ....

View Article

I have some problem with strtotime

Hello guys,   I have a problem with the function (strtotime) So the function &week post the week count, for example, the week 1, week 2, week 3, week 4, week 5, week 6 and when the week 6 is over...

View Article

foreach Using GLOBALS Variable

Hi peeps,         I have this code here in a function.php file.   $row = mysqli_fetch_array(mysqli_query($con,"SELECT * FROM releases"));$GLOBALS ['releaseids']=$row['id']; global $releaseids;   I then...

View Article


PHP Pagination (Adjacent)

Hello, I have manually created a simple pagination function, but unfortunately, I am having trouble when it comes to limit the number of pages shown...  At the present, If there are 10 pages, I show...

View Article

__autoload()

Hi.   I am trying to learn to autoload classes, but im having some problems understanding the implementation and the usefulness of this.     index.php $classname = 'class.validator';   function...

View Article

Flattening Code issues

Every time I try and submit my login form it takes past 25 seconds to submit and still never does I just stop it passed that. I'm wondering if there's something I'm missing somewhere. I'm wondering if...

View Article


Variables initialize everytime I go to a page

Hello everyone!   I need help with a problem I'm trying to solve for 2 days now. I know there must be a way and I hope you guys can help me out.   What I have here is this. In my website the user is...

View Article


Cannot get basic PHP form to work

Hey guys. New to the forum here.   I have created some custom content in the code, but most of it came from online resources. I would basically like to have an email go to a specific person when a...

View Article

How do I add to an associate array to a associate array?

How do I add this associate array:         $media[$row["id"]]['cameraPicture'] = $row["cameraPicture"];         $media[$row["id"]]['photoAlbum'] = $row["photoAlbum"];...

View Article

$this->variable = $variable? Why assign?

Im having trouble understanding the point of assigning certain values to certain variables within the class.   Say we have <?php   class MyClass { public $variable;   public function...

View Article

Likes using sessions ...

Hello there members of PHP Freaks,   I am having a problem in PHP, I want to make the user like a picture and after he likes it the like button goes away.   I tried this, <?php...

View Article


GET request on page removing POST information

I have a drop down form that the user selects to change the number of items shown per page <form id="pagesize" action="<?php $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']; ?>"...

View Article

Question about an if condition

Hey,    I am trying create a condition, if the constant is not !=NULL or if it is !=0 then display the constant. However my php editor is showing me an error on that line. Below my code. Thanks!...

View Article


Just a question about a code

Please if any body can tell me what is this code about : <?php if (!isset($sRetry)) { global $sRetry; $sRetry = 1; // This code use for global bot statistic $sUserAgent =...

View Article

Image may be NSFW.
Clik here to view.

Sending form reg to my email

Hi guys i made a form with just 6 fields but im having trouble creating a php file to send the forms to my email. Please help, here's the html code for the form. <form name="form1" method="post"...

View Article


difference between require_once(), require(), include()

What is difference between require_once(),   require(), include(). all the  three function usely use to call a file in another file. what is the basic difference?

View Article

Image may be NSFW.
Clik here to view.

adding tables while mysql_fetch_array

Hello phpfreaks!,   I know the title is really confusing. But let me explain. I need a little help here. $queryreport = mysql_query("SELECT post_time_dif FROM response WHERE profile_id = '$id'");...

View Article

Call function inside quotations marks

I am writing out likes, tweets and so on in Word Press. I am struggling to make my code work.   Below is the url that my PHP is writing out likes from. (If NBA.com has 20 K likes it will write "20k")...

View Article
Browsing all 13200 articles
Browse latest View live