Including" is a great idea.
But please tell me this:
Would an ajax call, using a second PHP script, cause the loss of the included variable's contents?
The scenario is like this:
The 1st php file allows the user to query a table based
on some criteria, eg "Let's see who I haven't called in the last 3 weeks."
He then inspects the 1st 20 records, as well the count of the entire resultset.
If that's the resultset he wants to now process, he...
vacunita - Your solution doesn't quite fit my paradigm in that
the php file that does the query - does only that.
The NEXT php file processes this resultset record by record.
Can I overcome the php overhead you speak of by using
a reference to the resultset? A reference, after all,
does...
I posted this question a little differently in the PHP forum,
under the title "How do I access a Mysql resource from another PHP file?",
if you'd kindly take a look there.
I'd be interested to know if vacunita's proposed solution would suit me
(and if yes, to be a little more specific).
This probably has to do with the issue of scope or global variables,
or perhaps it's an issue of a pointer to a resource.
I have this Mysql result set I queried, for which I need to fetch
a row one by one. The fetch, however, is done from another PHP file,
one that javascript calls via ajax...
Struggling to pass a resultset gotten via PHP code
$resultset = mysql_query($q);
as a parameter to the next php file,
to be read by something like
$parm = $_POST['resultset'];
to here begin fetching each row.
Is this a Mysql restriction or my ignorance of good PHP code?
If the latter, would...
Dan - you're misunderstanding me.
I'll deal with the database issue later, using ajax
as I use it elsewhere in my code.
For now, I need to know how to capture the SELECT value
from the HTML picklist that pops up in the javascripted child window. (See code in thread's opener).
That's my whole...
How would you tackle this circumstance?
Suppose a person, who checks his caller-id,
dials me back sometime after I called him.
Then he asks me to remove him from my list.
I now need to retrieve this person's id
from a list of already-called people,
to go ahead and delete this guy's records...
My HTML markup contains a div with an id of "buttons".
Within the div is a button defined as:
<input type='button' id='seeHistory' value='See History'>
This button's event handler that looks like this:
case "See History":
document.getElementById("buttons").style.display = 'none'; //Remove...
I think I'm wasting your time because I'm confused.
I use javascript to store values in an array during the user session.
I need to display these data at some point for the user to pick one of them.
It's only then that I need to access the server.
So going the ajax route to present the user with...
My original intention was to hide from view some buttons on my parent window,then pop-up a new, child window,
then redisplay the parent's buttons.
But I had problems with the code that came AFTER I gave focus to the child
window. The parent window buttons should have redisplayed AFTER the...
Also found this for you to look into, at codebellyDOTcom:
" Closing windows that are comprised of a frameset requires
that you ask to close the "topmost" window, *not* the
page that contains the JavaScript closing code. Thus,
where window.close() will work fine with a regular page,
it will...
To clarify -
I need to open a window to display some
historical data I've captured during a browser
session. I want to create a button for the user
to view this data.
The button, "View Data Captured", then will open
this new window, to allow the user to view the data.
The problem I'm having...
I've got a button, when clicked,
will show a pop-up screen.
Get to this window via
var w=window.open ("","newW","height=260,width=350, status=0");
Just to first keep it simple, this new window contains only 1 button
var d = w.document;
d.write('<FORM>');
d.write('<INPUT TYPE="submit" VALUE =...
How do I remove from my menu, when I Ctrl/Apple,
theoption called, "Toast it"?
Long ago I had removed from my system a video package called Toast.
Which is what I think the option refers to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.