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

Image may be NSFW.
Clik here to view.

I seriously cannot figure out what's wrong with this! (EDITED files)

Hey guys,   So I am adding to an already existing Shipping quote form and backend reply system. I basically just added one new item, tested if it was working on the front and backend (which it was),...

View Article


Passing query sum result to php variable

I have the following query that gives me the result i want. In a nutshell it searches two columns to find the max value in each of these two columns and returns the sum of these two values.   When i...

View Article


Reading data from jquery post

Hi all,   Thank you for taking your time to read my post. I am using php, ajax(jQuery) and json to save data to a database.   Here is my JavaScript code: <script> var jsonList = [...

View Article

Mysql lookup into mailform (mailto)

Hey, I've created a database where my users (joomla users and CB) can point out that they would like to recieve emails. This code gives me a nice overview of all the users their email, and with the...

View Article

Image may be NSFW.
Clik here to view.

404.php

I am not sure if this is the correct place for this post, but if not please someone advise me where is better?   I run a wordpress website and a developer set me up a custom 404.php file which...

View Article


num_rows issue, Warning: mysql_num_rows() expects parameter 1 to be resource,...

Well basically my html form is at the bottom of the code. Then I just use the $_Post function to get what was input. And then a bunch of if statements to check if you are entering a legit email,...

View Article

How to add a hyperlink or a picture to php variable file

Hi im trying to add a hyperlink or a picture to php variable file, please could someone tell me if possible and how to or help with terminology and point me to a reference.   The mainpage index.php has...

View Article

PREG match all characters?

Hello.   Is there a way to make preg_match match all content such as:   <a href="/cashback.aspx?linkauth=MATCHEVERYTHINGHERE&mpurl=test&usr=test">   The linkauth has a random string on...

View Article


Can someone help me know what is wrong with this code. it does not uplaod...

When trying to upload a picture file it goes error:Failed to upload file. Contact Site admin to fix the problem What am I doing wrong   ======================= <?php include 'db.php';...

View Article


drop down list with if yes please specify option

How do I allow the user to specify what data they want backed up if they select yes in the drop down list below.   Data Recovery Required?: <select name="dataRecYN" id="DataRec">...

View Article

Image may be NSFW.
Clik here to view.

Fill in the blank with the appropriate article

Hi!   Who are the good people who make me a simple code?  

View Article

how To Count the total rows in 10 tables,

how to COUNT the total rows in 10 tables, example :friendshipsms[500] how to count the rows in 10 tables? i tried this but did'nt work? $sql="SELECT COUNT(*) FROM table1,table2,table3,table4,table5";...

View Article

Little homepage builder

Hey @ all, At the moment i'm involved in project where i want to write a littele website builder After the registration should it be possible for the user to "build" a little webpage with a predifined...

View Article


What is the logic to update three images of same ID?

I am trying to update 3 images of same product_id. I have a different product_table and Product_images table. The product_images table has 5 fields; image_id, product_id, name, images, ord. I am trying...

View Article

Count++ (maybe!) Problem...

Very new to this and trying to adapt some code so that I can print the sum of a variable in a loop. If anyone can assist I would be eternally grateful. I want to add the values of (integer)...

View Article


mysql query/fetch problem with $_GET['']

Hello!   I've been into mysql and encountered a problem, not serious one but it is bugging me.   I can do dynamic page linking as follows, in short hand....   echo "<a href=\"foo.php?page=" ....

View Article

php 2 if statements help

Hi, i wrote this code, basically i want users to only be able to create 1 crew, but for some reason it's not working, any help is appreciated.   elseif($username == $checkifleaderofcrew){ echo("You...

View Article


PHP_Debug vs xdebug?

Hey,    I am taking a debugging course, and wanted to know what is better to use between PHP_Debug VS xdebug. Thanks!

View Article

PHP csv import into SQL Server without header

I have this import code and it works if I take the header out of the csv file, but I would like to keep the header in the file so I can keep a template for my co-workers to use so there is no issues...

View Article

Grouping data and getting sums

Hello,Self taught guy here. Thanks for reading my post.I've made a app to track the sales of floating rubber ducks for a duck race.I have a database which contains data similar to this: id  soldby...

View Article
Browsing all 13200 articles
Browse latest View live