Search found 21 matches
- Thu Feb 26, 2004 12:16 pm
- Forum: PHP - Code
- Topic: Javascript (window.open) with a PHP Variable
- Replies: 1
- Views: 429
Javascript (window.open) with a PHP Variable
I am attempting to open a new window using javascript while passing a PHP variable to that window. I've tried several different ways to no avail. Here is my latest try... <script language="JavaScript" type="text/javascript"> <!-- function popUpCenteredWindow() { var win2...
- Thu Feb 12, 2004 10:35 am
- Forum: Databases
- Topic: COUNT Query NOT working
- Replies: 6
- Views: 832
OK That cleared up the whole 'date' part of my query. Thanks, for some reason I was swapping the month and day. Duh... Moving on, I still get wierd numbers returned when I do counts. I have a page where I want to count rows with different requirements. I have saved each query in it's own file then I...
- Wed Feb 11, 2004 10:50 am
- Forum: Databases
- Topic: COUNT Query NOT working
- Replies: 6
- Views: 832
- Tue Feb 10, 2004 4:59 pm
- Forum: Databases
- Topic: COUNT Query NOT working
- Replies: 6
- Views: 832
- Tue Feb 10, 2004 3:07 pm
- Forum: Databases
- Topic: COUNT Query NOT working
- Replies: 6
- Views: 832
COUNT Query NOT working
I am trying to do a COUNT on records that match a certain criteria and I keep getting a "0" and I know there are at least 2 that match. Here it is, I can't see what's wrong I've used this formula before with different specifications. FYI - $today = date(Y-m-d); $sql = "SELECT COUNT(ga...
- Tue Jan 27, 2004 5:39 pm
- Forum: PHP - Code
- Topic: display image as variable
- Replies: 9
- Views: 911
- Tue Jan 27, 2004 5:30 pm
- Forum: PHP - Code
- Topic: Can it be done? build a JS array with PHP?
- Replies: 2
- Views: 279
- Tue Jan 27, 2004 12:04 pm
- Forum: PHP - Code
- Topic: Can it be done? build a JS array with PHP?
- Replies: 2
- Views: 279
Can it be done? build a JS array with PHP?
I am attempting to build a JS array using PHP output from a database to build the actual lines of the array. Everything is actually working so far except for two things. Here's an example (pertinent info) of the final JS array I want to build: <script language=JavaScript> var 1Array = new Array(&quo...
- Mon Jan 26, 2004 9:26 pm
- Forum: PHP - Code
- Topic: display image as variable
- Replies: 9
- Views: 911
- Mon Jan 26, 2004 5:57 pm
- Forum: PHP - Code
- Topic: display image as variable
- Replies: 9
- Views: 911
That's not it, that was a typo when I put it in the forum... Let me go a little deeper... This is supposed to place a checkmark (image) in a calendar day when that day has been selected in the database (all that is working properly). So after I query the db I set the variable and do the if statement...
- Mon Jan 26, 2004 5:33 pm
- Forum: PHP - Code
- Topic: display image as variable
- Replies: 9
- Views: 911
display image as variable
I am trying to display an image when a certain value = True but I am having no luck it displays the $variable_name not the image. What am I doing wrong? $image = "<img src="../images/checkmark.gif">"; if ($d1 == "y") { $m1 = '$image; } echo "$m1&q...
- Wed Jan 21, 2004 1:43 pm
- Forum: Databases
- Topic: Truncated MySQL Values
- Replies: 1
- Views: 335
Truncated MySQL Values
I am building a database and am currently having a time with the output being truncated. If I look in the database itself everything is great but when I do any output it truncates at any space. For instance the field full_name has 'Joe User' and gets returned as 'Joe' or phone numbers get returned a...
- Tue Jan 20, 2004 3:01 pm
- Forum: PHP - Code
- Topic: Pleas check this query code I can't see what's wrong
- Replies: 2
- Views: 592
Pleas check this query code I can't see what's wrong
Here is a query I am working on that pulls data from 2 different tables and sorts out the results without duplicating the division field. I can't tell what's wrong. Maybe I've been looking at it too long... <? require("includes/connect.inc"); $connection = mysql_connect("$DbHostName&q...
- Thu Jan 15, 2004 5:59 pm
- Forum: PHP - Code
- Topic: [SOLVED] Nested variables that return another variable
- Replies: 6
- Views: 697
- Thu Jan 15, 2004 5:21 pm
- Forum: PHP - Code
- Topic: [SOLVED] Nested variables that return another variable
- Replies: 6
- Views: 697