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 ArticleHelp 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 ArticleHelp - 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 Articlechange 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 ArticleHeader
"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 ArticleDelete 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 ArticleFirst 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 Articlephp 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 ArticlePHP 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 ArticleSearch 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 Articleglob() 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 ArticlePHP 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 ArticleDate 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 ArticlePhp Script to redirect to mobile site
I keep this error when I use this script: <?php $useragent=$_SERVER['HTTP_USER_AGENT'];...
View ArticleUpload 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 Articlecropping 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 ArticleIs 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 ArticleLogin 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 ArticleModularity
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 ArticlePossible 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