keeB
-
Posts
1,075 -
Joined
-
Last visited
Posts posted by keeB
-
-
The addition you'd need to make to your code, then, is to read the images directory in the same fashion as you are the audio directory
The other piece of this, which I assume is what you're having trouble with, is understanding how to merge the two items in your array and display them.
Take a look at building an array that would look like
Array ( [0] => Array ( [0] => song1.mp3 [1] => image1.png ) . . . )
Do you know how to do that?
-
wat about a | will that work too ?
|| means OR.
You'd use it like so:
<?php if ($my_mom == "ghetto" || $my_mom == "white trash")) { // if my mom is ghetto or white trash... $i = "cannot spell which is why I say 'wat'"; } ?>
-
Can you post a DDL of your database and the query you are currently using to generate results of your search?
-
How familiar are you with SQL joins?
-
Tell. Don't ask.
-
http://tryit.adobe.com/us/cs4/dreamweaver/tw1/?sdid=ETRPJ
Adobe Dreamweaver is the canonical paid choice for an 'all in one'
You can achieve the same level of success with Free (Open Source) tools such as Eclipse PDT with embedded browser.
I'm of the opinion that each tool should be designed for a particular job and do it extremely well. As such, I shy away from "ALl in one" tools. The tradeoff is to be most productive I require a lot of screen real estate and virtual desktops (provided by linux)
-
That might be the coolest name ever. Qadoshyah.
Your form is returning 2 results and isn't very user friendly. Functionality wise it's not very pleasing to use. Being able to search by some other keywords would be nice.
When you say you want to incorporate all of the data in to the search, are you taking about the results or the input parameters?
-
There wouldn't be one canonical person who does the grading for a course?
-
Instead of classes_to_students I'd store the data in the ReportCard table. This way you have a summary all in one table without an intermediary. The classes_to_students recommended by roopert seems a bit over the top for this case.
<?php class ReportCard { private $student; //fk to student private $instructor; // fk to instructor private $course; // fk to classes private $grade; // A, B, C, D, F } ?>
-
I am working on a project which requires analysis and generation of a Cartesian Product for a list of Products which go together. Ideally, you'd be able to group the list of Product's by price range (low, mid, high.)
Given this task, how would you accomplish it?
I'll be happy to share snippets of my results as the post matures.
-
-
Invisible iframes ftw
-
Slimmer != better. This guy is writing in dreamweaver. That tells you he's not ready for short hand if statements.
-
No, I mean -- I now know the username and password to your database. This is not a good thing.
-
I suggest removing your db username and password from that code snippet.
-
Only thing there is tracking sessions. If session has been idle for > $threshold, increment counter by 1 and close session.
-
Ohhh browser wars.
-
How is your mail server connected? Can you send an email without doing it through PHP?
-
Yes. It means you got in. http://php.net/mysql_connect
It clearly states it returns FALSE if it fails to connect.
-
But you want to do it when the page closes. You might be able to do something on the <body unload attribute, but I am not entirely sure.
-
Can you show us your updated search code?
-
Is this issue solved now?
-
Cool solution Dark
-
$q = "select * from table_where_emails_are_stored..."; $ret = mysql_query($q); print '<select name="email">'; while ($row = mysql_fetch_assoc($ret)) { $email_addr = $row['email']; print "<option value=\"$email_addr\">$email_addr</option>"; }
or something
Newbie question on array of .mp3 files
in PHP Coding Help
Posted
Here's what I came up with
Given
Output:
And... here's the code