I'm trying to find a good environment to building and maintain an existing website. Would Adobe's Dreamweaver be a good purchase as far as coding in PHP, html, jquery, with a mysql database?
I'm new to php and mysql and I'm trying to learn how to store the following array data from three different arrays friend[], hair_type[], hair_color[] using MySQL and PHP an example would be nice. Thanks
Here is the HTML code.
<input type="text" name="friend[]" id="friend[]" />
<select id="hair_type[]" name="hair_type[]">
<option value="Hair Type" selected="selected">Hair Type</option>
<option value="Straight">Straight</option>
<option value="Curly">Curly</option>
<option value="Wavey">Wavey</option>
<option value="Bald">Bald</option>
</select>
<select id="hair_color[]" name="hair_color[]">
<option value="Hair Color" selected="selected">Hair Color</option>
<option value="Brown">Brown</option>
<option value="Black">Black</option>
<option value="Red">Red</option>
<option value="Blonde">Blonde</option>
</select>
<input type="text" name="friend[]" id="friend[]" />
<select id="hair_type[]" name="hair_type[]">
<option value="Hair Type" selected="selected">Hair Type</option>
<option value="Straight">Straight</option>
<option value="Curly">Curly</option>
<option value="Wavey">Wavey</option>
<option value="Bald">Bald</option>
</select>
<select id="hair_color[]" name="hair_color[]">
<option value="Hair Color" selected="selected">Hair Color</option>
<option value="Brown">Brown</option>
<option value="Black">Black</option>
<option value="Red">Red</option>
<option value="Blonde">Blonde</option>
</select>
Here is the MySQL tables below.
CREATE TABLE friends_hair (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
hair_id INT UNSIGNED NOT NULL,
user_id INT UNSIGNED NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE hair_types (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
friend TEXT NOT NULL,
hair_type TEXT NOT NULL,
hair_color TEXT NOT NULL,
PRIMARY KEY (id)
);
Hi -
I have in my website a PHP page which retrieves data from my database to be presented in my website. This page is called via AJAX. How can I restrict the access to it only from pages within my website so users who wants to abuse it and get this data not from the website (e.g. posting HTTP request from their server) itself won't be able to do so ?
I'm looking for either an ASP.net or PHP based webmail app I can install on my shared hosting.
I want to set this up on one of my domains for my Gmail address, due to Gmail being blocked at work.
I'd like the interface to be as similar to Gmail as possible, conversation view, labels, starred emails etc if possible well at least allow me to keep with my GTD workflow.
Any suggestions?
Given an email address, how can I verify that it is valid? (That the email's domain will accept email for that address.)
How would this look in PHP?
Note: I don't want to verfify that the email address itself is syntactically valid. I want to know whether the domain will accept email to that address.
I need to use a TCP socket connecting to a port outside of 4502-4532 while running in browser. I know it is possible to do out of browser with allowing full access, but how can I do it inside the browser? I am connecting to an old Unix system so I would prefer not to host a web site hosting a clientaccesspolicy.xml file. Thanks in advance!
I have a sketch pad made in Flash AS3 like this one here: http://henryjones.us/articles/using-the-as3-jpeg-encoder
I want to send the jpg to the server and some data from a html form field with php. Is there a way to force the Flash movie to deliver the image file when one presses the submit button?
i still confused on this subject And ask for any help and reference on how to check visitor IP address via PHP.
i'm know it seem lazy to ask something before attempt to code something to show. but right now, i also googling to find it. hopefully someone can give general broad answer or some link to read.
btw, what to be consider when we had to code some feature like this ?
I want to make a automated call application, which will dial some mobile numbers, and give the response to them, and also record there voice in wave and text format. is it possible in PHP, or there is any buildin function or classes for doing that?
Hiya,
I have a php shell script that downloads a large file, it would be a bit of a luxury to be able to see the progress of the download in shell while it's happening, anyone have any idea how this can be achieved (or at least point me in the right direction!)
Thanks!
What is better for PHP developers - Unicode or UTF-8?
I am going to create an international CMS. So I am going to have clients all over the world. They will speak all possible languages.
What encoding format is better for browser recognition and for DB data storage?
I am using includes to pull in the various functions I am using, and I am now starting to use include to pull in chunks of HTML/PHP. Is there a point where I have overused includes?
I have this string : Verbesserungsvorschläge which I think is in German. Now I want to match it with a regex in php. To be more general, I want to match such characters like German which are not 100% in the ASCII set.
Thanks.
I am using php gd2 for creating image with text. I used dynamic background image and dynamic text which need to add on the background image. This is working. But the text quality is very low. I'm using papyrus.ttf font. Is there any way so that i can increase the text render quality.
Hello,
My company wants to use Liferay for developing a portal and integrate Alfresco with it for document management.
But both Liferay and Alfresco are Java based and i would like to know if there are any alternatives to Liferay and Alfresco in PHP or Python.
Thank You
I want detailed explanations for bsd-socket options so that I can use them in the right manner. Can anybody please provide me some document or link from where I can refer?
Thanks,
Satinder Singh
[email protected]
I can't use mkdir to create folders with UTF-8 characters.
<?php
$dir_name = "Depósito";
mkdir($dir_name );
?>
But, when I browse this folder in Windows Explorer, the folder name looks like this:
Depósito
What should I do?
I am writing a piece of small software to go through the folders and files of all the php projects that are passed in and detect if any of them is actually also a Zend project. Is there any particular file that I can immediately read and tell that the current project is a Zend project? or is there any convenient way to tell?
I've looked across the web, I've looked through SO, through PHP documentation and more.
It seems like a ridiculous problem not to have a standard solution to. If you get an unknown character set, and it has strange characters (like english quotes), is there a standard way to convert them to UTF-8?
I've seen many messy solutions using a plethora of functions and checking and none of them are definitely going to work.
Has anyone come up with their own function or a solution that always works?
I need to create a php search function for names and need to change LastName, FirstName into LastName..FirstName to search the database. I don't know if this helps, but the string will originally be in the form a variable ($Client).
I need the syntax for the three statements that find the string, matches, and makes the changes.
I noticed that PHP seems to return only values of checked checkboxes. I would like to see a list of checkboxes, not just values of checked checkboxes. Is there a way to detect variables of unchecked boxes?
I asked because I want to be able to update settings. For example, I have a few options that are already checked but if an user decides to uncheck an option, I need to know that unchecked value so I can update the option to be disabled.