I want to copy a file from a users PC (via a form) to a specific folder on
the webserver and store the file name in the Database.
I have tried to use the copy($string, $path) function but I keep getting
errors.
Does anyone know a simplat solution for this? Do I have to copy the contents
of the f
I want to create an array of values from one table and for each result
create a sub array from a lower table but I keep getting the following error
not a valid MySQL result resource in
I use the the following query. Isn't this possible? If not what should I
use? Thanks.
$query = "SELECT * FROM a
Is this possible?
I'm converting a heavy javascript based site to a dynamic php but my problem
is that the navigation sytem is very graphic orinentated and is hard coded
with large and complex javascript. (multiple js files)
So instead of writing all the javascript through php I would like to ca
I am I missing something or.
I have a table category in which there will be three level (possibly more),
I uses ID and parent_id to distinguis between the levels.
All values with parentid = 0 are top level categories, those with a parent
id = id of another value are child values of that pare
I want to build an array dynamically from a database.
I have a structure where there is a top level, under which there can be a
sub level and a sub-sub level etc...
e.g
Top Level 1 id =1 parent id =0
Sub Level 1.1 id =2 paren
A section of my Content Management system allows the user to enter pages (to
be displayed in a popup screen) The navigation is based on page number, so
the user must enter the page number when filling in the form.
In the entry form I have an edit box (int) for the page number that must be
filled.
I'm using PHP with Apache server but I have big performance issues. Not sure
if its php or apache causing them. When I load/refresh a page you can see
the images loading in the status bar before the page loads. I do use js
preload functions for the images, which I used before (with apache) without
I'm creating a Content Management system in which the user will have to
attach a pdf document to an article. This is no problem, I copy the document
to a specific pdf folder and store the document name in the DB to use on the
front end.
On the front end I loop through all documents that are onlin
Anyone know a decent search engine capable of
searching both the DB and static pages?
thanks.
I have a list of records displayed in a table generated from a DB (records
are from numerous DB tables). The table consits of check box(name = DB name
and index), title(url link with ID) date and status
When the check box is selected I need to retrieve the DB table name and a
specific ID
The sele
Hi,
I want to check the date of numerous records in many DB tables, I have tried
using the
date (Ymd); function but it doesn't appear to work, not sure whats going
wrong.
I set a variable based on this function and use this variable within the
select statement!
Anyone know whats happening or if
Thats it, I used the array solution which means I can directly call the
specific variable outside the while loop. thanks again.
Andrew
-Original Message-
From: Michael Rudel [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2001 16:15
To: 'Andrew.Martin'
Subject: RE: [PHP-WIN] mysql_f
I'm using this function to check the value of specific fileds per row in the
database.
such as
$query = "SELECT * FROM $dbn WHERE status = 4";
$result = mysql_query($query) or die("failed to connect to DB");
while ($row = mysql_fetch_array ($result)) {
print "row id = $row[id]";
Hi I have an include file which submits generic forms
The first line of the include is
$url=$sess->url(sprintf("$PHP_SELF"));
so the page reloads before the submit process takes place.
I want to keep a variable value in this reloaded page but it is always being
lost. I don't want to modify the
14 matches
Mail list logo