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

OOP global variables

Hello freaks,   I am having quite a difficult time working out how to use an instance of a certain class in all instances of all objects.   Example: this is my main file ( index etc. ),       <?php...

View Article


Help with search, sorting and pagination

Hi Im new here..   Im a PHP noo-b i have this simple code with sorting and pagination with dummy data (firstname,lastname,age)   I would like to add some simple search to it..im not sure if im doing...

View Article


Help - new to php

<form action="test.php" method="POST"> <br> <?php          for ($i=1; $i<=6; $i++){         echo $i.'<input type="text" name="option_"> '.'<br>';            } ?>...

View Article

change html and mysql characters in text to insert it to mysql

Hello, i want to know how can i change common sql and html characters at the submit form text boxes and textareas so i can insert them in db.  When i enter the ' character it returns sql error also i...

View Article

Header

"Warning: Cannot modify header information - headers already sent by"   http://php.about.com/od/finishedphp1/ss/php_login_code_4.htm   i'm just putting this code in. didn't modify it at all. line...

View Article


Image may be NSFW.
Clik here to view.

Delete database row's whit php button

hej     I'm making a website and have some problems with. Someone who can make a script where you have to press a button to delete all the rows in my table   Thanks

View Article

First Row not posting correctly

Using the following code:   <html> <head> <title>Issues- Reduced View</title> </head> <body  marginheight="0" topmargin="0" marginwidth="0" leftmargin="0"...

View Article

Image may be NSFW.
Clik here to view.

php script redirecting problem

when there is a user logged in they should be directed to members.php but even when logged in i get redirected to login.php instead of members.php, how do i fix this? im new aswell so try and make it...

View Article


PHP form not submitting to email

Hi everyone,   I've created a website with a simple form that when filled in sends the information in a form of an email to the specified email address. For some reason I don't seem to be receiving...

View Article


Search though a string array?

Hi,   I've just spent the last several hours speeding though coding a sudden idea I had. Now I'm feeling a bit brain dead and cannot get my head around the next part.   I have a string array,...

View Article

glob() not coming up with any results...

<img src="/pics/Dan/40 Allen/4/201232313_33.jpg" alt="40allen" width="400" height="400"><br> <?php $dir = "/pics/Dan/40%20Allen/4/*";      // Open a known directory, and proceed to read...

View Article

PHP Contact Form - Reply-To

Hi there! I'm new to the forum and I have little knowledge of PHP but I managed to make a contact form.     I've looked at the other threads about PHP Contact Form and tried different options but...

View Article

Date and Time Form

I need help with this form I'm trying to get the date and time to post into the mysql database together   <div id="line">Create an Event</div>   <div id="events_create">   <form...

View Article


Php Script to redirect to mobile site

I keep this error when I use this script:   <?php $useragent=$_SERVER['HTTP_USER_AGENT'];...

View Article

Upload image to Database

I am trying to upload an image to a images folder and also add the image name to the database. I am able to upload the image but cannot upload the name to the database. Also with the database I fill...

View Article


cropping an image

e.g. if image is 500x300 and I want it to be 200x200 then the new width and height will be 200x200 but first the new dimensions of the image will be created, so the height will go from 300 to 200 and...

View Article

Image may be NSFW.
Clik here to view.

Is it possible?

Okay, now my mind is open with imagecreafrom (png, jpeg, gif) function of PHP. But i'm curious does it support other image format? ofcourse it is a very obvious question seeing those 3 are the only...

View Article


Image may be NSFW.
Clik here to view.

Login and Logout

Hello,   I have made a logout script with a existing login script i already had. Now when i try to logging it doesnt do anything anymore.    I attached the login and logout.php.     logout.php...

View Article

Modularity

A very open question :   How would you guys judge/ assess applications or code snippets on modularity / evolvability . How would you assess the application design? the design of a framework etc.......

View Article

Possible to send information through a link?

  while($row = mysql_fetch_array($result2))     {     echo "<tr>";     echo "<td>" . $row['hotel'] . "</td>";     echo "<td>" . $row['hotelnum'] . "</td>";     echo...

View Article
Browsing all 13200 articles
Browse latest View live