wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
For some reason active only works in certain browsers. The only browser I got it to work on is IE(7 - I don't know weather IE6 or below supports it). Also you will only get to see the active style when you hold down the mouse button on the link. I don't think active is that import. I always style :link and :active the same.
-
[quote author=PFMaBiSmAd link=topic=94096.msg495281#msg495281 date=1167749012] The original poster only has a total of the three posts that are in this thread and has not been active since the May 24, 2006 post. It is highly unlikely that he is still in need of help with this nor does he spend any time on this forum to see the recent responses. [/quote] Agreed. Thread locked.
-
[b]Topic Locked Posting multiple copies of the same question in different forums is against the forum rules. Please do not double post threads around the forums thank you. You already have a thread open in the HTML Help forum.[/b]
-
Not seeing all the code
wildteen88 replied to calimon's topic in Editor Help (PhpStorm, VS Code, etc)
You should not need anything to open PHP files. Only a PHP/basic text editor, Dreamweaver is more than fine for this. Is there other PHP files on the server? If there are download a different PHP file instead? Is it the same? -
a:active should be placed before a:hover io believe. Also AXISS the forum converts [nobbc]</a>[/nobbc] to [/url] for some odd reason. To stop this you should post all code into code tags! ([nobbc][code][/code][/nobbc]).
-
Get all the names in an array when you get them out of the database then use the implode function to convert them in to one big string, example: [code=php:0]// connect to mysql here // the query: // select all the names from the employee table $qry = "SELECT name FROM employee"; $result = mysql_query($qry); // put the names into an array while($row = mysql_fetch_assoc($result)) { // our array will be called names $names[] = $row['name']; } // now we implode the array into a string: // format will be the following: // name1, names2, name3, namex $namesList = implode(', ', $names); // print the HTML marquee: echo <<<HTML <marquee behavior="scroll">Our employee's: {$nameList}</marquee> HTML;[/code]
-
There is a problem with your query. To find out what is wrong change this: [code]$news = mysql_query($newsquery);[/code] to this: [code]$news = mysql_query($newsquery) or die("Error with query <pre>{$newsquery}</pre>:<br />" . mysql_error());[/code]
-
[SOLVED] How call mysql_fetch_array more than once?
wildteen88 replied to JJohnsenDK's topic in PHP Coding Help
What are you trying to do I do not understand? Also don't use the same variable names. Use something different like so: [code]$row2 = mysql_fetch_array($result); echo $row2['name']."<br /><br /><br />";[/code] Otherwise you are overwritting the variables. Also note anything your place out side of the while loop will only be run once. So the following code: [code]$row = mysql_fetch_array($result); echo $row['name']."<br /><br /><br />";[/code] Will only display the first row return from the mysql_query. Whereas the while loop will loop through the result set allowing you to get 1 row from the result set on each repetition of the loop. -
change the action on the form to where you want the form to be submitted to rather than submitting to itself: [code]<form action="add.php" method="post">[/code]
-
You need to change phpMyAdmins configuration. Go to where phpMyAdmin is installed to and find the file called config.inc.php open that up for editing and find the following line: [code]$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?[/code] Change 'config' to 'http' instead. Save the config.inc.php file. Now go to phpMyAdmin. You should now get a login window. Enter i the username and password for that username. This will then log you in to MySQL with the username/passwprd you supplied.
-
use heredoc: [code]print <<<HTML <a href="#" onclick="window.open('download.php?id=$id','','width=500, height=400');return false" title="{$title}">{$title}</a> HTML;[/code]
-
If you give a file/folder the permission of 777 that means that everyone will full permissions over that folder. You should use 755 instead as that should only allow the owner to read, write and execute.
-
Not seeing all the code
wildteen88 replied to calimon's topic in Editor Help (PhpStorm, VS Code, etc)
Whats it like in other text editor? Is it the same? If it is perhaps it didn't download properly. Try redownloading the file. Or set-up a project (Site > New Site) in Dreamweaver and use the FTP builtin to Dreamweaver to edit the files from the server. -
Those are fine. Make sure you put those tags in between the header tags ([nobbc]<head></head>[/nobbc]).
-
Not seeing all the code
wildteen88 replied to calimon's topic in Editor Help (PhpStorm, VS Code, etc)
YOu cannot download PHP Code from the browser. You will have to download via FTP or from the websites control panel. PHP is pre-processed. So when you view a php file in the browser what you see is the output generated from that file when PHP processed the script. PHP scripts do not show the the actual source code (PHP code) just the generated HTML. -
Its a PHP configuration issue. What OS are you using? If you are on Windows then copy libmysql.dll to C:\WINDOWS and restart your server. PHP Should now be able to load the extension. Also it has nothing to do with the version of MySQL/PHP you are using. Its just with PHP5.x you now have enable the extension for mysql. PHP requires finding the libmysql.dll file when loading the mysql extension. Otherwise PHP will say unable to load x library during startup.
-
You need to enable the MySQL extension. Please [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]this thread[/url]. It will show you how.
-
Example: HTML: [code]<A href="blah.com/blah" class="myLink">link</a>[/code] CSS: [code]a.myLink { style for achor }[/code]
-
Apache should not be the problem. Those files are handled by the browser. How are you loading these files?
-
Cant start php files.
wildteen88 replied to noooooooooobxor's topic in PHP Installation and Configuration
If you used the PHP installer then that does not mean PHP has been setup with Apache. The installer does nothing other than unpack the files to where you told PHP to be installed to. It does nothing else. However it does attempt automatically configure itself to the server you are using but this usually doesnt work out. I all ways recommend to get the zipped binaries instead. To configure Apache to parse PHP files with PHP do what rolf advised above. -
Add the ENT_QUOTES constant to the function, like so: [code=php:0]$str = <<<EOF this has " double and ' single quotes in! EOF; echo htmlentities($str, ENT_QUOTES);[/code]
-
the echo in the for each loop. Which is this: [code]cho "<input type='radio' name='interest' value='$type'>$type \n";[/code] What variable holds your image?
-
Give your other anchors a class/id rather than styling all the anchor tags. You cannot "pause" a stylesheet!
-
Not through the browser you wont no. However you can when you open the file on your computer though.