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

Passing a values in URL

Hey Guys. I am working on an API for automated voice application.   I was just wondering if it is possible to send a URL value with out assigning anything to it.   For example if someone presses a key...

View Article


Scope question

Simple question about scope.   I want to run different sql statements depending on a boolean value in a variable.  The value would flip back and forth depending what the user is doing.  What/where is...

View Article


best way to crypt a password

session_start(); ob_start(); *host detail stuff here* mysql_connect("$host", "$dbusername", "$password") or die ("cannot connect"); mysql_select_db("$db_name") or die ("cannot select DB"); $username =...

View Article

any suggestions

hey guys/gals   I'm curious if anyone has any ideas here - I visit a site today that once I logged into the site it produced a popup with an offer.. I would like to mock the same tactic but can't...

View Article

Recreating An Uploaded Image to Protect It Against Virus ?

Hi All,   Is recreating an uploaded image an efficient way to protect it against a potential virus ?   I came across this solution at the following address :...

View Article


run function from class on mysql array results

Hello,   I think I've been staring at this too long and now cannot see it straight anymore so another pair of eyes would be greatly appreciated.   I have the below code that pulls a result from mysql...

View Article

Running pdo in seperate file

Hello,   I keep getting a 'Fatal error: Call to a member function prepare() on a non-object' error.  My goal is to have a function where I can pass in sql statements and get back the $row and...

View Article

delete images from database

hi, I'm kind of confused and rookie about the delete image file name from database, I have five images file name  in database  and store image file in the folder, each table column name is  (image_1,...

View Article


Image may be NSFW.
Clik here to view.

JSON Seach

I am trying to create a search query for either the YearBuilt (yachts.theskywatergroup.com/yatco_data_feeds/datafeed_customer/query2.php) or LocationState a Vessel is located in...

View Article


Connected - Input Does Not Populate Table

Hello.   I have been working at this for quite awhile now.   It is a rebuild of a successful DB from years ago (But I no longer have access to that code which is on a disabled machine).   Simply put, I...

View Article

Form Posting

I've been trying to work on a form in PHP. I've got it all set up and submitting but the only problem is that I try to display the data back on the page for testing purposes but every time I hit...

View Article

Image may be NSFW.
Clik here to view.

php and lightbox coding.. help! :)

so, I'm doing this website, and for the most part I've been able to handle the php with what little I know.   http://njypprojects.com/jeffswp/   The desired effect is inside the menus area, I would...

View Article

AES Key

Hi Guys,   I need to generate an AES file key (CBC/PKCS7/256bit) using PHP and then obviously need to store the key.   The second phase is to encrypt a string using the key generated and stored above,...

View Article


Image may be NSFW.
Clik here to view.

Wrong Rates Appearing

Hi  I have been trying to create a shopping cart builder, i am using PHP and Javascript. but i need to pass three values through ajax, Could some one kindly help.  Attached Files  index.php   9.29KB...

View Article

Image may be NSFW.
Clik here to view.

GD Library - How to scale imported image

I made this tool: http://chemistryhelper.eu.pn/ with PHP and what I need it to be able to do now is to make some of the lobes grow or shrink. How I made this script is there is one script which loads...

View Article


Curl - String is too long?

Here is my code to add message on my forum. I have a problem, because I give too long text in the variable $ message is on the side instead of the ready message only appears the error: "Momentary no...

View Article

How to parse this XML array?

Hello everyone,   For an application I'm working on I'm connecting to a webservice which gives me an XML as response. I have no influence on how that XML is formatted and I am trying to figure out how...

View Article


Permute multi-dimensional array

Hi,Does someone know of a recursive way to permute $data? Currently I am using iteration and that sucks.. I tried without luck, online examples were only about 1-dimensional array's. $data = [ [1,3,4],...

View Article

Circular reference of classes

I have a core class that does the majority of the heavy lifting for my framework.   I also use an external class "access" to check for user access to resources. While trying to streamline things a bit...

View Article

Insert query not working: Pls respond as soon as possible

The given query is not working, it is echoing "You are doomed". so don't know hwat is the bug.   <?php          session_start();      $host = 'localhost';      $db = 'cramis_2012';      $user =...

View Article
Browsing all 13200 articles
Browse latest View live