8,966 Posted Topics
Re: [url]http://www.daniweb.com/forums/thread229549.html[/url] | |
Re: That would be the ftp server address. E.g. $ftp_server = "ftp.example.com"; $ftp_server = "127.0.0.1"; | |
Re: Personally, I use Smarty for my templates. See smarty.net for more information. Should you still have questions, post them here. | |
Re: Maybe the problem is that there are two action attributes in your form tag. | |
Re: This perhaps: [url]http://docs.jquery.com/UI/Dialog[/url] | |
Re: It would be helpful if you provide a link to your page. | |
Re: [code=php] <?php include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php') ; ?> [/code] | |
Re: The smarty website. [url]http://www.amazon.com/Smarty-PHP-Template-Programming-Applications/dp/190481140X[/url] | |
Re: You could add a link with an onClick that will call the load() function again. | |
Re: You can find several methods in this post: [url]http://codingforums.com/showthread.php?t=95395[/url] | |
Re: Technically, yes. You could start it with exec, passthru or system. But remember that this will start it on the server, not on the client. | |
Re: [url]http://viralpatel.net/blogs/2009/06/restful-web-service-tutorial-introduction-rest-restful.html[/url] | |
Re: The only reason I can think of is that the button's css class 'submit' has display: none or visibility: hidden | |
Re: [url]http://calisza.wordpress.com/2009/04/25/circular-image-slide-with-jquery/[/url] | |
Re: You could add AddType application/x-httpd-php .html to your htaccess files. Then, html files will be parsed just the same as php files. So you can add php code to the html files. | |
Re: Insert this at the top of both pages: [code=php] if (! session_id()) session_start(); [/code] Then you can use [code=php] $_SESSION['first'] = $_POST['first']; [/code] in the second file. In the first file you can use: [code=php] if (isset($_SESSION['first'])) // first name was set by second page, you can use it [/code] | |
Re: Web Platform Installer from Microsoft has everything you need: [url]http://www.microsoft.com/web/downloads/platform.aspx[/url] | |
| |
Re: This will help: [url]http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html[/url] | |
Re: Hard to see which line is 111. Mark it. Also, did you read the sticky post at the top of this forum on this topic ? | |
Re: [url]http://www.tipstrs.com/tip/7934/Increasing-PHP-session-lifetime[/url] | |
Re: If all users are on the same network, then you can use OpenDNS ([url]http://www.opendns.com/[/url]) as your DNS server. It will allow you to create such shortcuts. | |
Re: \d{9}V \d = any digit {9} = repeat nine times V | |
Re: Do you have a link where we can see you issue ? | |
Re: The way I read this, is that you need to calculate the value of the variable (evens). Just follow the source code in your head, or on paper, and do as it instructs. I don't see output in the code, so I'm not sure what they mean by that. | |
Re: OUT; is missing. | |
I've experienced double replies. I am sure I've click the post button only once. Unfortunately, it doesn't happen all the time, so it's hard to pinpoint if it's something on my end. | |
Re: What error do you get ? Did you install an smtp server, or did you change the httpd.conf to specify an smtp mail server ? | |
Re: EOSTYLE; should be at the beginning of the line, just like the other ones. | |
Re: [QUOTE=specialk423;998933][CODE=php]. ($cat_parent_id == 0 ? "sub_cat_name = '$name'," : "cat_name = '$name',") .[/CODE] That is the part that I cant get to work in it. I'm not sure how I needs to be written inside of the SQL statement.[/QUOTE] Try: [code=php] (($cat_parent_id == 0) ? "sub_cat_name = '$name'," : "cat_name … | |
Re: [code=php] $sql="SELECT * FROM $tbl1_name WHERE sex='$show_all' AND age BETWEEN '$from' AND '$to'"; [/code] | |
Re: Check this line: header("Content-length: " . filesize( $getfile )); Maybe filesize cannot find your file and returns 0. You may have to use $filepath instead. I think you need to output the file contents too, so put that code back in. | |
Re: Can you be more specific ? I'm sure you don't mean using FTP to upload an executable file. | |
| |
Re: The problem appears to be your query: [code=php] $insert=mysql_query("INSERT INTO mod_mem_cuser('user_id, c_id') VALUES ('1','$value')"); //should be: $insert=mysql_query("INSERT INTO mod_mem_cuser(user_id, c_id) VALUES ('1','$value')"); // notice I removed the single quotes [/code] | |
Re: [code=php] $mysqli = new mysql('localhost', 'username', 'password', 'db'); [/code] you're missing an 'i' [code=php] $mysqli = new mysqli('localhost', 'username', 'password', 'db'); [/code] | |
Re: $this_banner[dsub] is probably returning a string instead of an integer. If you're sure it is an integer you can try: (int)$this_banner[dsub] otherwise, check it's contents. | |
Re: It shouldnt be a problem. Try: mysql_query(...) or die(mysql_error()); to see why the query fails. | |
Re: The script will run, but i think the curl call itself waits for the script to finish. | |
Re: [code=php] $ha = fopen($filename,"r"); while ( !feof($ha) ) { [/code] You will get the error message if the fopen fails. If you want to avoid these errors, try: [code=php] $ha = fopen($filename,"r"); if (! $ha) { // could not open stream } else while ( !feof($ha) ) { [/code] If … | |
Re: This should suffice, assuming your user has priviliges on both databases: [code=php] mysql_connect('localhost', 'root', '') ; $query1=mysql_query("select * from db1.tbl_products"); while($fetch=mysql_fetch_assoc($query1)) { echo "update db2.tbl_products set p_price='".$fetch['p_price']."' where p_id='".$fetch['p_id']."'"; echo "<br>"; echo "<br>"; } [/code] | |
Re: TinyMCE has a plugin to handle images: [url]http://tinymce.moxiecode.com/plugins_imagemanager.php[/url] | |
Re: try using [icode]& #35 ;[/icode] instead (without the spaces), see: [url]http://www.ascii.cl/htmlcodes.htm[/url] ![]() | |
Re: You'll need a language to connect to them, for example PHP, Python, Ruby. In PHP the code would look like this: [code=php] $db_link = @mysql_connect('localhost', 'youruser', 'yourpass') or die(mysql_error()); @mysql_select_db('yourdatabase') or die(mysql_error()); $query = 'SELECT * FROM yourtable'; $result = @mysql_query($query) or die(mysql_error()); if ($result) { while ($row = mysql_fetch_assoc($result)) … | |
Re: [url]http://www.daniweb.com/forums/thread9870.html[/url] | |
Re: it is a setting in the config file. it is recommended to use the long tag. |
The End.