I am having a problem with php variables that are stored in a mysql table. If I have $text = 'This is some text ' . $var;
echo $text;Then I have no problems with the $var being replaced with its value but if I pull that same text from my mysql database the output is "This is some text ' . $var"...
I have a string that I am trying to explode on each </p> tag using the code
$lines = explode('</p>', $text);
but it does not work. What am I doing wrong?
David
Remember: You only know what you know
and - you don't know what you don't know!
I have, for example, and array containing the following:
row1_value1, row1_value2, row2_value1, row2_value2, ..., rown_value1, rown_value2
The question is - is there an easy way to add all the "_value1" to get a total and all the "_value2" to get another total without$total1 = $row1_value1 +...
I am sure I have seen this somewhere but I cannot seem to find it again!
How do I write a js variable into a php variable?
I have tried$data = "document.forms['test'].elements['input0']";but it does not work
David
Remember: You only know what you know
and - you don't know what you don't know!
The scenario is that I have a link on a page which opens in a popup window - no problem with that.
In the popup window there are links and what I want to do is open the page back in the parent window and close the popup. Is this possible?
I have tried searching this forum but cannot seem to...
First off I realise that Word formulas are not the most user friendly thing that MS has come up with but they make life simple.
I have a Word document with several tables in in. I have bookmarked some cells and now I am trying to use the values from the bookmarked cells in calculations in other...
Is there an easy way to test, in a query, whether all of the fields in a record are NULL?
I appreciate that it is unusual to create a table that contains all null records but the circumstance that I have requires it.
David
Remember: You only know what you know
and - you don't know what you...
I am trying with various amounts of success to open a popup window from within a php script when a user logs in and then to close it when they log out.
So far I can open the window with this codeecho "<script language=\"JavaScript\">newwindow = window.open('./myfile.php', 'newwindow'...
I am not sure if this is sendmail related or not - just hoping that someone may be able to point me in the right direction.
The problem that I am having is that on some incomming mail servers blocks of data are being lost. I have fairly good proof that it is the mail server that is doing it and...
I fully accept that I do not understand about installing applications under Linux but I have decided that I need to learn so I am attempting to install sendmail.
I am trying to install Sendmail 8.12.11 on Mandrake 9.1
I am following the instructions but I am getting the following error...
I am sure I have seen the answer to this somewhere in this forum but I cannot seem to find it when I need it!
I have a form which is picking up the data from a table and I want to be able to go to a record by selecting a name from a dropdown list which has all the names (in alphbetical order)...
I am having a problem with the WHERE clause when trying to open a form.
If I use
DoCmd.OpenForm "Appointments", , , "LeaderId = 34"
then it opens the form with the correct details but if I try to use a variable, as below
DoCmd.OpenForm "Appointments", , , "LeaderId = " & Leader
then I get...
I cannot quite get my head around this problem so any help would be appreciated.
I have created an array from a recordset - the data in which is ok and looks like this:
Date Value
14/01/1998 4
28/11/1991 4
04/02/1982 2
30/10/1980 1
12/03/1975 1
What I want to do...
Can anyone point me in the right direction? I am a bit rusty with VBA (last used in Access 97)
I have the following code that, in principle, works. What it is doing is a calculation for output on a report. The problem is that it is using the first record in the database every time.
Function...
I am sure that this question must have been asked before but I cannot see it anywhere.
My poroblem is that I have not done any VBA programming for quite a while - in fact the last time was in Access 97. I have now graduated to Access 2002 and it has changed!
I have written a function to do a...
I know that this will appear as a bit of a basic question - but I am still relatively new to this Linux thingy.
I hav a machine set up with mandrake 9.1, it has Apache 2 installed and running without any problems.
My question is which httpd.cong file does it use? I have the following...
I have a set up of a desktop machine running XP home, a desktop running Mandrake 9.1 and a laptop also running XP home. All of these machines are connected on a lan through a router.
All the machines "talk" to one another but I have a very minor annoying problem in that whenever I try...
Is it possible to resize a window on opening based on a parameter calculated when the window opens?
For example I want the window to accomodate a title which I will be retrieving from a database. I have no problem with the calculation - it is just what code to use to resize and how to...
I am yet another newbie to JavaScript but can sometimes manage to find my way around it - so please bear with me.
I have searched through this forum and although there are some similar topics I cannot find one that completely answers my questions.
What I am trying to do is this: I have a page...
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.