Drumminxx
Members-
Posts
92 -
Joined
-
Last visited
Never
Everything posted by Drumminxx
-
you also will need to take into consideration "Browser Support" IE being the most the most popular supports only javascript and vbscript and since most other browsers do not support vbscript you'll run into compatibility issues so that leaves javascript. ok now we are off topic ;)
-
;D
-
because you edited your post to reflect single quotes inside the double quotes, your original post would have terminated the strings and caused an error.
-
so if you: if('2006' != '2005'){ echo "<div class=\"class\">\n"; echo "<h5 class=\"class\">text</h5><br />\n"; echo "</div>\n"; } does it display nothing :o and redarrow, yes you do need need to escape double quotes in double quoted strings its single quoted strings that you do not need to escape double quotes.
-
<td align="center">Is Member: <input type="checkbox" name="ismember" <?php if($ismember == "1"){echo " [b]value="1"[/b] CHECKED";}?>> that should fix it.
-
post some code. your original post does sound like your trying to do something that will need to be done with javascript, however, you mention "search" is this a sql problem? post what you have that is not working
-
if all your doing is parsing xml then you can use file_get_contents. if your writing to xml then you'll need to use fopen. as to the stream problem the file path is causing this. check if your php setting "allow_url_fopen" is off and if it is and you cannnot change the setting then try: $_ENV['DOCUMENT_ROOT'] . 'path/ofmyfile.xml' I just use file_get_contents though and it works everytime for parsing xml
-
or you could just do this: [code] <?php print <<<END <div class="fixcenter"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="200" align="top"> <param name="movie" value="/images/header.swf"> <param name="quality" value="high"><param name="LOOP" value="false"> <embed src="images/header.swf" width="790" height="200" loop="false" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object> </td> </tr> </table> END; ?> [/code] but if your not going to write any php then it doesn't make sense. of course now the above code has some php in it [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]
-
Thanks, I'll look into that
-
First Time - Building a database, a learning project
Drumminxx replied to SeanDempsey's topic in PHP Coding Help
get this book its great and easy to understand. I have an older version but this newer one should be just as good if not better. [a href=\"http://www.amazon.com/exec/obidos/tg/detail/-/0321336577/qid=1151210165/sr=8-1/ref=sr_8_1/103-1155768-2811805?v=glance&n=507846\" target=\"_blank\"]Larry Ullman, PHP and MySQL for Dynamic Websites[/a] its also great to keep around for a reference -
I started this project that updates about a dozen xml files that provides data for a flash website. my question is does php have any functions for writing to xml files? to be more specific... I can parse the xml with no problem using php functions so thats cool. updating it however, I can not find any info on this. My best solutions are to treat them as text files and use a series of strpos, stristr, etc. to update the files or use a database to store the info and add, edit or delete from the database and then rewrite the xml files. any thoughts on this.... thanks
-
Text Replace Form. humm Database Install Page
Drumminxx replied to scheols's topic in PHP Coding Help
$db_connection = mysql_connect("localhost", $_POST["username"],$_POST[ "password"]); @mysql_select_db($_POST['databasename']) or die( "unable to select database"); try that -
[!--quoteo(post=387518:date=Jun 24 2006, 01:44 PM:name=vin301)--][div class=\'quotetop\']QUOTE(vin301 @ Jun 24 2006, 01:44 PM) [snapback]387518[/snapback][/div][div class=\'quotemain\'][!--quotec--] I want to do the following: The main page will pull in another file that has a table to display the form results. MAIN PAGE $str = file_get_contents("formFile.php"); AND formFile.php has the following Name: <?= $_POST['fullname'] ?> Address: <?= $_POST['address'] ?> When I do this the POST values do not get filled in. What do I need to do? If I do an include() it will work but I cannot assign the include to the var ... this won't work $str = include(); Thoughts? [/quote] file_get_contents get the contents of a file and puts it into a string. in order to get some values for fullname and address you need to display formfile.php then when the user clicks the submit button, fullname and address will have some values that you can use. how you direct the user to your form can be done a few different ways so you will need to post some more code in order for anyone to track down the problem include() will just include the file into your script. it can be just some html or some code to be executed. include('formfile.php'); post some more code...
-
what are you seeing in the address bar? http:://mysite.com/members/upload/files/filepage.htm?id=2 or [a href=\"http://mysite.com/members/upload/files/filepage.htm?id=\" target=\"_blank\"]http://mysite.com/members/upload/files/filepage.htm?id=[/a] try typing in the address by passing the var manually and see if your script works then I see this from your first post <a href='http://mysite.com/members/upload/files/filepage.htm?id=$fileid'>$filename</a> which is probably your problem try <a href='http://mysite.com/members/upload/files/filepage.htm?id=' . $fileid . '>$filename</a> or <a href="http://mysite.com/members/upload/files/filepage.htm?id=$fileid">$filename</a> note: double quotes and not single quotes above I would like to see how your passing the id to the url, typing it in manually would narrow down the problem
-
Dreamweaver Newbie Needs Help!
Drumminxx replied to EdgeWalker's topic in Editor Help (PhpStorm, VS Code, etc)
I have been using dreamweaver for quite sometime and have just recently upgraded to dreamweaver 8 and like your boss, I wouldn't code php with anything else. Color coding makes life easier I have never experienced the problems your having though, for starters, I would just try a uninstall and reinstall and see if that helps -
if you are trying to pass some data into flash then you could just provide it to flash via the url in your object and embed tags here is a small example of what I am talking about <param name="movie" value="moviename.swf?areaaff=london&areacode=0208"> <embed src="moviename.swf?areaaff=london&areacode=0208" of course you will have to write some action script in your flash file to handle the var's. I'm sure you can find a tutorial out there somewhere that explains how this is done
-
Automatic Deletion (MySQL Data)
Drumminxx replied to xRhysx's topic in Editor Help (PhpStorm, VS Code, etc)
Just write a little function that gets ran everytime someone logs into your site, other members would be helping you with some house keeping and not even know about it. If you need help writing that script, why not first take a shot at it on your own and then ask if you get stummped, it's a great way to learn