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

Submit form and php

Hi am having a few problems if anyone can help me. When i click submit it takes me back to index.php but would like it to return to forum.php. Also my avatars not showing the user id so that you can go...

View Article


How to format 1st row in MySQL output differently from all following rows in...

I have a MySQL query that is returning the results that I need correctly. However, I want to clean up the output a bit for my specific use case. Specifically, I'd like to remove a column from the...

View Article


Pimple container -vs- defined constant for SITEPATH etc...

I am moving my framework to use Pimple Is there any advantage to storing things like SITEPATH or SITE_DOMAIN in Pimple vs in a defined constant?   When is one a better choice than the other or is it...

View Article

Printing out MySQL table names with PHP

So I want to get each table name in a MYSQL database and put it in the variable database.  This is what I have so far but I cant seam to get it working, thanks in advance!  It just says "Access denied...

View Article

Display data from database using multiple checkbox selected form

Hello Friends,   wishing you all a very happy new year nd thnx 4 wishing me the same.   Here is my problem!!!   i am trying to display information on my webpage using some chekboxes with multple...

View Article


Help with using exec to run a .bat file showing console windows

OS: Server 2012 Web: Apache 2.2 PHP: 5.4.0   I run a small game server for that I use to record some game footage. I did not want to have to give direct access to my server since it is really not...

View Article

naming properly the primary keys, how to concatenate

I'm having a problem on how do I put primary keys whenever a user register another person. My pattern is this (batch number) + (incrementing value). For example a person named Cary register to my...

View Article

Multiple Downloads Using Checkboxes

I'm trying to put together a page in the 'Members Only' section for my choir. The page involves using checkboxes in order to download multiple MP3s for training purposes. The main part of the script is...

View Article


Professional to do this?

I checked numerous reputable sources(php.net/stack overflow etc) couldn't find any answer in regards. echo $var = 'this var was undeclared before this'; As you can see, I am echoing and setting a...

View Article


Mass printing - is it even possible?

Hi,   We have various reports which can be printed off by our staff, for each individual student, which work by generating a simple HTML page and then using the javascript print method on the document...

View Article

Parse Error

I would greatly appreciate any help in debugging this piece of code. But please be aware i am an absolute noob and have really just botched this together through trial and error, so please be gentle if...

View Article

Image may be NSFW.
Clik here to view.

PHP form pull MySQL data for field when another field is selected

Hi everyone.   So I have a HTML form using PHP to pull a column from a MySQL table.  However, I have a second field in my form that I want to pull a second row of data from that same table, when the...

View Article

Image may be NSFW.
Clik here to view.

array parsing to variable from echo/print response

Sorry if my wording/terminalogy on the discription is wrong. I'm new to PHP, so i'll do my best to detail what im trying to do.   The PHP is doing what i need it to do. But i do not need to print the...

View Article


Proper method for form & function with variable validation

Hello! Second post here. I'm new to PHP and have an idea of what needs to be done, but im not sure the best way to impliment it. Basically im looking for direction on whether I should use JS, AJAX,...

View Article

Image may be NSFW.
Clik here to view.

help with classified ads code

I followed this tutorial: http://blog.calendarscripts.info/phpmysql-tutorial-classifieds-software-in-1-hour/   and i keep getting an error. i am simply trying to get a classified ads service going i...

View Article


help with search bar

Hello,   Need help with this script, I want to move out search bar from script, but when comment out search_bar loose fragment- function (or menus), menus don't filter any more, code is bellow:...

View Article

Removing empty array after unset with for and echo

I have following two dimensional array: $shop = array( array( Title => "rose",                       Price => 1.25,                       Number => 15                     ),...

View Article


how to implement CPV XML FEED advertisment in our network

hi friends i need your help. we have a popunder ads network . in our network we use 3rd party CPV ads in our network i don't know how to implement i have some tutorial please any one tell me how to...

View Article

Add check box names to database table

I am trying desperately to add checkbox names to a table on my database, i've read loads of tutorials and haven't really gotten very far. Here is my code <script language="JavaScript"> function...

View Article

Display a value for each value in array stored on different database table

This is kind of hard to explain. I have a website that sends a message by email using PHPMailer when someone adds details to the basket. I've copied this across to another similar but slightly...

View Article
Browsing all 13200 articles
Browse latest View live