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

Practical PHP - Simple OOP site wont render in browser

I have been working through the text book. Practical PHP by Paul Hudson.   The chapter on creating a simple OOP site. wont render in a browser. I have written the code out get not errors in the...

View Article


PHP/PDO in built method to escape sequences

I have a code that uses simpleXML library to generate an XML from input. I then want to insert the data into MySQL using PDO->exec(); But Insert of query doesn't happen. Can you please let me know...

View Article


Warning: mysql_query() expects parameter 1 to be string

hi friends i have the error in update coding plz help me to solve this problem <?php if($_POST['comf'] != ''){ /*$name = $_POST['name']; */ $comf = $_POST['comf']; include("include/connection.php");...

View Article

NEED PHP SOAP GENIUS!

Alright so here is the deal. I have a API built in PHP SOAP. Last developer we had made it and its not the best work but it does work.   We move the site to another server and now we cannot get it to...

View Article

Insert to two different tables in Database

 Im inserting information in the first table then getting InsertID for the foreign key for the second table to tie the records together. The second table will not insert and...

View Article


Image may be NSFW.
Clik here to view.

I need to make multiple updates to a table at once

I have this mysql table called playlist(see attachment) I have a php file called playlist_form.php which i use to generate a form with the contents of the playlist database it looks like this:...

View Article

Putting a div around every 4 database items

Hey,   I have a database full of "Depots" and basically instead of just one straight contact form on this clients website, they want a list of each of their depots on the contact page instead with...

View Article

PHP - if function

Hi,     The following code shows a short description that is entered for the product. Since i have alot of products, and want to use the short description as a notice, i would like it to show only some...

View Article


How the arrange the xml response in some particular design (div's & tables)

Recently i have started Flight portal website. In that for displaying the details of flight like availability, cancellation , fare , etc.. i am sending a SOAP XML request in php the code is as below...

View Article


Forcing browser to reload CSS stylesheets - is this code the best way?

Hi all   I have a big global stylesheet for a website that I update quite regularly. One thing that bugs me is that once I update the CSS file and overwrite it, the site usually needs refreshed in the...

View Article

Display returned Mysql data as actual days and hours as opposed to bare numbers

Hi there,   I'm a beginner with PHP and MySQL so please bare with me if this is easier or harder than I imagine.    I currently have a HTML page with a form that includes the select feature, so that...

View Article

IP range database

I want to disable user registration outside of Croatia. I need an IP geolocation database. I found one site http://www.nirsoft.net/countryip/hr.html, but I'm not sure that the data is regularly...

View Article

Image may be NSFW.
Clik here to view.

Code goes to sleep in PHPAGI

Hi there,   I am not sure what is happening. I am not an expert PHP programmer, I am simply trying to get PHPAGI work with my box.   As soon as I fire the constructor of the class to create an instance...

View Article


Paypal transaction no email

When I use this for my payments $txt  = "<form name=\"makepay\" action=\"https://www.paypal.com/uk/cgi-bin/webscr\" method=\"post\">";   No email is returned

View Article

Image may be NSFW.
Clik here to view.

Deleting a record from a table

I was wondering, what is the common practice for deleting a record from the database?   I can personally think of 2 ways I have done it in the past.   You send a delete query, whether the record exists...

View Article


Advice on php code and what process i should take

hello guys im kind of new to this so please be nice. i am looking for advice more on the hprocess of how to do something rather than the exact code. maybe somebody could give me a short guide or step...

View Article

Question about Sessions

I'm a bit of a PHP newbie and have been playing around with using sessions and general PHP security. I noticed that the sessions are stored in a directory on a user's hard drive.   Could a smart user...

View Article


Image may be NSFW.
Clik here to view.

php truncate_post() problem

Hello, I have made alot of changes to a wordpress theme I bought, but I know almost no php. At the moment my page has just text from a post with the php truncate_post() method. It is just text with out...

View Article

PHP variable inside JavaScript, delay load

Okay, so my code is (currently) as follows:   <? if($_GET['page'] == "startTime"){ if(isset($_POST['newTime'])){ $unix = mktime(0, 0, 0, 1, 1, $_POST['year']); echo ('<script> function...

View Article

how to retrieve data from many table in database

hi friends how retrieve data in current data update to retrieve from the database from all table in one page how is possible i know to retrieve data from one table. only plz guide me

View Article
Browsing all 13200 articles
Browse latest View live


Latest Images