Php/mysql problems Mac OS 10.4
After upgrading to Mac 10.4 from 10.3, I get this message on
my dynamic
pages
Can't connect to local MySQL server through socket
'/var/mysql/mysql.sock' (2)
I can connect to both the local and remote mysql server from
the terminal.
As far as I can tell there is no directory named "mysql", so
"Hard Drive:var:mysql" mysql doesn't exist.
php works fine, but I also get a warning:
Warning: mysql_connect() [function.mysql-connect]: Protocol
mismatch;
server version = 9, client version = 10
Connected successfully
I've googled all over, I'm stumped.
Mick
David Powers wrote:
> Mick White wrote:
>
>> After upgrading to Mac 10.4 from 10.3, I get this
message on my
>> dynamic pages
>> Can't connect to local MySQL server through socket
>> '/var/mysql/mysql.sock' (2)
>
>
> Try this in Terminal:
>
> ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
>
Thanks David, this is what I did along the same lines:
sudo mkdir /var/mysql
sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
http://forum.mamboserver.com/showthread.php?t=70766
Mick
Similar Messages
-
I originally posted this in the Flash Builder forum before seeing this one
Hi All.. hope someone can help.
I've started a very simple application and experiencing a problem regarding creating a new record in a MySQL database via PHP & Zend.
Here's the snippet of AS:
newLine.buy_price = cursor.current.buy;
newLine.sell_price = cursor.current.sell;
linesService.createLines(newLine);
createLineResult.token = linesService.commit();
Here's the snippet of PHP (all generated by FB):
public function createLines($item) {
$stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (supplier, sku, product_name, quantity, buy_price, sell_price) VALUES (?, ?, ?, ?, ?, ?)");
$this->throwExceptionOnError();
mysqli_stmt_bind_param($stmt, 'iisiii', $item->supplier, $item->sku, $item->product_name, $item->quantity, $item->buy_price, $item->sell_price);
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
$autoid = mysqli_stmt_insert_id($stmt);
mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);
return $autoid;
When I run the createLines() function then commit(), I get the following error popup from my application:
MySQL Error - 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lines (supplier, sku, product_name, quantity, buy_price, sell_price) VALUES (?, ' at line 1
#0 C:\wamp\www\XOM-debug\services\LinesService.php(119): LinesService->throwExceptionOnError()
#1 [internal function]: LinesService->createLines(Object(stdClass))
#2 [internal function]: ReflectionMethod->invokeArgs(Object(LinesService), Array)
#3 C:\wamp\www\ZendFramework\library\Zend\Server\Reflection\Function\Abstract.php(380): call_user_func_array(Array, Array)
#4 C:\wamp\www\ZendFramework\library\Zend\Amf\Server.php(359): Zend_Server_Reflection_Function_Abstract->__call('invokeArgs', Array)
#5 C:\wamp\www\ZendFramework\library\Zend\Amf\Server.php(359): Zend_Server_Reflection_Method->invokeArgs(Object(LinesService), Array)
#6 C:\wamp\www\ZendFramework\library\Zend\Amf\Server.php(553): Zend_Amf_Server->_dispatch('createLines', Array, 'LinesService')
#7 C:\wamp\www\ZendFramework\library\Zend\Amf\Server.php(629): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
#8 C:\wamp\www\XOM-debug\gateway.php(69): Zend_Amf_Server->handle()
#9 {main}
As as I see it, the parameters are not being replaced by the actual values, so MySQL is freaking out as it's getting question marks in the statements. What I don't understand is how this is happening! Everything is auto-generated by FB. I created a new project from scratch and used only drag & drop from the Data/Services panel to generate a form for data entry and got the same error.
Any ideas!?
Cheers,
SteveCharles Newbury wrote:
> How can I return to a screen containing the record I
originally clicked to
> modify? (it could be way down the list)...
I answered the same question a couple of days ago:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=189&threadid =1294897&enterthread=y#4687934
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
I'm just learning PHP and I can't even get a simple HTML form to work with PHP, even though I have register_globals turned on. How can I fix this?
Dual-2GHz PowerMac G5 Mac OS X (10.4.5)form.php:
<html>
<head><title>Test Page</title></head>
<body>
Data Collection
<form action="action.php" method="get">
<table>
<tr><td>Name:</td><td><input type="text" name="Name" /></td></tr>
<tr><td>Age:</td><td><input type="text" name="Age" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" /></td></tr>
</table>
</form>
</body>
</html>
action.php:
<html>
<head>
<title>Test</title>
</head>
<body>
<?php
print "Your name is ". $Name;
print "<br />";
print "You are ". $Age . " years old";
print "<br />";
$old = 25 + $Age;
print "In 25 years you will be " . $old . " years old";
?>
</body>
</html>
1.83GHz MacBook Pro (home), Dual-2GHz PowerMac (work) Mac OS X (10.4.6) -
PHP MySQL data display problem
I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
Selected PHP as the type.
Saved it.
Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
NOTE: The database is on a remote server.
The TEST button displayed the records from the recordset with no problem.
On the new page, I then typed some text.
Then dragged some fields from the Bindings tab to the page.
I saved it and then went to preview it in my browser.
The page comes up completely blank. Not even the text shows.
I then saved the page as an HTML page.
When I preview this in my browser, the text shows, but the fields and data do not.
I then tried creating a dynamic table (again, using the Dreamweaver menus.).
A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
Nothing shows if I save it as a PHP file.
I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
It is just in pages created in Dreamweaver that don’t work.
What am I doing wrong?My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
Frank
Date: Thu, 4 Jun 2009 19:04:03 -0600
From: [email protected]
To: [email protected]
Subject: PHP MySQL data display problem
To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
Mark A. Boyd
Keep-On-Learnin'
This message was processed and edited by Jive.
It shall not be considered an accurate representation of my words.
It might not even have been intended as a reply to your message.
> -
Apache php mysql mac 10.4.8 client
does anyone know the version of php mysql and apache on 10.4.8 if it's shipped with osx and how to upgrade them
Mac OS X (10.4.8)mysql is not shipped... unless youre talking about osx server then it may be.
php is 4.4.1 and the path is /usr/bin/php and /usr/lib/php
apache is 1.3.33 and the relevant paths are /usr/libexec/httpd and /usr/sbin
I wouldnt reommmend upgrading any of them because its possible they could be broken by future system updates, although i dont specifically know of this ever happening. but for development purpouses its better to isolate your environment. Instead of upgrading the system versions i would recommend installing the versions you wish into /usr/local and jsut setting things up to run from there. Marc Lyiange's php packages do this for you by default (www.entropy.ch). MySQL also comes as a mac binary and installs into /usr/local. As for Apache that will require some configuration What i would do is install it into usr/local. Then i would rename /usr/sbin/httpd to /usr/sbin/httpd-1.3.33 and /usr/sbin/apachectl to /usr/sbin/apachectl-1.3.33. then make symlinks to /usr/local/apachedir/bin/apachectl and /usr/local/bin/httpd to /usr/sbin/httpd and /usr/sbin/apachectl.
Of course you could always change the appropriate plists to just run your version of apache but i dont know what those are off hand. For what its worth unless you need a particular module thats not supported on 1.3.33 i wouldnt even mees with apache 2.0. its jsut not worth the effort in my opinion. -
Problems with recordset in PHP/MySQL setting
We use Dreamweaver CS5 for creating dynamic pages (PHP pages with MySQL database). We test the site locally on a Windows 7 operating system with EasyPHP as WAMP server.
We often have a problem in managing the record set.
The following problem occurs quite often:
We take a PHP page. We create a recordset. We use a dynamic table or a repeated region to show the results of the recordset. So far so good.
Then we want to change something to the recordset for example the filter. When editing the recordset, the advanced mode is shown, it is impossible to swith to the simple mode.
By deleting the recordset the problem is not solved. By deleting and afterwards rebuilding the recordset, syntax errors occur. It seems that the php code for building the recordset didn't dissapear.
The only solutions till now seems to completely restart with a new PHP page.
Anyone has a solution for this or anyone did experience the same problem ?
Thank you very much in advance.
IlseYou cannot switch to Simple mode in the Recordset dialog box if you have made any changes to the SQL in Advanced mode.
Opening the Recordset dialog box to edit the settings does occasionally result in the code being inserted again instead of being changed. This appears to be an intermittent bug, which I have experienced myself, and know that others have complained about it, too. As far as I know, there is no solution other than to watch carefully the code that Dreamweaver generates.
If you don't understand the code, you would be well advised to learn what it means and does. Relying on Dreamweaver to do everything for you severely limits what you can do with PHP/MySQL. Adobe regards the server behaviors as quick prototyping tools, rather than for developing production websites. -
Update record problem PHP MYSQL
hi all,
I have a problem with DW 8's update server behaviour. I'm not
sure if its that or a MYSQL problem:
I have one page: upload2.php and there is an option for the
user to change their password.
But when I enter the user details, and the new password, the
database does not change at all.
Where am I going wrong?The_FedEx_Guy wrote:
> Which header information is this? I have never come
across this.
It's probably the most common beginner's mistake in PHP after
forgetting
such things as semicolons or matching quotes:
"Remember that header() must be called before any actual
output is sent,
either by normal HTML tags, blank lines in a file, or from
PHP. It is a
very common error to read code with include(), or require(),
functions,
or another file access function, and have spaces or empty
lines that are
output before header() is called. The same problem exists
when using a
single PHP/HTML file."
http://uk.php.net/manual/en/function.header.php
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Dreamweaver PHP/mySQL poll problem?
Hi,
I'm a PHP/mySQL noob who's using some of Dreamweaver's 8
(8.2) out-of-box Update server behaviors to update a database of
results for a poll. I know there's a lot of free polling apps out
there but I need to have the poll show up in another page as
opposed to being refreshed/displayed in the same page/content area.
I've successfully built the backend in phpMyAdmin and I'm
able to list the database contents and do basic updates to the poll
questions and answers. However, I've been unable to pass an
incremented result value via a Dreamweaver radio button group
(which is the normal poll format) without previous unselected
results being overwritten.
When an answer is selected the result is indeed incremented
and is displayed in the Result Listing but unfortunately it also
overwrites any preexisting data for that poll and replaces it with
zero. For example:
Question:
Answer a) 0
Answer b) 0
Answer c) 1 (this would be the value that was selected)
Answer d) 0
If c is selected again the value is stored and incremented
and the value is now 2. However, if that value is not selected,
then another value is incremented and c would be wiped. I've even
resorted to trying to use javascript to maintain the original state
but to no avail I was just previously incrementing the inline php
radio button value and/or assigning different names to each of the
radio buttons. This, of course, allows people to select multiple
values which runs contrary to the whole idea behind radio buttons,
but I thought I'd see if that worked . Anyway, when the radio group
is assigned the same value it merely increments everything.
example:
http://www.dailydatum.com/funFacts/funFactsListingSingleUpdate15.php
As you can see, i'm up to version 15 and gritting me teeth,
lol. Any help would be mighty appreciated.
Mariohi ,
you can always try the macromedia devnet sites , they have
ongoing tutorials and discussions on all areas, including php with
dreamweaver8.
http://www.adobe.com/devnet/topics/php.html
be aware though that some of the tutorials require the use of
third party php extensions, like interakt products, which is a
shame because most of them are expensive to buy. But they are still
worth a read.
hope this is some help.
ted. -
Can't connect PHP/MySQL 404 error
Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
I'm at this step:
Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
Type connTest as the connection name.
For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
For the User Name, type phptestuser.
Type the password you chose for the phptestuser account in the Password field.
For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
Double-check the server name, user name, and password.
Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
Verify that the web and MySQL servers are both running.
Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
Click OK. The new connection appears in the Databases panel.
Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
As far as I can tell I have followed this tutorial to the letter.
As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
The suggested problems on the 404 message are:
1. There is no testing server running on the server machine.
Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
Everything in local files is looking good.
Thanks for your help!
PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!Bgupta, you rock!
I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
Fixed! -
Php mysql math error when using format(somenumber,2)
osx 10.5.2, php 5.2.5, mysql 5.0.51 (standard leopard desktop os install)
Select format(myField,2) as someNumber from myTable ...
returns data i would expect, formatted as you would expect.
while looping through the data returned i am calculating a running total.
for numeric values less than 1,000 results are expected. for numbers gt 1000, php seems to want to truncate the value at the comma. 1,111.11 evaluates to 1; 25,000 evaluates to 25.
If you remove the format() from the sql statement everything works the way you would expect.
wrapping the value returned in a floatval() had no effect.
I am posting this on the apple site rather than php/mysql forums on the off chance that this is a mac centric issue. googling the obvious combinations wasn't productive.Sounds like a locale issue.
Many international formats use comma as the decimal separator, not the thousands.
There are many levels where this could be set. It could be an OS setting (you don't say where you or, or the locale information of your machine (System Preferences -> International -> Format). It could be in PHP (see: http://www.php.net/setlocale ), or it could be in the database (data could be written in a comma-based table).
It will take a little research to work out where your specific problem lies. -
Host recomendation - linux - php/mysql
Hi gangsters and molls :)
I'm looking again for some advice from the knowledgable
contributors of
this forum, of which there are many, many, many!
I'm in need of a host, that provides php/mysql linux and some
good
online instructions (preferably the hosts own instructions)
about
tranfering/connecting the database up. I'm as thick as two
planks when
it comes to moving the the dynamic technical stuff over to a
remote
host, so bear that in mind. I try but I'm getting old and
past my
sell-by date :(
I've done this on a couple of occasions (some time ago
though), spent a
good few hours resolving connection issues but finally
everything
worked. However if anyone knows of a good host and some good
walk ya
through instructions to save me some hassle I'd be grateful.
I'm not really that bothered where the host is (preferably uk
but I'm
open minded)........EASE OF USE & SET-UP is paramount on
this ocassion.
Cheers!
Os.: Nadia : ** Adobe Community Expert ** wrote:
> "Osgood" <[email protected]> wrote in
message
> news:[email protected]...
>
>>Hi gangsters and molls :)
>>
>>I'm looking again for some advice from the
knowledgable contributors of
>>this forum, of which there are many, many, many!
>
>
> you're being too mich - what's up Os ? ;-)
Yeah...I'm on new tablets.........seems to be doing the trick
until my
immune system fights back.
>>I'm in need of a host, that provides php/mysql linux
and some good online
>>instructions (preferably the hosts own instructions)
about
>>tranfering/connecting the database up. I'm as thick
as two planks when it
>>comes to moving the the dynamic technical stuff over
to a remote host, so
>>bear that in mind. I try but I'm getting old and past
my sell-by date :(
>
>
>
> www.hostmysite.com is US based, but I've had no problems
with email
> support - they've been great... they also have
'live-help' I think. They've
> helped me heaps in setting up dbs or fixed errors when I
did a few installs
> of various CMSs...
Yup...you've mentioned them before in some previous posts,
I'll check
them out.
> www.webstrikesolutions.com been with them for years...
email support is
> terrific (no phone support, but live chat again).
Haven't had much to do
> with php side of things with them, though they have both
win and linux
> servers, most of my clients are on windows and a couple
of clients on linux.
> Had to have help with a couple of asp dbs and they were
great help there.
Humm....why does a connection to a remote database seem so
imposing.
Should be a simple drag and drop solution.
I don't even know where the database file is created on my
Mac but
apparently you have to create a 'dump' file to transfer it to
a remote
location. I can do that in phpMyAdmin but wouldn't it be
simple if there
was an identifiable file which you could just grab hold of
and drag
across.......bummer all seem complicated to me.
> www.crystaltech.com have also been great to work with -
again US based,
> help docs are a bit sparse - or it could be me not
understanding them :-)
> but email support is good.
Humm I have some instruction docs from a host that I have
previously
used but thaey might as well be written in chinese.
Do you know if I can set up a website on one server and have
it pull
information from a database which is hosted on another
server?
Os. -
CS6 Dreamweaver using PHP & MySQL - Delete Record Server Behavior?
When I try to insert the Delete Record server behavior. I get an error message about a DeleteRecord.js file, which seems to be missing or defective. I cannot use the server behavior. I have a file that I developed using CS5, and it does indeed delete the record, but does not proceed to the destination I want. I cannot change that except in the server behavior, so I'm stuck. I have noticed that server behaviors seem to disappear without apparent cause, as it seems to have in this case. I will appreciate any suggestions! Is there any way to embed a call to a target page manually? All is working WITHOUT the server behavior appearing, but I want to go to a confirmation display page that shows the record is indeed deleted, and we just return to the (now blank) delete confirmation page. That'll drive a user bonkers!
Thanks!
Delete Record in CS6 Dreamweaver using PHP & MySQL?Well, your error message is self-explanatory.
DW stores ServerBehaviors in 'Configuration' folder in installation directory. If one of the behavior JS files is missing/ corrupt, you'll see the error message you just did.
I've uploaded a functional, proper version of DeleteRecord.js onto my site for you to download. Here's the link:
http://www.sudarshan.me/adobeforum/dw/app/behavior-js/DeleteRecord.zip
Download this file, extract it and put DeleteRecord.js file in your installation directory as follows. If prompted, 'replace' your local copy:
Mac: Applications > Adobe Dreamweaver CS6 > Configuration > ServerBehaviors > PHP_MySQL
Windows: C:\Users\Your User Name\AppData\Roaming\Adobe\Dreamweaver CS6\[language]\Configuration\ServerBehaviors\PHP_MySQL
It should work as expected.
If that still doesn't solve the problem, reset your DW preferences and cache and try doing it. Follow the instructions here to reset cache: http://forums.adobe.com/thread/494811
Let us know how it goes.
-ST -
Database Connection using PHP/MySQL on OS X
I created a database connection originally on my XP machine
using Dreamweaver CS2 and everything worked as it should. I
recently switched to a Mac and CS3 and while I can see the
connection file in the Connections folder, it appears grayed out in
Dreamweaver. I tried to create a new data connection to see if that
would solve this problem, but it won't let me. I typed in all the
information and when I clicked "Test" or to browse for the
appropriate database it pops up an error message saying "An
unidentifiable error has occurred". I'm sure I could work around
this by manually coding everything, but I'm a novice in programming
and need to be able to use this feature. The worst thing about it,
is that anytime I have to make a change to the web page, even if
it's not regarding this section of code, it gets messed up. I have
made backups, but once they are opened on the Mac they are messed
up.
I'm using Dreamweaver CS3, PHP/MySQL on a remote server as I
still can't get my local web server functioning properly under
Leopard. Any help would be appreciated because I haven't been able
to find anything regarding this error online.bouldersp wrote:
> I typed in all the
> information and when I clicked "Test" or to browse for
the appropriate database
> it pops up an error message saying "An unidentifiable
error has occurred".
That usually means that something is preventing communication
between
Dreamweaver and the testing server. It could be a firewall or
anti-virus
software. In the Testing Server section of the Advanced tab
in Site
definition, Host directory and URL prefix should both point
to the same
place. The first is the physical path to the top level of
your site, the
second is the URL you enter into a browser address bar to get
to the
same location.
> I'm using Dreamweaver CS3, PHP/MySQL on a remote server
as I still can't get
> my local web server functioning properly under Leopard.
You might find this tutorial on my website helps:
http://foundationphp.com/tutorials/php_leopard.php
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
I would like to learn php and am working on a mac. A couple
of years ago
I attempted to install a php invironment on my computer and
got into
some real problems with my OS in the process.
I think I want to try again and am wondering what steps I
should take
and any other advise anyone would like to share! I am still
on a
mactintosh and am on OS X 10.4.
Any advice is highly appreciated!!!
Thanks,
BrianThank you all three of you for helping me!!!
David, so what you are suggesting, sounds like, I think
pretty much what
I tried to do the last time, and I am a bit scared it will
lead down a
similar road of hours of frustration...?
I am a complete newby to mySQL, php, and all that comes with
it. Do you
think the preinstalled version might be enough for me, since
I don't
know that much and will not do any hardcore stuff anyway?
What should I do?
BTW - I bought your book yesterday. Waiting for it to get
here...
Thanks a lot!
Brian
David Powers wrote:
> Mark Fletcher *WebAssist* wrote:
>
>> Just in case you didn't realize. There is also an
excellent article
>> for setting up the PHP, MySQL and Apache Server
Platform on Mac OS X
>> available at the Dreamweaver Developer Center.
>
>
> It may be an excellent article, but it's also very old.
It refers to Mac
> OS X 10.2 (Jaguar), PHP 4.2 and MySQL 3.23. The
instructions for MySQL
> use safe_mysqld, which has been replaced by mysqld_safe.
>
> I don't know what Intel Macs are shipping with, but the
pre-installed
> version of PHP on pre-Intel Mac OS X 10.4 is a rather
useless, cut-down
> version. What's more, it's not enabled. It's far better
to go to
>
http://www.entropy.ch/software/macosx/php/
and get the fully featured
> version of PHP 5.1.2 which is a precompiled Mac package
(not yet
> available for Intel Macs).
>
> It's also important to realize that Apache, although
installed, isn't
> switched on by default. You need to go to System
Preferences, Internet &
> Network, Sharing, and select Personal Web Sharing.
>
> MySQL also creates a Preference Pane, which makes
stopping and starting
> MySQL on a Mac much easier. It comes in the Mac package
that can be
> downloaded from
http://dev.mysql.com/downloads/.
> -
I use Dreamweaver CS3 to create my sites on a Windows/Apache
Server with PHP5 and Mysql 5. The site works perfectly on my
testing server at home. On the Web server I'm getting the following
error which causes the page to not load:
PHP Warning: mysql_query(): supplied argument is not a valid
MySQL-Link resource in
/hermes/bosweb/web248/b2488/ipw.horsehelp/public_html/residents/residents.php
on line 63
PHP Warning: mysql_select_db(): supplied argument is not a
valid MySQL-Link resource in
/hermes/bosweb/web248/b2488/ipw.horsehelp/public_html/residents/residents.php
on line 61
The lines in question are:
Line 61 - mysql_select_db($database_conn_phh, $conn_phh);
$query_getSuccess = "SELECT * FROM horses WHERE status =
'Success Story' ORDER BY horse_barn ASC";
$getSuccess = mysql_query($query_getSuccess, $conn_phh) or
die(mysql_error());
$row_getSuccess = mysql_fetch_assoc($getSuccess);
$totalRows_getSuccess = mysql_num_rows($getSuccess);
All of the code is supplied by Dreamweaver. I did not tweak
the code. I'm not a web developer and what I have found out there
is still reading greek to me. My connection file is working and
connecting the database that I have tested.
Since the above code is throughout the site in one form or
another it's causing me major headaches. Any help would be
appreciated.This is the first time I've used Adobe products so if the
following is in the wrong forum (It's the closest one I found so
far) or the format is incorrect please forgive me.
I'm new to Dreamweaver CS3 and as I was reading the "first
steps" it mentions to set up a Dreamweaver site right away. I got
as far as completing "Site Definition" page under the basic side of
the setup screen.
The next screen is "Do you want to work with server
Technology?"
There are 2 options - Yes or No. If you select yes a
drop-down menu appears with several options (but you can only
select one)...
Asp Javascript
Asp VbScript
Asp.net#
Asp.net Vb
Cold Fusion
JSP
Php MySql.
I know nothing about these format and brand new to web design
so I thought it best to contact GoDaddy (my hosting account) to
find out what their servers would support. I spoke to a tech rep
but she wasn't sure.
She did mention that I have a windows hosting account and Php
MySql would not work unless I changed to their Linux platform at no
additional charge.
The site I have in mind will design with CSS, Liquid layout,
have some flash, widgets, an inquiry form that clients complete and
results e-mailed to me, auto-responder, Paypal link and whatever
else I can discover from Dreamweaver.
My question being:
I haven't even begun designing my site because I do not know
what weather I should select the Yes option and select one of the
formats mentioned above (if so which one) - or select the No
option. If I do select the No option at the very beginning, will I
have problems with my site uploading and working correctly?
Thank you
Travis
Maybe you are looking for
-
How to deal with #ifdef in .java files with javadoc tool?
My .java file included some '#ifdef' & '#endif' sentence. So when I used javadoc tool to generate the .html files, error happened. Can anyone give me some indication how to resolve the problem, provided that the source code can not be changed because
-
How to bind JTable row height to the maximum height of a the columns
Suppose i have a JTable. data setup is done. Thing is whenever data font size increases table row height should change. How?
-
Mozilla Firefox is not saving any of my usernames or passwords
Mozilla Firefox is not saving any of my usernames or passwords on any of the sites I visit and I'm wondering why. I clicked on Tools then I clicked on Options then clicked on the Security tab then under Passwords I checkmarked "Remember passwords for
-
Cisco ISE inline posture node Posture assessment query
Hi all, i read the user guide for the ISE 1.1 and in the Inline posture section, I picked up the following text which concerned me if I understand it right... "In a deployment, such as outlined in the example, when more endpoints connect to the wirel
-
Why does my search take 60x-70x longer with X or XI than with v9?
When I install Adobe Reader X (v10) or v11, I notice a huge degradation in search speed. I first noticed this last year, and I just re-verified my results with the latest version (v11.0). I don't know if this is unique to my system, or if you might