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

parsing question (error)

I'm trying parse this line:   echo '<a href="'.$_SERVER['PHP_SELF'].'?function='$i'">Click here to call a function</a>';   and keep getting an error, how can I place the value of i$ ?   Can...

View Article


PHP user login system on HTML site

Hi all, first post here so please bear with me. I chose to try and reach out to the internet community for help on this one because it is over my head.   I currently have a bootstrap based HTMl...

View Article


Please help with special characters

Hi, I'm trying to update my database with this query:   $id_categoria=$_POST["id_categoria"]; $id_subcategoria=$_POST["id_subcategoria"]; $articulo_tit=$_POST["articulo_tit"];...

View Article

Mail php does not work

Hey folks, yesterday I decided to upgrade my CentOS machine from 6.3 to 6.4 and now my php mail function stoped to work. What I've tested so far: 1. If I try to send a message to my remote mail server...

View Article

Random string with .html at the end

Hello peoples.   Right, this is what I'm trying to do; I'm trying to make a php script that generates a html file. I've almost got it. I just need to finish giving the html file a name. The name will...

View Article


Shorthand variable condition

Hello I want to ask what does the following code do   if($variable){ // do stuff } I have been using it quite a lot and it seems to be working well but I'm not aware of what exactly does it do?

View Article

PHP Image Alpha Transparency

Hi all I have a question. When ...for example...drawing a polygon on top of a white canvas in php and you fill the polygon with an alpha transparency of 150, and then draw another polygon over top of...

View Article

Image may be NSFW.
Clik here to view.

Emailing form submission to user also?

Hey all,Disclaimer: I know next to nothing about PHP, but I have successfully been using PHP Freebies' Form Mailer for years to create clients' simple web forms.One client recently asked a request that...

View Article


Apostrophes in PHP Xpath

I'm trying to pick out items from an XML file by their titles using Xpath in DOM, but because some have apostrophes, it doesn't work. I've tried replacing the apostrophes using this $query1 =...

View Article


registration

I'm trying  to formulate  this simple registration..      http://tinsology.net/2009/06/creating-a-secure-login-system-the-right-way/    I have db connected but no inserts. I think the fault is in the...

View Article

How to make my random string end in .html (rephrased)

Hello peoples.   You may of been my question before, regarding the same issue. I, however, cannot seem to make my string end in .html. Here's the code: $file = md5( time().'' );   This does create a...

View Article

Verify user input against mysql database

Hello,   I'm new to PHP and I need some help with user logins.  I'm using WebMatrix2 running a site on localhost trying to learn PHP through trial and error.  I've made a registration and login.  When...

View Article

PHP Variable Not Showing

Hello, this is part of the code that displays some variables:       <p class="title"><?php echo $language['010']; ?></p> <!-- Done! --> <div id="done"> <h3><?php...

View Article


mysqli alternative for mysql_result

Hello,   I am new to mysqli and have a little question. I have tried to find an alternative for a while now but nothing seems to work... maybe somebody could help.   So my old code is this     function...

View Article

Saving contents of a div as a php variable

Hello peoples. I have a div, id=body, which is constantly changing. How can I save what is in the div is a php variable, to use on the next page?    - Thanks, Xanco

View Article


Stop random images from getting displayed twice

Hey guys,   I'm stumped, I'm trying to pull in a (as in 1) random image from a dir each time the page loads, I have that part down, but what I am having problems with is, if there are only 5 or so...

View Article

Adding GD and Image functions in a website

Hello guys. I'm making a website for a networking group. They follow a binary system - a parent can only have two (2) children at most. So I should have circles and straight lines in a page to show the...

View Article


Display results thru looping in a array.

Hi. I need help on how should I print the results using a foreach loop or for loop in a multi-dimensional array. The output should be something like this:   ----------------------------------...

View Article

header() giving me error // " header already sent"

Hey guys,   I am currently trying to finalize my registration page, and i am have some issues with the header() function.   i know there are certain rules like no html can be above the header. and what...

View Article

mysqli error when submitting form

I get an error every time I use an apostrophe I can fix the problem by putting a backslash in front of the apostrophe but I don't think the guy I'm coding this for will want to do the same thing.  How...

View Article
Browsing all 13200 articles
Browse latest View live