39,393 Topics

Member Avatar for
Member Avatar for Turnkey Monkey

Hello I am Marcus and I am building a directory service and need some help using php. I am new to working with a server but I did read Sams Teach Yourself book on this subject and ubderstand what needs to be done, but still have trouble finding a script …

Member Avatar for dr4g
0
192
Member Avatar for tomf
Member Avatar for MaestroS

Well, I were trying to make code that gets a XML element from the file and replaces with new data. Here is my code. Parsing command: function ExecuteCMD($forplayer, $what, $to) { $player_dir = 'D:\\Programy\\Open Tibia Server Project\\DeadTouch Binary\\data\\players\'; $SetPlayer = file_get_contents($player_dir . "\\" . $forplayer . ".xml"); $SetPlayer = str_replace($what, …

Member Avatar for dr4g
0
772
Member Avatar for SuperioAssassin

I have been looking at this code for some time and just can not figure anything wron with it. My Error Message is: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/gwthorn/htpsinc-web.com/York_County/login.php on line 13 I commeted 13 [CODE=php] <?php session_start(); //The fields are censored but …

Member Avatar for dr4g
0
145
Member Avatar for jscriptanit
Member Avatar for dr4g
0
97
Member Avatar for cancer10

ok, see the code below [CODE] <? $rsQry = mysql_query ("select * from tblCustomer"); $arrQry = mysql_fetch_row($rsQry); ?> [/CODE] Now if I try to fetch a Customer's Name from the "Customer_Name" column from the "tblCustomer" table with the following code then I dont get anything: <? echo $arrQry["Customer_Name"]; ?> Why? …

Member Avatar for omick16
0
108
Member Avatar for hbmarar

Hi, Wishes. I am trying out with the cakephp framework but got stuck with the initialising the database with acl.php... i changed the directory to the scripts folder and tried the commad mentioned. But it do not seem to work... i dont know why? i used the db_sql file to …

0
67
Member Avatar for realnsleo

hello, could someone show me how to redirect a page in php after a specific amount of time like 5 seconds. thanks

Member Avatar for johny_d
0
98
Member Avatar for justinm

Want to download a .tar.bz2 and extract, then run the file into the database. Eventually I will be setting up some sort of a crontab job thingmebob, but for the moment, I want to be able to extract the files successfully. I have not touched on streams or system before, …

Member Avatar for w_3rabi
0
127
Member Avatar for MattEvans

Consider the following code: [code="PHP"] <?php function important_function( $i ) { printf ("<p>Called for the %sth time.</p>\n", $i); return ($i < 3); } function loop_with_and( ) { $ret = true; for( $i = 0; $i < 10; $i ++ ) { $ret = $ret && important_function( $i ); } return …

Member Avatar for Infarction
0
122
Member Avatar for ko_tish

Short guide to include RSS on your website Including RSS feeds in to your own pages is pretty simple with PHP and some open source libraries. The follwing lines show how to create HTML from RSS feeds using the popular PHP tools magpierss (fetches and parses the RSS feed) and …

Member Avatar for Dsiembab
0
90
Member Avatar for Clanham

I am trying to display all data from my MYSQL database but it results in a blank page: <? mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM events"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "<b><center>Database Output</center></b><br><br>"; $i=0; while ($i < $num) { $title=mysql_result($result,$i,"title"); $title =mysql_result($result,$i,"title"; $description =mysql_result($result,$i,"description"; $organization =mysql_result($result,$i,"organization"; …

Member Avatar for dr4g
0
97
Member Avatar for realnsleo

could anyone please help me and show me how to validate a form with the php_self function and the error message appears to the side of where the error came from. Thanks. You could also give me useful links.

Member Avatar for dr4g
0
99
Member Avatar for Anonymusius

I have a program which requires a database. So I made a file that could generate the sql to create it (I copied the sql from PHPmyadmin as reference). When I execute the sql I get the error: [code]You have an error in your SQL syntax; check the manual that …

Member Avatar for dr4g
0
109
Member Avatar for ep2002

Hi All, Someone just told me that if you name your pages .php, it hinders your rankings. Is that true? Thanks Michelle

Member Avatar for stymiee
0
215
Member Avatar for HLA91

Hi I got this script of a tutorial site and I placed it on my site but it seems to work fine apart from it doesn't send the email can anyone help me please. the contact us page [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> …

Member Avatar for HLA91
0
165
Member Avatar for Legend01

Hi all i have recently been using fireworks MX and have created a working menu. it is uploaded on my server and currently have it in a html page as this was the code fireworks gave me. How can i put this html / javascript menu into a php block? …

Member Avatar for w_3rabi
0
233
Member Avatar for andy3250

could someone recommand me which software that i can use to unblock filter internet. I have website that i want to show it in other country but other country have blocked my website from peoeple see it. is there is any software that i can unblock filter internet! AM

Member Avatar for w_3rabi
0
81
Member Avatar for Moord

Currently, my company is running our website and intranet in CF. We're looking to move our website to PHP, but the intranet must remain in CF for the foreseeable future. Is it possible to run both CF and PHP on the same server? If so what considerations do I need …

Member Avatar for Moord
0
113
Member Avatar for kapil.goyal

can anybody tell me how i can upload a file without user interaction.the file full path is known and can be hardcoded.

Member Avatar for digital-ether
0
400
Member Avatar for tomf

How can i make this script work? It is meant to send an email to a person with a confirmation code, but it is not working. whats wrong with it? [code] <?php function send_mail($fromname,$frommail,$to,$subject,$body,$priority) { $fullmail = "\"$fromname\"<$frommail>"; $headers = "From: $fullmail\n"; $headers .= "X-Sender: $fullmail\n"; $headers .= "X-Mailer: PHP\n"; …

Member Avatar for digital-ether
0
141
Member Avatar for rednarjess

Dear All; I have table in vehicle.php file that contains vehicle information(plate number, vehicle model, reg. and exp. dates). I pprovided each record with href(more) if he want to know more about this specific vehicle in vehicle-info.php file. in vehicle-info.php I get the plateN and I pass it to the …

Member Avatar for GliderPilot
0
300
Member Avatar for Manawyddan

Hi everyone. i'm having the following problem with the PHP code that i'm writing: [B]Notice[/B]: Undefined index: email in [B]c:\program files\easyphp1-8\www\gestao_perfil.php[/B] on line [B]15[/B] [B]Notice[/B]: Undefined index: password in [B]c:\program files\easyphp1-8\www\gestao_perfil.php[/B] on line [B]22 Here is the code: [/B][code=PHP] <?php parse_str ($_SERVER['QUERY_STRING']); //Tenta estabelecer uma ligação ao servidor MySQL @mysql_connect("localhost","root","") …

Member Avatar for WhiteLeo
0
165
Member Avatar for DangerM0use

How would you execute MySql commands found in a text file? It's really beginning to bug me!

Member Avatar for digital-ether
0
87
Member Avatar for rednarjess

Dear all; I write this php file and when I want to view it does not make sense. It also can't retrieve the necessasry info from my database:( . Please can any one guide me. Note: I attached my DMV database. Thanks alot //=========== <html> <head> <title>Displaying Your Vehicles</title> </head> …

Member Avatar for rednarjess
0
77
Member Avatar for Don Gino

Hi I have recently attempted to make a forum with phpBB using a free php and mysql web hosting site. This is the link: [URL="http://www.zendurl.com/directory/dgcforum"] www.zendurl.com/directory/dgcforum[/URL] As you can see, error messages appear. I am new to all this and was wondering if anyone had any solutions to get the …

Member Avatar for Don Gino
0
73
Member Avatar for w_3rabi

hey guys anyone knows a way to direct the browser to the page he came from like the Back button php plz

Member Avatar for w_3rabi
0
83
Member Avatar for bhavna_816

I am new to PHP. I am trying to connect mysql with PHP with mysql_connect but i m getting "A link to the server could not be established" I have used ODBC 3.51 driver for odbc and made connections with odbc with odbc_connect but i don't know how to connect …

Member Avatar for jbennet
0
154
Member Avatar for shimon

I have been getting tons of email spam from my own domain name. It is coming from a contact form that uses sendmail.php. My guess is someone is trying to use it to spam other people, but it keeps going directly into my inbox. I can't block sender. I can't …

Member Avatar for dss
0
237
Member Avatar for azharcs

<h3>In php how do you create accounts and let the user send messages to each other which cannot be viewed by other people .</code></h3> <h2>The only thing i have come close to is by creating accounts by giving each one them an unique email id and let them send and …

Member Avatar for w_3rabi
0
106

The End.