php


Mysql - Pdo: getting the id for data selection - from another php file


I have a couple of nearly identical files in a large number of folders.
The difference is the id set in every folder/file.
I would love to put 1 file in each folder with the corresponding id of that folder/customer.
All files in that folder would include/import/ that number/file
AND
all datas would be changed with little effort...
Is that possible?
lets say i put a .php file in each folder with just the id number of that customer.
All file would somehow import that number or file...
AT the moment i use that in every file:
<?php require_once('../connections/connect.php'); ?>
<?php
$sql = "SELECT * FROM my_table_A where id = 1";
foreach ($pdo->query($sql) as $row_Recordset1)
?>
Is there a better way?

Related Links

ImageMagic for php slow compared to GD
PHP 32bit. How to compare uint64 in string and binary representation?
OAuth 2.0 vs JWT
PHP setting $GLOBALS produces blank result
PHP How to avoid multi-session
Google Chart not displaying when connecting to MySQL Database
Laravel 5.2 conditional validation
Success message not displaying using jQuery ajax
Apache server - firefox xls.part could not be saved, because the source file could not be read
Code to use jquery to make parent menu item to be clickable
Dynamically populate Google line chart with data from MYSQL
Zend2 - how to forward other module controller?
301 redirect from double slash to one slash in .htaccess file
doctrine odm query reference many field
PHP - Sort array with string values as numeric
WooCommerce my-accounts Page - get the current user for orders query

Categories

HOME
svn
mpdf
freeradius
windows-8.1
yii
android-fragments
compilation
consul
portable-class-library
liferay-7
iptables
ui-automation
u-boot
locationmanager
ex
google-awareness
sql-injection
global-variables
nest-api
varnish-vcl
activeadmin
android-permissions
generator
restier
spreadsheetgear
msdeploy
fatfs
copy-protection
es6-modules
winsock
instructions
fotorama
seafile-server
grails-2.5
recovery
iscroll
notesview
expandablelistview
return-type
roracle
sharpdx
maven-jaxb2-plugin
sequence-diagram
htmlspecialchars
alertify
front-camera
bpms
haraka
scheduledexecutorservice
streamwriter
tablespace
openquery
livereload
seccomp
xcode8-beta4
dojo-build
right-to-left
google-maps-api-2
openshift-cartridge
chicagoboss
astropy
pythonxy
uitest
bootstrap-wysiwyg
org-babel
actionpack
kotlin-android-extensions
rfc5545
sablecc
n-tier-architecture
cout
tabris
squeezebox
maven-central
.htpasswd
xulrunner
wso2bam
principalcontext
compiler-flags
yii-booster
indesign-server
pacman
xs
system-requirements
chronometer
affinetransform
expression-web
data-dump
nosetests
android-2.1-eclair
pinax
resharper-5.0
firephp
stretchblt

Resources

Encrypt Message