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

MySQLi : Dynamic bind_param() parameters

I would like to dynamically pass data for bind parameters, depending on user selection. This code gives me two errors: Warning: Invalid argument supplied for foreach() Warning: Wrong parameter count...

View Article


View in PHP? Template in PHP?

I have a question, no a rant even because there is absolutely no information about this topic. Sure I read a lot about templating engines and MVC frameworks already out there. But what if I am building...

View Article


How to correctly structure php file

Hi everyone.   I create a website and now i want to optimize it and well structure it. Actually, all php file are in root directory and i want to well structure it.   Is there a better way to structure...

View Article

When closing connection when using it a lot in page

Hi!!   For now, i use mysql_..... to query the DB. Not i want to switch to mySQLi.   99% of time i not close the connection.   the structure of my file are: include for header,include for...

View Article

Need help with a code

Hello guys, i'm trying to separate something like this: 15969_D55T_000 this: 3105_C55_00148 and this : 15969_D55T_00 using php.     I have a few letter and number combination like these in a database...

View Article


Single point of entry for PHP app

I know some people make a single point of entry to their website which is usually index.php - the first site you visit and login from.   But what is this exactly? Is it a controller that decides which...

View Article

Saving CSV file

I'm trying to get this code to save a csv file to the root of my hosting accont. $result = mysql_query("SELECT p.reference AS sku, IFNULL( p.price - sp.reduction, p.price ) AS price, sa.quantity,...

View Article

PHP to import CSV file into SQL Server

I have found some code that I am trying to work with to import some data from a CSV file into a table of my database.  It works and imports the data, but always inserts a NULL row for each column....

View Article


Image may be NSFW.
Clik here to view.

Help with simple PHP

Hey guys,   I'm new to the whole programming scene and am trying to setup a website. The domain is aerithea.com and I'm trying to link the logo on the top left to this php file below but it's not...

View Article


PHP Project Deposit system

Good day please if u can help i will be very happy.   Please i have a similar project like moneyperfect.net but my transactions will be entered manually. Thanks All the php help.

View Article

MySQLi bind_param() reference

I am trying to pass several parameters dynamically to the bind_param() function. Here is the error i receive: Warning: Parameter 2 to mysqli_stmt::bind_param() expected to be a reference, value given...

View Article

Counting issue

I'm having an issue counting a table with table columns listed as numbers.     I have a table called timetable with fields 1, 2, 3, 4 so on. If I try to count like this <?php $query = "SELECT 96,...

View Article

PHP Login System

Hello guys,   I'm trying to make a login system linked to a mySQL database and below is what I have so far. The problem I'm having is when I try to submit both a username and password, I think the...

View Article


Users Level Login System Leads to Blank Page

I'm creating a users level login system in php & mysql. However, it leads to a white blank page. I can't figure the error. Any help is much appreciated. Thanks.   Form.html     <!DOCTYPE...

View Article

Image may be NSFW.
Clik here to view.

Combo boxes to load in result dynamically

Hi all,     I have a page with 3 comboboxes. After selecting options from the three. Onclick of the submit button I would like for an image to load in dynamically for that selection.    What would the...

View Article


Image may be NSFW.
Clik here to view.

Help with Date in PHP Email Code

Hello. I need help getting the date to submit in the email from this php form (http://www.cindys.com/awardreorder.php)   I want the date to the be the first thing in the content of the email submitted....

View Article

Image may be NSFW.
Clik here to view.

Query not returning right - there IS a match

I am trying to run queries against a table and running into very confusing problems. I keep returning "0" rows for obvious matches - attached is a screenshot of an example (query+"no results" and...

View Article


Moving multidimensional array values

I'm trying print out a multidimensional array in this manner: Image showing how i'm trying to display it What i'm having a problem with is finding the duplicate STEAM IDs, removing the duplicate STEAM...

View Article

how to save php output as log.txt?

how to save php output as log.txt?     plz give any example .tryed myselfe but no luck.

View Article

Automated form submission to an external script question

Hey guys, got a question and I'm not really sure about it, so I thought I'd ask.   One of the pages on my server contains an ordinary HTML form, that is designed to contact an external script for its...

View Article
Browsing all 13200 articles
Browse latest View live