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

Foreach loop problem

Hello, I have yet another problem I am trying to understand. The thing I don't get is the foreach loop. Here's my code.   I have a function to get the posts from the db as follows: function...

View Article


Best way to search result with ARRAY of needles?

Hello I want to get a count of how many needles are found. Im aware there are some different ways to search a result with 1 needle, But If I have an array of needles $result = 'fgnfmgn NEED this 22...

View Article


PHP Array

OK i am very new to PHP so please be gentle LOL.    I am posting a form to Liveaddress API and then i get the response back in an array it looks like this  Array ( [0] => Array ( [input_index] =>...

View Article

while loop - joining characters to create word

I read data from binary file which contains names of domains separated by semicolon. I have saved one word "localhost;" into the position.   I tried more versions, the main difference is with the use...

View Article

php login

Hello everyone. I am currently working on my first website, and i am encountering some problems with logging in users after registration. the site url is - www.eastlogicsystems.com. The error i am...

View Article


Looking for some direction!

I am looking for a little direction as in while I have a grasp on a lot of the concepts, I have no idea 'how to php'.   if someone would be so kind as to point me to which functions I would use to do...

View Article

Need an critic opinion on my Autoloader Class

As the title say's i need an critic opinion on the code i did, as i m learning all by my "self" sometimes i miss some feedback on what is best to do or not, so if anyone could throw a couple of tips or...

View Article

PHP variables inside of Javascript

I have an html form with a field for name, email, and comment. If you are not logged in you have to type these things in manually. They are then stored in javascript variables and run through ajax...

View Article


How can I properly insert latest id into table with PHP?

How would I insert the latest known id into a different table? Was thinking LAST_INSERT_ID(), but don't know if it's what I'm looking for.   Here is my code. <?php $insert1 =...

View Article


Image may be NSFW.
Clik here to view.

Please tell me what's wrong?

ERROR:   Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/m4st3r/public_html/inbox.php on line 34 Warning: mysql_num_rows(): supplied argument is not a valid...

View Article

email form

i designed a form with a php send via email. what i cant figure out is how to collect the info from the checkboxes and put in the php   this is the check box:   <td id="td_element_field_0"...

View Article

Passing array to AJAX

I have tried everything I could find to combine these two AJAX requests into one request, Is there a doable answer? <!doctype html> <html> <head> <meta charset=utf-8"/>...

View Article

Image may be NSFW.
Clik here to view.

a little hand please (proof read work cant see error)

I cannot get my IN MY MIND comment box working, I think it maybe to do with my } { tags that will not forward the page to action=comments.   Could someone please check it over and see if they can spot...

View Article


PHP session keeps setting the data to NULL

Hello, I have a class which handles session data to my database but every time I run PHP  and have session_start(), the session data in my database is set to 0.   I have no idea why its doing it.   My...

View Article

What are some practical uses for callback functions?

I'm trying to figure out how callbacks can come in useful in PHP. I found this tutorial: http://www.phpriot.com/articles/php-callbacks which gives an example of a script which downloads an RSS feed...

View Article


Parsing this string

$string = "<214.27080, 204.10100, 2500.51300>";     need it parsed into 214/204/2500          

View Article

fopen - long URL issues

Hello everyone, I just started having problems using the Bing Adcenter API with downloading reports in .zip format with fopen. There are no errors, so this is a bit frustrating. The file opens fine in...

View Article


really curious how to store or retrive images

can some help me with a small problem... I have a site that I want to create an admin section for that will allow the user to update a certain page with it's contents- thus far i'm ok cause more is...

View Article

create directory where they dont exists.

Ok so guys im a little stuck on some code here and could use some help..   ok so i have 3 rows in column and created 3 folder to match them   /ticket/ ->folder1 ->folder2 ->folder3   Now at...

View Article

Convert a cURL cookie into a valid Opera cookie?

This isn't exactly a PHP issue I'm having, but it is indeed related to cURL in a way, so here it goes:   How can I convert a cURL/Netscape style cookie into a valid Opera/IE cookie for usage with one...

View Article
Browsing all 13200 articles
Browse latest View live