PHP - News article page info grab from template?
Hello, Could someone help me out? I would like to simplify my life by providing a news page where I can simply have a template php doc with a blank content area that is filled by data from my news...
View Articlediscount code script problem
Hello i have a discount code the partly works but does not fully do what i want it too. The way i have set this up is in the backend of the site i can add my own discount codes with the following...
View Articlehow to load correct php pages for specific users
how can i load a specific pages for specific users, what i have in mind is to create multiple php pages for each user, lets say, php pages A, B, C, D, E, F, G then i would create pages for user 1 -...
View ArticleIs it possible to send a different IP address using CURL when you make...
Is it possible to send a different IP address using CURL when you make requests to a server?
View ArticleHelp Please! this was working but no longer! $PHP_SELF
Hi all, help needed please. our site is http://www.1stwestpont.org.uk/photo_gallery3.php i am using the below code to display a menu of image directories stored on the server. on choosing an option...
View ArticleNo Escape!
I did not quite know how to label this post hence the unusual title. I am trying to modify some code that I have written to save the choosen line that is output from an SQL query, using SESSION to...
View ArticleForm not sending email
I have a form using php that is supposed to send me an email with the info, as well as redirect the user to "thanks.html." The user is redirected, but I do not receive an email. The form is at...
View Articlestop form submittion when reload button is pressed
I have a form with many if statements and else statements. It works fine. However when I press the refresh button the form is submitted once again every time i hit the refresh button. how do i stop...
View ArticleDate convertion!
Can someone help me with this?? First, using today’s date, convert it into a variable. Example: if today is 18th Sept 2009 It will be 18092009 Next, using this variable, add up all the individual...
View ArticlePHP Variables URL - Assistance Needed
To get it out of the way, I am learning php as I go and I am new to it. I am really trying to get my hands dirty in it on this project to learn and to make my life easier! I have a scenario, and I...
View ArticleHelp with strrpos!
Hi there. I have a small problem, i want to use strrpos and i dont want to make a textbox in the browser so i can write what ever word i want to search for and enter it. here is the code. $string =...
View ArticleA list of IP ranges and actions depending on the visitor IP - how?
Hey there, php freaks. I'm trying to whip up a script that is supposed to do the following: I have a list of certain IP address ranges and single IP addresses that I would like to use as an array in...
View ArticleMaking the Table main column name as a variable based on data in a row
I brought this up yesterday in the mysql forums, but felt that it should have been put here since it can be both related. I tried using examples on top of my head, but decided to do a much better...
View ArticlePhp String Search
Hey! Need some help with my string search! I have been working on this script for a while but im STUCK! I have a FILE.txt Inside it has a bunch of random STUFF EXAMPLE:...
View ArticleOutput SQL query into Variable?
Hi I am completely new to PHP (and this forum) so be gentle I have a html web form that posts to a PHP page, the posts are then stored as a variable and then written to a database as per the...
View ArticleOutput count result to html even if 0
Hi, I am trying to build a table with counted results. My code works unless the count value is 0 (albeit there is likely a much cleaner way to do this and if you have time feel free to share your...
View ArticleHelp with database multiple record entry with php
Good day all. I am trying to achieve entering multiple email addresses to a mysql database field all at once. I wrote the following script to manage this but it's not working. I am seperating the...
View ArticleZipArchive() for rar, tar, gz and 7z files ?
I'm using this code to display the list of files inside a zip files: $za = new ZipArchive(); $za->open($decode); for( $i = 0; $i < $za->numFiles; $i++ ){ $stat = $za->statIndex( $i );...
View Articlestatic keyword and scope resolution problem
i am learning static keyword.. and find this example , but it shows error ,, which i highlited below <?php class a{ static protected $test="class a"; public function static_test(){echo...
View ArticleStuck on retreiving values on next page
Hi all I have the following code block and on my second page I can pull the values with the second for loop foreach ($_POST[$data] as $datanumcolumns=>$datadownboxValue){ echo "Dropdown array...
View Article