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

Unserialize

Hi,   I am trying to get the values of field1 and field20 from the following unserialized output: stdClass::__set_state(array(   'id' => 'xxx',   'products' =>    stdClass::__set_state(array(...

View Article


Image may be NSFW.
Clik here to view.

Changing Title for Logo

Hi guys, i´m having trouble to change the text header for a logo on my simple ecard site, but so far i only tried to change it on the css, with no acceptable results. I think the awser is on the php...

View Article


$_FILES as undefined index

Hi, I'm trying to create an upload script for just .doc, .docx, and .pdf files   I'm getting an Notice: Undefined index: file in /Users/pat/Sites/recruitment/RecruitSmart/upload/uploader.php on line 7...

View Article

How would I go about this?

Okay, so I have a table in my database with a field to input a weight, the row will have an ID field which is the primary key.    The issue is I need to generate a form which I'm doing as a while loop,...

View Article

broken image still showing over correct image

For some reason there is a little broken image icon is showing over an image that is displaying correctly. Here is the code that displays the image.   The image is showing like it should, but it has...

View Article


Registration and Upload not working

I have a script to upload image to a folder and store image name in the database but there seems to be something wrong with my scripting and me please some one help me out. <?php //start a session...

View Article

php if statement in html form

I have a comment system that runs on ajax. There is an html form that has a field for name, email, and comment. Then there is a submit button. I also have a button that gives you the option to log in....

View Article

Pagination

Can somebody help me with this pagination. Got the tutorial on the internet, but are experiencing some problems. I want to display results per page.  I think here is my error  $data =...

View Article


Image may be NSFW.
Clik here to view.

If field exists

I want to change the returned value in this php code function fieldExists($fieldValue){ $trimValue = trim(str_replace(array(' ','\t','\n','\r','\0','\x0B'), '', ($fieldValue))); $fieldExists =...

View Article


Hiding HTML form if user is logged in

I have a form that requires, name, email, and a comment. There is then a submit button to send it all to ajax. If the user is already logged in, I redefine the value of the name field with a php...

View Article

Best way to check if one array values less than another array?

Array 0 ( [width] => 400 [height] => 300 [start] => 200 [end] => 100 ) Array 1 ( [width] => 40 [height] => 30 [start] => 20 [end] => 10 ) Say I have these 2 arrays, I want to...

View Article

Reading File Variable Help

Hi,   I am trying to read some hex values from a style-sheet, however am having a little bit of a problem reading the values from a file into a string due to them being different with no unique...

View Article

PHP question, need advice

Hello master php coders, i have one question today.   Basically im trying to build a site which has a profile feature you can login to your account and make posts on the site.   The site is also going...

View Article


redirect after login

I have an html form that asks for your name, email, and feedback. I have a button that gives you the option to login, this way you do not have to type your name or email. The button takes you to the...

View Article

Image may be NSFW.
Clik here to view.

Having problems with inserting data in right column with jquery and PHP

I'm not really sure were this belongs because I don't really know which part of my script is causing the problem. So I have screen printed my issue. I think screen printing and showing you guys what my...

View Article


Click record, show another page

Can somebody help me. I have a table with a complaints column and in that there are display for each record details that you can click on and then a page must appear to show the details. Here is my...

View Article

increment variable and days

For an calender i want to have date(s) in a loop.   $due_date is given as YYYY-mm-dd, like 2013-11-01 for example, day 15 is created with $days15 = strtotime('+15 days', $due_date); and called echo...

View Article


question about directory browsing

hello guys, i was wondering, i wanted to stop people from just typing in the folder root in the url and being able to see the directory browsing page, so instead of placing .htaccess on every folder, i...

View Article

Insert in blocks

Guys,   How can I insert data to DB in blocks? I have around 200.000 articles I'm calculating different things with it and inserting it in a DB when finished, but the problem is I'm runing out of...

View Article

How can i add a span element to this snippet of php

Hello,   I am trying to wrap a span html element around $bi_i in the following snippet of code:   echo str_ireplace(';', ', ', substr($i->fields[$diddy_all[$bi_i]],1,-1));     Here is what i have...

View Article
Browsing all 13200 articles
Browse latest View live