8,966 Posted Topics
Re: index.html will not be parsed by default as a php file. If you rename it to index.php it will work. | |
Re: The first link in your post explains what settings to use. Don't know about lunarpages, but some hosts need information in two places, an "allow remote" (server setting) and a "white list" (firewall setting). Maybe there's another setting you need. Ask you provider. | |
Re: You are missing quotes around the string columns in your query. [code=php] mysql_query("INSERT INTO forum_sub_cats (sub_cat_name, forum_cat_name, desc) VALUES ('$name', '$cat_name', '$desc')") or die(mysql_error()); [/code] Note that you may also need to use mysql_real_escape_string() if you use single quotes in your texts. | |
Re: Don't know the structure of your tables, but I think you could create a join between the two, thus creating a unique_email column and a shared_email column. You can then use an IF to select the right one. | |
Re: This is part of my google script. Hope this helps: [code] var _map; var _geocoder; var _marker; var _objLocation = null; var _address = null; var popupWindows = []; var gMarkers = []; var markerCount = 0; var gAddress = []; var gDescription = []; function addItem(pLat, pLong, pTitle, pAddress, … | |
Re: Can you be a bit more specific ? Are you looking for a newsletter php script ? Google will give a lot of results. | |
Re: See this page: [url]http://mail.google.com/support/bin/answer.py?hl=en&answer=13287[/url] for the correct server and port to connect to gmail. | |
Re: 1. is the mcrypt extension in the php.ini ? 2. does the extension_dir point to the directory where mcrypt.so or mcrypt.dll is located ? | |
Re: Replace the connect with this: [code=php] $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die (mysql_error()); [/code] It will show you what's wrong, or guide you in the right direction. | |
Re: It's probably an array, where in the template it is used inside a foreach loop. Without more of the tpl it is hard to say. | |
Re: [code=php] if (strcmp($x_password, $x_password_conf) != 0) { $erros = 1; $erro_conf_password = 'As passwords não coincidem'; } [/code] | |
Re: Start session: [code=php] if (! session_id()) session_start(); [/code] You can use session_destroy() to delete an existing one. For more info, see: [url]http://php.net/manual/en/book.session.php[/url] | |
Re: It doesnt really matter if you put in in the <head> or somewhere within the <body>. Note that it takes a day for google to show your data. (Unless you are using the wrong tracker id) | |
Re: Yes, you can, but mysql won't accept the double quotes. If the id field is an integer, you can remove them. If it is a string field, use single quotes instead. There may be an issue when the id field is an auto-increment field. I think you're not allowed to … | |
Re: \w means a word character + means one or more \- means dash \. means . * means zero or more it represents a simple check to see if the email address is valid | |
Re: You can try this in google search: link:[url]www.crohole.com[/url] But it will not show all, I'm sure. If you add your site to Google, Bing and/or Yahoo websmaster tools, you can get a more complete list, although I doubt it will ever be exhaustive. | |
Re: mysql is not enabled. check your php.ini file. [url]http://nl.php.net/manual/en/mysql.installation.php[/url] | |
Re: [code=php] foreach ($arrFeeds as $idx => $item) { echo $idx . ' ' . $item['title'] . ' ' . $item['date'] . '<br/>'; } [/code] This will loop the items, show the index, name and date | |
Re: [url]http://dev.mysql.com/doc/refman/5.1/en/regexp.html[/url] I think it should be this: SELECT * FROM tbl_movie WHERE ori_title REGEX '^[0..9]+.*' | |
Re: Is there a reason you search in this way ? It is possible to join the results from all tables in a single query. | |
Re: I wonder, High and Low return the highest and lowest array index iirc. Isn't he looking for Min and Max ? | |
Re: You could add the need for an authorization token, much like e.g. the Google API key You could setup your firewall to allow only verified hosts/ip addresses | |
Re: end . should be end. (remove the space) Not sure about the first error. Could it be triggered by the $N switch error ? Look for {$N} and remove it (at the top). | |
Re: If you do: [code=php] $sql="UPDATE recipe SET name='$name', bahan='$bahan', cara='$cara', id_category='$id_category' WHERE id='$id'"; echo $sql; [/code] What query do you see ? You can then test this query e.g. in phpmyadmin. | |
Re: Try Google: "php script tell a friend" | |
Re: & is the parameter separator, if you want to pass it as part of the string, use %26 instead. | |
Re: Your <a href=""> double quotes weren't closed: [code=php] <?php while ($row = mysqli_fetch_array($result)) { $FirstName = $row["FirstName"]; $LastName = $row["LastName"]; $BillName = $row["BillName"]; $JoinDate = $row["JoinDate"]; $VisitorID = $row["VisitorID"]; $UserName = $row["UserName"]; // Display the Users data echo '<fieldset><legend>Account details for username: <strong>' . $UserName . '</strong></legend>'; echo '<p>Join Date: … | |
| |
Re: This could be useful, then you can combine the two: [url]http://www.daniweb.com/code/snippet798.html[/url] | |
Re: [code] if (preg_match('/qby:name/m', $subject)) { # Successful match } else { # Match attempt failed } [/code] | |
Re: If you were to use mysqli instead of mysql, you're able to use multi_query and run more queries as a batch. Maybe that will help. [url]http://php.net/manual/en/mysqli.multi-query.php[/url] | |
| |
Re: [url]http://www.daniweb.com/forums/thread207825.html[/url] | |
Re: [url]http://forum.claroline.net/viewtopic.php?f=19&t=5105&start=0&st=0&sk=t&sd=a[/url] | |
Re: It can be used in any boolean expression. [url]http://nl2.php.net/manual/en/language.operators.logical.php[/url] | |
Re: Can't see an error. Maybe the file upload had failed ? Recap: [url]http://www.phpriot.com/articles/images-in-mysql[/url] | |
Re: Here's a good start: [url]http://www.west-wind.com/presentations/dotnetwebservices/DotNetWebServices.asp[/url] | |
Re: wampserver is not equipped with an smtpserver by default. One option would be to use a tool like phpmailer, to send your emails through your gmail/hotmail/provider account. | |
Re: As far as I can see from your file, you'll need an extra column in f_topics (sticky), which you can use in the ORDER BY on line 169. Then you will need to add a checkbox to a new post allowing it to be set as sticky. | |
Re: [icode]<input type="text" name="state" value=<?php print($state);?> />[/icode] i think the problem here is that the " are missing around the value. Try: [icode]<input type="text" name="state" value="<?php print($state);?>" />[/icode] | |
Re: You can test your output and get feedback: [url]http://validator.w3.org/feed/check.cgi[/url] | |
Re: It should be possible to use odbc to connect to sybase. | |
Re: If hosting is not a problem, maybe asp.net/C# would be a good choice. Since you already know C++, programming the backend should be a snap. Downside is that hosting is often more expensive, and a bit more complicated than with PHP. But it is also easily integrated with silverlight, for … |
The End.