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

view mysql table

Hi,   Current sql output:-   A with 20 length/set | B with 5 length/set HelloWorld   i want the output like below based on column length   Hello<empty space 15char>World   Thank you.

View Article


Query not returning all rows.

 Hello, my code below seems to work great when you enter a value into the input however it does not return all values when the input is empty. It shows rows 1-5 and 79-95 does anyone know how this is...

View Article


curl_multi_exec need to create function to execute for post details to website

Hello   I am looking at creating a function for multiple post request to be send to server   the code i have written is as follows   function retrieve($urls)     {           $mh = curl_multi_init();...

View Article

echo to screen formatting incorrectly

I have been trying to build a list of items with an onClick event but the link keeps on formatting incorrectly! Can anyone advise how to correct this please. $name=$myrows->display_name; ="Fred...

View Article

Image may be NSFW.
Clik here to view.

How To Print Images with php print function

Please help me out. I av a form that collect picture from an  upload field in a client form and they want the picture to be printed out in the user page. this work perfectly well on localhost and it...

View Article


Wordpress - Events Manager Pro - WorldPay IPN - Code issues?

Hi,   I'm trying to create an IPN (callback) for WorldPay to work with Events Manager Pro (a Wordpress plugin).   I've spoken to both WorldPay and EMP, but neither offer support with custom code.   I...

View Article

retrieve all data from a table

I am trying to retrieve all the data from the Job Status table and display it in an html table. This is the code I have, I get the following error: Parse error: syntax error, unexpected end of file...

View Article

html table with button call popup box with drop down list

I am trying to get the update button in the html table to call up a pop up box with a drop down list in it with an exit button that closes the pop up box. Below is the code I have so far:...

View Article


How to create simple CMS without database

Hello, I haven't found any tutorial regarding this topic, how should I do this? Should the backoffice generate xml?   It's a very simple site, but I don't want to use a db.   Thanks.

View Article


php excel reporting with google analytics data

Hi,   I am using php to generate report into a spreadsheet, basically, it goes like this. i have keyword links in the website..every click to that link was agreed to be a pageview. I can get the data...

View Article

Need Help With Logic

I have read and learned a lot in the last couple of weeks, working on my membership directory listings.  I am close to the final solution, but can't seem to work out the right logic for the final...

View Article

Getting a users rank from a mysql table with PDO

Hi, I am trying to get the rank of a user in a database, based on his score, so when the user logs in he can see his rank. I am using this to build a list of all users ordered by their score for a...

View Article

Submitting Multiple variables in a search

Hi all, I am new here and have a question.  I have created a search tool for a database table which I am currently searching through the Description column in the table but would like to add the Title,...

View Article


Displaying accurate results for mobile devices.

Hi all. I'm building a site (which you will be able to find here: http://www.xclo.mobi/xclo2) and have a list of categories on this site. Each category on that page is linked to an item In my Database....

View Article

Image may be NSFW.
Clik here to view.

Sort a directory by filename only showing the latest file of each type based...

I have these files in a directory and can easily list to a webpage...

View Article


A bit complexed question about cookies being deleted before the output starts

Hi, Hm,I've been trying to do this in many different ways,but I never came into solution. The problem is that I have two pages,one for login second for MySQL check and redirection back to the index...

View Article

on IIS gethostbyaddr take 4 seconds

Hello with IIS, I have problem, that if IP address has none reverse dns record, it take 4.5 seconds until php can process it by GetHostByAddr($ip). If IP has reverse hostname, answer is instant. I do...

View Article


cutting firstname.lastname out of first.last@domain.com in a MySQL result to php

I have a MySQL database in which each row has in it one or more email addresses.  The email addresses are unique to my organization and are firstname.lastname@domain.com.  In an instance of multiple...

View Article

upgrade system to +20

Need a little help here for my game.   Let's say you can upgrade items... I want users to upgrade to level 20.   Let's say, +1 is 80% chance and to get it to +20 would be 2% chance.   How would I go...

View Article

assigning rank to array keys

${'stats' . $run} = array ( "AP"=>$AP, "EP"=>$EP, "SP"=>$SP, "FX"=>$FX, "Horse"=>$horse, ); $allstats[] = ${'stats' . $run}; I have that running in a while loop to add an array to the...

View Article
Browsing all 13200 articles
Browse latest View live