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

Is It Possible To Put Into A Php Variable An HTML Piece Of Code Built From...

Hi All,   The heredoc syntax enables to put some text in a variable for future reuse. For example : $my_var = <<<EOD The colour is red. EOD; echo $my_var; will result in "The colour is red"....

View Article


Webform don't send data to email

Hello,   I need help on webfrom code . As I have mentioned email address into action= filed but not getting any email data on the prescribed email address. www.icampk.com please check contact page for...

View Article


How to capture the first number along with all text after it in string

I'm looking for a way to find and capture the first number and all text after it in a string.   Examples:   I have the following entries:   some text 23 text sometext 21 sometext some text 120 text   I...

View Article

basic column positioning problem

The script I'm using is identical to this one http://internationaladvertiser.com/adsnet/cl/ct/merch1/appliances/1.html   for some reason I'm having issues positioning the "Title" and "Preview" column...

View Article

Please help, my site won't go live

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'chaosbla_db'@'localhost' (using password: YES) in/home/m4st3r/public_html/Global.php on line 28Error connecting to database.

View Article


Trying to understand what this means

Hi all, first post so be gentle with me. I'm trying to understand what the tracking in the following URL portion means. The URL is from position 27 on page 2 on a search on Amazon....

View Article

Bamn Dastards - PHP form help please

Hello, I recently started working for a small health care college and at some point they were convinced that a lead generating company was a good idea and gave them complete access to our website....

View Article

How do I convert this to php?

Hello experts,   Please bear with me on this question.   I wrote this code in classic asp sometime ago. I have since gotten away from classic asp and was asked to use similar code in php.   First here...

View Article


Image may be NSFW.
Clik here to view.

url check and change

How i can add a line of code in php that chechks the image upload url, so that it checks the url and if it has a "?lang=" part in it, it erases that and leaves only the main part. For example :...

View Article


difference between 2 dates in terms of days

Hi to all !   While i await some reply to my earlier query, here's another one - a simpler one perhaps but it has me baffled.  The following is the code I tested on phpfiddle and it works great. Gives...

View Article

function seems to be working on one server, but not another

****NOTE**** I have a workaround for this, listed at the end.  I'm self taught (OTJ) and am curious on why this works on one box and not another..       I have the below function, in a functions file,...

View Article

PHP - Forms - Validating. Best Practice?

Hello everyone! I would love your feedback/help/advice/tips on this situations. Im currently creating a form to "register" on a database but I wanted to do what could be the 'best' practice when doing...

View Article

Image may be NSFW.
Clik here to view.

XPath query not returning anything

Hiya,   I'm trying to learn the basics of XPath but I'm having trouble getting it to return anything. All I want is for it to grab the title of the page and echo it... <?php $doc = new...

View Article


need syntax help with code

hi guys I just would to know the correct code for these two lines. thanks for the help. <input type=text size = 10 value="<?php echo '$playdate'?>";  <input type=text size = 10...

View Article

finding the count() of months

Hi, I'm trying to make a bar chart that shows how many views a job has per month. For the chart i need 12 seperate variables with the count for each stored... like $countJanuary, $countFebruary etc....

View Article


Quick question. - Accessing Database with MySQL and PHP

Hello everyone, this is a quick question. Im trying to look for input that the user made and validate if there's a duplicate or not. so: Steps: 1.check user input. 2.Check database for duplicate....

View Article

Validating a US Phone number - basic facts

Good morning,   I need to validate a US phone number and wanted to know some basic facts such as max/max amount of digits possible etc.   I know it can be validated with a regexp but just looking to do...

View Article


Sending a URL in my parameter list

Hi:   I'm not a php programmer but I'm slowly learning out of necessity.   I am sending several parameters to my index.php and everything works well until I try to send a URL. Then I get a 403 error. I...

View Article

Problem moving to mysqli

I am trying to be good and re-write all of my scripts to use mysqli instead of mysql_query & mysql_result etc.  I have written the code below, but I am stuck.     Here's an explanation: while($row...

View Article

Image may be NSFW.
Clik here to view.

PHP - Random sum maker in 10 pages

Heey,Could some one help me to make like 5 / 10 sum generator with random codes and each sum on a other page?Maybe you got skype and you could help me out and help me? So I got teached also  I was...

View Article
Browsing all 13200 articles
Browse latest View live