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

PHP File Deletion Problem

Hi everyone,   Lately, in a school project I've been working on, which involves using XML files to save information and read it out, as well as dynamically create and delete themselves. It's all been...

View Article


Syntax error, unexpected ')'

$options = array(     'title' => __( 'Slider', 'yit' ),     'options' => array( '' => __( 'Default', 'yit' ), 'none' => __( 'None', 'yit' ) ) + yit_get_sliders(),     'desc' =>  __(...

View Article


Unsure on how to set cookies in my php code so my jquery style change is...

I have a table displaying database data and there's a "Dead" button next to each row for users to click when the information in that row is dead. When the button is clicked the info in the row is...

View Article

struggling to come up with a way to do this

Weight and food diary.    2 input forms to insert weight and then for one to insert what they had to eat.    i then wanting it to show on a calendar,  <?php /** * Account * * @package Digital...

View Article

This is basic stuff, but..(multidimensional array count)

Hi,   I'm trying to figure out the following. I know it must need a nested loop, I just can't figure out quite the way to do it, so any help would be superb.   My MySQL db has a list of incidents that...

View Article


List numbers up to an assigned value.

OK, I know the topic title doesn't say much, but what I'm trying to do is fairly simple to explain.  What I'm trying to do is to have real time inventory of specific items that are listed in my...

View Article

Need help with searching Categories

Hi - I am struggling to find a solution to a category problem.     Perhaps I am over thinking this. I need to display a navigation menu in tabs so that as you tab through the hierarchy you can see the...

View Article

Database connection failed: ... No such host is known.

( ! ) SCREAM: Error suppression ignored for   ( ! ) Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\widget_corp\includes\connection.php on...

View Article


Is this poor coding?

I want my wordpress site running smoothly and I heard that poor coding can slow it down. The code I've put in sidebar-page.php is <div class="bgsidebar"> under the php code. <div id="sidebar"...

View Article


Image may be NSFW.
Clik here to view.

php form, only require if another field is filled..

ok, after hours trying to figure this out myself, I thought it was about time I joined a php community anyway.   I built a html web form.  It uses a php script to check for required fields and send the...

View Article

Undefined index: error in C:\wamp\www\tourprice.php on line 32

Can someone please  help > im new to php and trying to complete code for  a tour price calculator and keep getting the following error message    Undefined index: error in C:\wamp\www\tourprice.php...

View Article

Changing metadata in an photo.

In a previous post I explained a problem I was having extracting metadata from a photo and then adding it back after resizing the photo. I managed to solve that problem but have since discovered...

View Article

memcache

Hi, I am new to this forum I am exporering the possibility of using memcache. I use XAMPP on my Mac. I need to know if memcache is already installed, in phpinfo, there is a mod_mem_cache under...

View Article


Warning: mysql_connect(): Unknown MySQL server host 'DB_HOST' (1)

Hello guys,   I am trying to run a script but it could not get connected to mysql and I have tried it on 2 different free hosts with different versions of php. I get this error:   Warning:...

View Article

Best way to search through long strings

Hi,   Im working on a project where I have to sift through the entire HTML code of a webpage, and extract everything that lies within a certain HTML tag.  Essentially, at least as I see it, I need to...

View Article


$_POST reads an empty array

This has me stumped.  It was workign fine but 30 minutes ago!   Body of my form: <form name="form1" id="form1" action="process.php" method="post"> <textarea cols="50" rows="4" id="src"...

View Article

Creating a search engine and linking blog posts

G'day,   I created my own simple blog with some posts in it, the posts are stored in a folder called "posts" and there in .MD format. I want to put a search engine on my blog when they search anything...

View Article


Php -> function

Hello guys, I am learning PHP and what better way to do it than reading and understanding code.  But I have a question what does the function do? -> Here is a sample code from MyBB $username =...

View Article

php code

i am stuck wit uploading the image in the folder from the form and save the url to database. if any body could help me wit simple php code 

View Article

ftp_get() stopped working. Can't work out why

Hi guys   I'm not sure this is a PHP coding problem but it may be so I'm posting here anyway. I've got a script that runs as a cron job every few minutes that uses ftp_get() to pull a file from another...

View Article
Browsing all 13200 articles
Browse latest View live