Hello. I have installed PHP4 and MySQL (.dmg) on Mac OSX v3 client. Everything is up and running. I have created tables in my DB, established user privileges, etc through the 'terminal' app. I have turned on web sharing through the 'preferences' panel and dragged my .php files to the 'sites' folder. Accessing localhost/127.0.0.1 I see the .php files - simple scipts work. The problem is connecting to my DB and being able to execute a simple query on any of my tables. Below is an authentication script I found. I want to match username/password entries. Unfortunately I cannot even …

Member Avatar
Member Avatar
+0 forum 2

Anyone know any FREE software and tuts that will teach me how to make an Auction site? My current site is. [url]www.FireStreak.com[/url] :twisted:

Member Avatar
Member Avatar
+0 forum 1

Hi all! Yet another great PHP board. (i think, right?) hehehe, needless to say, i have no clue. I used to program from BASICA to Turbo Pascal 7. Havent ever really touched HTML or PHP. Now, i need to setup a small, basic message board and would like some help. The first problem i have, is that i downloaded the PHP from .net and it has no file extensions?! Did i D/L the wrong thing? - php-4.3.7.tar When i decompress it seems ok, but the install file is unreadable!? do i have to rename it to a .exe or something? …

Member Avatar
Member Avatar
+0 forum 3

heres the code to send the info [code]<html> <HEAD> <title> form Handling with PHP </title> </head> <body bgcolor="#FFFFFF"> <center> <form method=post action="submittedinfo.php"> <input type="hidden" name="id" value="NULL"> <table> <tr> <td colspan="2"><font SIZE="+0" face="verdana"> Lets see if we cant get this form to work! </td> </tr> <tr> <td> </td> </tr> <tr> <td align="left"><font SIZE="+0" face="verdana"> <b>Your name <br \>Your E-Mail Address</b> </td> <td> <input type="text" name="name" id="name"> <br /> <input type="text" name="email" id="email"> </td> </tr> <tr> <td colspan="2"><center> <SELECT name="opinion" id="opinion"> <option value="is great">I like your site</option> <option value="is OK">Your Site is OK</option> <option value="is horrible">Your Site is horrible</option> </SELECT><p><input type="submit" value="Tell …

Member Avatar
Member Avatar
+0 forum 3

Hi, I'm creating an administration area for a little web-app and I've come across a problem that I've never encountered before. The form that I'm working on is used for the maintenance of a table that has several properties. One of these properties can be selected with checkboxes, and then recorded in the correct column in a comma-delimited list. The problem that I'm having is constructing/alterring the list - for some reason I can't for the life of me figure out how to do it. Oh yeah, the fun part is that the properties that are in the checkbox are …

Member Avatar
Member Avatar
+0 forum 9

hi guys newbie here trying to create my own webmail pop3 checker for my site but cant find a tutorial. any chance any of u know the basic commands or know atutorial cheers, noojam55 :cry:

Member Avatar
Member Avatar
+0 forum 7

Hey, I've written a script in PHP that writes data into a MySQL database upon request, but what I'd also like to include is a script that will go in after the request is made, and check to make sure that the same entry does not already exist... and I have no clue where to start. I've never tried to do anything like this before, and am not sure what to do. If I could get some ideas from anyone it would be greatly appreciated. Thanks!

Member Avatar
Member Avatar
+0 forum 1

I own a cpanel account, i want to know if i can resell that to people for free. kinda like: Admin Username: USERNAME Admin Email: EMAIL Admin Password: PASSWORD Desired Url: http//forum-support.net/YOURNAME once filled in it creates a db and gives them 5 mb of space

Member Avatar
Member Avatar
+0 forum 1

I am using PHP 4.3.5. I am having a problem in which my script is crashing when it is using a large array. I have simplified the problem down to the following example: [php] <? set_time_limit(0); echo("<html><body>test<br>"); $array1 = array(); $value1 = 1; for ($index = 0; $index < 160000; $index++) { $array1[] = $value1; } for($index = 0; $index < 100; $index++) { echo("index = $index, value = $array1[$index]<br>"); } echo("done<br>"); echo("</body></html>"); exit(0); ?> [/php] If I run the above code it crashes with nothing displayed to the screen. If I change the loop to go to 80000 instead …

Member Avatar
Member Avatar
+0 forum 1

Hello !I come from taiwan ! I just study php over 6 month Sorry,my english is not good,i just can use very simple english.. HOW can I use php function get this webpage . [URL=http://192.192.13.174:81/ipac20/ipac.jsp?session=1086PP35J1031.16718&profile=tb&uri=full%3D1100001%40%21364257%40%210&fullmarc=true&aspect=basic_search&menu=search&source=192.192.13.174@!tb&view=items&ri=1&staffonly=&term=9572011324&index=ISBN&uindex=&aspect=basic_search&menu=search&ri=1#focus]Click here[/URL] and i want get some string beacuse i need transport into Database! ex.I want get " 020: $a tw $b 90013365 " I very very very need help!Beacue this is my subject homework . I don't know to start!Thak you very much!!!

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm trying to figure this php stuff out, but, i'm too right brained or something (or is it left?). Here's what I'm trying to do: When someone lands on my site I want them to enter a code (which they will get from one of my ads). I want that code to carry over to my one page website and then through the order page (probably paypal) and then to a cgi registration form which will email the registration data including the code number to me. Does this make sense and can it work? Any help would be much …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to make a BB Code script, setting the Bold, Italic, URL etc is easy enought but how do you make it scan for rogue links that aren't placed in a URL tag and same goes for email because I just can't get it to work.

Member Avatar
Member Avatar
+0 forum 6

Hi, On my website, I have links to different pages like the following: [site_url]/email_req.php?email=[email]&ps=[ps]&refid=[refid] But, it is not inserting the correct things such as referral id, site url and the others too. It just stays like that. Any help would be great! Thanks! Matt :)

Member Avatar
Member Avatar
+0 forum 1

Hy, I have a PHP raport and I'm using a MySQL database. That raport have to show me information from database. These information from database I only can see them with Internet Explorer (I'm using it to show me the output from my PHP program). If I want to see information from my database with Mozilla or Opera or Netscape or other browser...the browser doesn't show me those information from MySQL database. Can anyone tell me why? Thanks.

Member Avatar
Member Avatar
+0 forum 2

Hello, Im trying to send an email which will send information from a enquiry form. but everytime i fill in the details and press send this error comes up: Parse error: parse error, unexpected T_VARIABLE on line 5 have i done this wrong? <?php $to = "thomashumphrey@hotmail.com"; $re = "Enquiry Form"; $msg = "Surname: " $surname, "Firstname: " $first_name, "Address: " $address, "Country: " $country, "Phone: " $phone_home, "Fax: " $fax, "E-mail: " $email, "Hectares: "$hectares, "Tonnage: "$tonnage, "Specific model: "$specific; mail($to,$re,$msg); ?>

Member Avatar
Member Avatar
+0 forum 1

hello.. I am just testing a simple PHP password/verify form... and I don't know why its not working. I am new to PHP but I have looked at other sample codes and mine seems to be okay in my eyes... I have two files... password.html and password.php. password.html looks like this: [CODE]<html> <head> <title> Password Script </title> </head> <body> <center> <form name="form1" method="post" action="password.php"> <input name="username" type="text" id="username"> <p>Enter your First Name Please</p> <input type="submit" name="Submit" value="Submit"> </form> </center> </body> </html>[/CODE] and password.php looks like this: [CODE] <?php if ($username == "Rob") { print "Yay, Rob you are logged in!"; …

Member Avatar
Member Avatar
+0 forum 5

Hello all, At last i found a decent uk forum, hopefully someone here is prepared to help me and share there knowledge with me. I have recently installed php-nuke version 7, all working fine but really want to alter the way it looks. i have added my own temp logo, but it look a bit funny due to the background dimemensions being wrong now. I have read the how to do php-nuke book but i am the sort of person that needs showing (monkey see monkey do) so if there is anyone out there will to spend alittle time showing …

Member Avatar
Member Avatar
+0 forum 3

hello evryone, I have created a script in php for reading information from mysql and then sending in to the subscribers. Everything works fine and when the subscriber opens an email in outlook exrpess or any other soft or webmail that doesnt format the html code of the email its still ok but when an email is opened in webmail like yahoo or msn everything is messed up all the tables and the text is shifted. I`ve spent a week already on this and cant fix that. This part of my script: function subskrypcja_send(){ global $PHAPP,$APP_DIR; $tab1 = $PHAPP->getDBTable("subskrypcja_def.php"); $tab2 …

Member Avatar
Member Avatar
+0 forum 2

[size=4]A Programmer's Introduction to PHP 4.0[/size] [b]by W. J. Gilmore[/b] Not a bad book - Overall, this was not a bad book. I was breezing through the chapters since I already knew C++... and I have to say he did a good job on showing how to set up PHP with Apache. This book also serves as an excellent reference- it shows you several important functions of PHP, as well as an explanation of the usage. The only thing I wish Gilmore had done was explain on how to set up mySQL with Apache. He did a good job explaining …

Member Avatar
Member Avatar
+0 forum 2

[b]Warning[/b]: mysql_error(): supplied argument is not a valid MySQL-Link resource in [b]/home/rexb2/public_html/parkweb/db/mysql4.php[/b] on line [b]586[/b] [b]Warning[/b]: mysql_errno(): supplied argument is not a valid MySQL-Link resource in [b]/home/rexb2/public_html/parkweb/db/mysql4.php[/b] on line [b]587[/b] phpBB : [b]Critical Error[/b] Could not connect to the database Thanks

Member Avatar
Member Avatar
+0 forum 1

Ok here's the deal... I have a PHP program running at dci.jamesmeister.com that takes data from a .txt document and converts it into a chart. (It is not a commercial script, it was written by a buddy of mine whom I can no longer get in touch with) I currently have the ability to add more years onto this chart and in essence make the chart start all over with the 2004 data, come May. BUT my big problem is, I don't know PHP and I need to complete this added feature... I can add create a new year database, …

Member Avatar
Member Avatar
+0 forum 1

I have been making a MySQL run script for my site so all the content is stored in MySQL and I also want to be able to allow users to Register and stuff like that. I want to do it in a simaler way to for forum so that I can have an online list. My site does have a forum but I can't use it to allow people to register on the forums and the site in one go because I share the forum with a few other sites. However I know that the way forums do their sessions …

Member Avatar
Member Avatar
+0 forum 5

I'm using following code for searching and replacing : [b]preg_match_all("/\{$WSCPAGELINK([^\}]*)\NAV}/U", $pageHtmlBody, $Matches); [/b] and this works fine with php version older than 4.3.3. But in new PHP version i'm getting this error: Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 21 If i add 2 extra slashes just before NAV: preg_match_all("/\{$WSCPAGELINK([^\}]*)[b]\\[/b]\NAV}/U", $pageHtmlBody, $Matches); this does not give any error messages, but now i'm not getting any result. Basically, i want all the contents appearing in between [b]{$WSCPAGELINK [/b]and [b]NAV}[/b]. Pls help

Member Avatar
Member Avatar
+0 forum 1

Hi all, i need help for a little php script, here is what i need: I have a table named "clans" with 4 field in it (name, url, logo, description) I have a php page with "A-B-C-D-E-F-G-H-I-........." I need to create the links on the letters that will only show all clans that begins with the clicked letter I just dont have a damn idea on how to do this, i am sure that the php gurus out there can help me with something simple, i only code for fun and im still newb. Thanks in advance fred

Member Avatar
Member Avatar
+0 forum 6

Hello, I am an administrator for a phpbb2 forum and I'd like announcements not to be replied. What must i do inorder for this to work. Thanks for replies!

Member Avatar
Member Avatar
+0 forum 1

Hai all am using new version on PHP,Apache now i want to work with XSLT so i removed ; for php_sxlt.dll in php.ini file i use a code <?php $xh = xslt_create(); $result= xslt_process($xh, "solarsystem.xml", "solarsystem.xsl"); if ($result) { print $result; } else { print "Sorry, $_GET[filename]could not be transformed by short.xsl into"; print " $_GET[filename] the reason is that " . xslt_error($xh) . " and the "; print "error code is " . xslt_errno($xh); } xslt_free($xh); ?> when i run the program its telling that dll is not found but in specified folder C:\php\extensions dll is available what will …

Member Avatar
Member Avatar
+0 forum 1

[b]PHP Cookbook[/b] David Sklar, Adam Trachtenberg PHP Cookbook is the ideal book for when you're stumped on a "how-to" situation in PHP. This book is also a valuble resource for the generally curious programmer, interested in expanding their knowledge on PHP. This book is basically a list of scenarios coupled with code, and explanations about the functions included. It is also a great resource over PHP.net, and I just like having a physical reference =oP. I reccomend this to any PHP programmer who hasn't mastered the language, so that they may learn functionality and better structuring. Great deal at $27.87 …

Member Avatar
Member Avatar
+0 forum 1

I know how to catch an action from someone entering page.php and then set a default to page=1 and have the action for page=1 to load page=2, but how should I make page.php to catch 1,2,3,4,5,infinity so it keeps loading until the user closes the browser? reloading can be done using header("Location: page.php?page=n"); (where n = number) catching empty action can be done like this if (!isset($action) or $action=="") { $action="page1"; } catching page =1 can be done like this if ($action=="page1") { header("Location: page.php?page=2"); } etc.

Member Avatar
Member Avatar
+0 forum 4

Try/Catch blocks, Private, Public, Protected variables/functions, and more. Import functions through namespaces....finally! This language is reminding me more of C++. Read more about it here: [url]http://www.phpvolcano.com/articles/php5/index.php[/url]

Member Avatar
Member Avatar
+0 forum 25

Can someone help? I'm lost on sessions here. I can't seem to get sessions to work at all. Are there any good tutorials that anyone knows of that might help me get started correctly? (Cause I think I'm getting them mixed up.)

Member Avatar
Member Avatar
+0 forum 3

The End.