8,966 Posted Topics

Member Avatar for sonia sardana
Member Avatar for forzadraco
Member Avatar for pritaeas
0
115
Member Avatar for Eriku

That would be the ftp server address. E.g. $ftp_server = "ftp.example.com"; $ftp_server = "127.0.0.1";

Member Avatar for Eriku
0
78
Member Avatar for Samyx
Member Avatar for peter_budo
0
131
Member Avatar for praveen_dusari

Personally, I use Smarty for my templates. See smarty.net for more information. Should you still have questions, post them here.

Member Avatar for pritaeas
0
109
Member Avatar for serendipity

Maybe the problem is that there are two action attributes in your form tag.

Member Avatar for serendipity
0
128
Member Avatar for MJ Pieterse
Member Avatar for Phildis
Member Avatar for sanjaypandit

[code=php] <?php include_once(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php') ; ?> [/code]

Member Avatar for pritaeas
0
98
Member Avatar for sarithak

The smarty website. [url]http://www.amazon.com/Smarty-PHP-Template-Programming-Applications/dp/190481140X[/url]

Member Avatar for pritaeas
0
181
Member Avatar for gpss

You could add a link with an onClick that will call the load() function again.

Member Avatar for Will Gresham
0
117
Member Avatar for Xentiago

You can find several methods in this post: [url]http://codingforums.com/showthread.php?t=95395[/url]

Member Avatar for Xentiago
0
116
Member Avatar for severman

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.

Member Avatar for pritaeas
0
39
Member Avatar for dhanya_piit

[url]http://viralpatel.net/blogs/2009/06/restful-web-service-tutorial-introduction-rest-restful.html[/url]

Member Avatar for pritaeas
0
105
Member Avatar for mcx76

The only reason I can think of is that the button's css class 'submit' has display: none or visibility: hidden

Member Avatar for network18
-1
110
Member Avatar for cormee
Member Avatar for pritaeas
0
82
Member Avatar for valonesal

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.

Member Avatar for valonesal
0
171
Member Avatar for mr_scooby

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]

Member Avatar for mr_scooby
0
141
Member Avatar for matthewcar

Web Platform Installer from Microsoft has everything you need: [url]http://www.microsoft.com/web/downloads/platform.aspx[/url]

Member Avatar for guru_sarkar
0
197
Member Avatar for masterjiraya
Member Avatar for poojamakhija
0
137
Member Avatar for jrosh

This will help: [url]http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html[/url]

Member Avatar for jrosh
0
119
Member Avatar for jjtao

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 ?

Member Avatar for poojamakhija
0
171
Member Avatar for dourvas

[url]http://www.tipstrs.com/tip/7934/Increasing-PHP-session-lifetime[/url]

Member Avatar for pritaeas
0
103
Member Avatar for jshesek

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.

Member Avatar for pritaeas
0
73
Member Avatar for mahesh9100
Member Avatar for CelestialDog
Member Avatar for turbomen

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.

Member Avatar for pritaeas
0
152
Member Avatar for amail
Member Avatar for pritaeas

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.

Member Avatar for ~s.o.s~
0
81
Member Avatar for moon_isha1

What error do you get ? Did you install an smtp server, or did you change the httpd.conf to specify an smtp mail server ?

Member Avatar for network18
0
357
Member Avatar for abrocketman

EOSTYLE; should be at the beginning of the line, just like the other ones.

Member Avatar for abrocketman
0
286
Member Avatar for jrosh

Calculate the difference: [url]http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff[/url] Create a trigger to do it automatically: [url]http://dev.mysql.com/doc/refman/5.1/en/create-trigger.html[/url]

Member Avatar for pritaeas
0
120
Member Avatar for specialk423

[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 …

Member Avatar for baki100
0
169
Member Avatar for nadnakinam

[code=php] $sql="SELECT * FROM $tbl1_name WHERE sex='$show_all' AND age BETWEEN '$from' AND '$to'"; [/code]

Member Avatar for nadnakinam
0
118
Member Avatar for genieuk

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.

Member Avatar for Atli
0
124
Member Avatar for celltechgsm

Can you be more specific ? I'm sure you don't mean using FTP to upload an executable file.

Member Avatar for pritaeas
0
77
Member Avatar for baltazar
Member Avatar for Zack_Grindall

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]

Member Avatar for network18
0
546
Member Avatar for sam023

[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]

Member Avatar for pritaeas
0
110
Member Avatar for nadnakinam
Member Avatar for streetrodfanati

$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.

Member Avatar for streetrodfanati
0
108
Member Avatar for moonwine

It shouldnt be a problem. Try: mysql_query(...) or die(mysql_error()); to see why the query fails.

Member Avatar for pritaeas
-1
88
Member Avatar for nschessnerd

The script will run, but i think the curl call itself waits for the script to finish.

Member Avatar for pritaeas
0
79
Member Avatar for Silverhawk

[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 …

Member Avatar for Silverhawk
-1
207
Member Avatar for praveen_dusari

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]

Member Avatar for pritaeas
0
81
Member Avatar for Stefano Mtangoo

TinyMCE has a plugin to handle images: [url]http://tinymce.moxiecode.com/plugins_imagemanager.php[/url]

Member Avatar for Stefano Mtangoo
0
82
Member Avatar for andym67

try using [icode]& #35 ;[/icode] instead (without the spaces), see: [url]http://www.ascii.cl/htmlcodes.htm[/url]

Member Avatar for diafol
0
169
Member Avatar for Spunky

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)) …

Member Avatar for pritaeas
0
654
Member Avatar for elamigosam
Member Avatar for cwarn23
0
226
Member Avatar for punithapary

it is a setting in the config file. it is recommended to use the long tag.

Member Avatar for cwarn23
0
113

The End.