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

2nd MySQL Dataset not working

I have a function:   //---------------------------------------------------------------------- $server_name='xxx'; $user_name='xxx'; $password='xxx'; $database_name='xxx'; $db1= new mysqli($server_name,...

View Article


assign user defined function return value to a variable in a while loop

I have created a user defined function to return a string value     function getModel($part) { $root = substr($part,0,4); $query = "SELECT Root, Model FROM tbl_Root WHERE Root = '$root'"; $result =...

View Article


PHP Script as Cron Alternative

I'd currently work for a radio station.  On a daily and weekly basis we need to download certain files (mp3) for playback later.   I currently have about 50 cron jobs scheduled to download the files at...

View Article

Posting announcements from one website to all our member sites

Hello,   Not even sure what this is called, but I assume they are doing it with PHP.   We have members who use our template for a website. The website comes with an admin area. We want important...

View Article

cURL automatic login

Am trying to auto login at http://track.aasoftwares.net/pages/Premium_Tracking.htm   am trying the following cURL but i get no results: <?php //initiate curl process $ch = curl_init(); $url =...

View Article


Fetching Weather in php

Hello PHP Freaks Forums,   I am trying to construct a web app to fetch weather off "http://www.flightstats.com", and look up the airport code and display weather for that airport code in that location....

View Article

Dynamic Pages: Update content inside a page

I've been trying to follow this tutorial: but I just can't get it to work. When I click a link, the URL updates with ?p=contactus  or whatever but no content is loaded on the page or the page doesn't...

View Article

Is it possible to get the total of each different item use by users in a...

Hi i spend hours on this and i have search all over but i couldn't find the right code.I already know how to count the items.below is the sql code i use to test .               SELECT Items.item FROM...

View Article


mvc using factory to return models where to call the model validation?

So I am working on an MVC application where the controller methods instantiate a factory that is suppose to return a model. In this case, the factory methods do some kind of work with a database or API...

View Article


HTML form action posting to php file

I'll throw you all a softball, since I'm sure this has to be easy and I'm just daft...   All I'm trying to do is create an html form that posts data to a php file on my server. But the php file isn't a...

View Article

Get Filepath from file input type.

Hello guys, I'm trying to get the full filepath that was browsed in input file type. I've search a lot in google and gave me basename, $_Files but can't make it work.   Can you show me how to get it in...

View Article

How to create a new page from a forum using PHP?

Hello,   http://www.mywebsite.com/viewestablishment.php?=COUNTRY=UK&Region=Northwest....   I would like to know how to make a new page after completing a multi-step Javascript creation forum. I...

View Article

Email Form Header Injection

I created a script that takes info in the url (script.php?id=123), compares that number (123) to a database and gets more information about that person (name, etc.).  The number also corresponds to...

View Article


Passing Variable into DateTime?

Okay, let's get this straight off the bat: I hate manipulating time in PHP. I don't understand any but a little bit of it.   Okay, so my problem is rather simple, I think. I have a form, where the use...

View Article

Image may be NSFW.
Clik here to view.

Continous Checking Of Directory

Hi again guys , alright I'm close to finish my exercise. This time what I want to know is is it possible to continously check a directory for any changes (changes means if the count of files where...

View Article


Image may be NSFW.
Clik here to view.

PHP search an array value

Hey freakers,   I am stumbling upon a problem I dont know how to solve, so here it is. Its something of a luxery problem, even if I cant fix it I dont mind. However, I would like to know if its...

View Article

Issues grabing data using XMLReader and CURL

I have a feed that contains over 10000 vehicles and is about 300 mb and trying to grab and display the name and the price of each vehicle.The problem is it displays all the data in the feed. Below is...

View Article


save coding not working

hi friends this is save coding but this not working if i click submit button not response all data show in address bar like this what is the solution for this problem...

View Article

Image may be NSFW.
Clik here to view.

A question about the developer comments written in online PHP documentation

Hi,     What I'm going to ask may seem to many among you a very trivial/strange question. Actually I'm a beginner in PHP and obviously I need to read regularly the online documentation for different...

View Article

Search in string doesn't work

I'm trying to filter out the rows of a uploaded csv that have the word "lokaal" (classroom) in the 3th colom, but this doesn't work.   What does work: When I search for just one letter (for example the...

View Article
Browsing all 13200 articles
Browse latest View live