Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Install PHP W/DreamweaverMX Or Just Insert PHP Code Into HTML?


I am brand new at PHP and Dreamweaver MX. We have Linux/appache. I need to create a form on the web/and communicate data to/from an MS Access DataBase. I saw a great tutorial ref in devshed.

If I have Dreamweaver MX, do I need to purchase PHP? Dreamweaver can process PHP code embedded into its HTML, I think but do I need "something" else? What version of PHP is MX using ? Are there other links that provide "PHP script/code" to use to connect to Access?




View Complete Forum Thread with Replies

Related Forum Messages:
Install PHP - File With Extension .html
I install and config PHP, Apache & mySQL successful but I have a problem that my file with extension .html don't run. Although, these file .php run good.

View Replies !
Inserting Adsense Code - Html Program That Automatically Coverts All My Text Files To Html Webpages?
I've purchased a text to html program that automatically coverts all my text files to html webpages within a template, but the only problem is how do I insert my adsense code into all 250 pages? I've seen articles regarding PHP includes for page templates, but I'm not sure how this would work inserting my code.

View Replies !
PHP INSERT Code (MySql)
Ok... i want to insert info into a db using php and mysql...
I can connect to the db using most of this code the only thing i am having trouble with is the 'mysql_result'.... If anyone could help. that would be great... thanks.

This is the code im using... my sql statement is fine but im not sure what php code to use...
<?php
$db = mysql_connect(sql,username,password);
$sql = "INSERT INTO tblMyTable (name,address) VALUES ($strName,$strAddress)";
$res = mysql_db_query(username, $sql)
***here is my problem... what goes here?
mysql_result($res,0);
***that was my guess but its not working..
?>
I couldnt find the code in the manual.. If anyone could help that would be great thanks

View Replies !
Code To Insert The $name Into The Database.
I have this code to insert the $name into the database. However it won't work. PHP Code:

for($i=0; $i<$numDadosNoArray; $i++)
{
    $firstnames = array("Peter", "John", "Francisco");
    $lastnames = array("Simão", "Gustavo","Gaspar");
    $nome= $firstnames[array_rand($firstnames)]." ".$lastnames[array_rand($lastnames)];

    $queryNome = mysql_query("SELECT * FROM equipa WHERE jogadores='$nome'");
    $numRegistos = mysql_num_rows($queryNome);

    if($numRegistos==0)
    {
         
          mysql_query("INSERT INTO equipa (jogadores) VALUES ('$nome')");       

How can I make it work?

View Replies !
Insert Code Into File?
ok im writing a cms system and i have a page that lets you edit the config file problem is it not getting the variable $scmspms from the form?: Code:

View Replies !
INSERT Code Isnt Working.
This probably has a really simple answer, but my INSERT code isnt working.

mysql_query('INSERT INTO `members`
(`id`, `uname`, `uemail`, `upass`, `GUID`, `data`, `permissions`)
VALUES ('NULL', $psuser, $psemail, $psPassword, 'NULL', 'NULL', &#391;')');
And I get an error saying
unexpected T_STRING .

View Replies !
Code Insert To View Session Variables ?
I am having some challenges using session variables between pages with Dreamveaver MX. Is there a piece of code i can temporarily place into my pages that will print the values of all Session Variables, such that I can see they are definately being passed between the pages?

View Replies !
INSERT Html / WYSIWYG
I have been having trouble finding a solution to actually inserting html into a database and then showing it again fully formatted. Code:

View Replies !
How To Insert Tab In An Html Page???
i am making one appllication inwhich the user enters text in textarea field. i am saving this value in database and when user accesses value from database, i want to display text in a format entered by user.

i.e. if the user has entered some text in 2nd line then it should be displayed on second line and not after the end of first line in continuation. if user has entered tab in some location, the tab will be displayed while viewing data from database.

View Replies !
How To Insert $filename Into Html Tag?
i want to insert $filename into src=" " using echo;
but i don't know the right syntax to do this.

This was the codes below that unsuccessfully executed.

$filename = "myimage.gif";

echo "<img src=$filename />";

although there was no error but i don't see the image
i guess my insertion to variable inside a src=" " is wrong...
I hope you will help me with this very tiny insertion problem.

View Replies !
Insert/Add Row In HTML Form
I am trying to find out a way to have the user input as many rows as they desire, right now I only have a form where user can only input one row of data, I am wondering if there is a button lets say named "Add Row", after clicking it, the user can then add row into the database automatically? It might be vague, so let me describe it in a more concrete way. Lets say if I need user to enter a receiving report, the record includes date, sender, contents of shipment, qty.

View Replies !
Using More Than One HTML Form Box To Insert Data
I want to be able to use multiple form boxes to insert data into one field in a mySQL database. Is their a PHP processor function or script that will do this?

View Replies !
Insert JPG Created With Information From A DB In HTML
I look in my DB for a CODE. I find it and now I want to show the jpg
corresponding to this CODE in html. Here is my piece of code, however
the photo will not be shown.. Code:

View Replies !
Insert Data In A Html Table
here is the code:

<?
$a=array(1,2,3,4,5,6,7,8,9,10);
$b=array(1,3,5,7,9);
$c=array(1,1,2,2,3,3);
$d=array_count_values($b);
$e=array_count_values($c);

foreach($a as $key)
echo '<table><tr><td>'.$key.'</table></tr></td>'

foreach($d as $key=>$value)
echo '<table><tr><td>'.$key.'<td>'.$value.'</table></tr></td>'

foreach($e as $key=>$value)
echo '<table><tr><td>'.$key.'<td>'.$value.'</table></tr></td>'.

View Replies !
Use The Php Include Command In Source Code To Insert External Page
Hello, i am trying to use the php include command in source code to insert external page when a main page loads, but get the following errors.. can you help?

View Replies !
Code To Insert Data Into An Access Database Using Odbc Commands
I developed some code to insert data into an access database using odbc commands, and my code is below. PHP Code:

View Replies !
Adding Arrays - Snippet Of Code To Deal With The Insert-part
I'm doing a one-time operation of importing something from a textfile. My bet was foreach() but I'm unsure of the code itself, so I'd appreciate a snippet of code to deal with the insert-part Here's the code of the field which produces about 400 rows. PHP Code:

View Replies !
Insert Data To The Database From An HTML Form
i want to insert data to the database from an HTML form but when i run the script it will insert NULL to the database. On that note i like to request for help from anyone. This is my code

<?php

include "connect.php"

$sql = "insert into TEST values(:name)";

// Parse SQL
$stmt = OCIParse($conn,$sql);

// Bind php variables to Oracle columns
OCIBindByName($stmt,"NAME",$name);
// Oracle converts all column names into UPPERCASE

// Run SQL
OCIExecute($stmt);

View Replies !
Present An Array Of Data, And The Corresponding Primary Key And Let The Code Work Out Whether To INSERT Or UPDATE It.
There's lots of DB abstraction layers out there, but a quick look around
them hasn't turned up anything which seems to met my requirements. Before I
go off and write one I thought I'd ask here if anyone knows of such a
beast...

I want some code where I present an array of data, and the corresponding
primary key and let the code work out whether to INSERT or UPDATE it, I
also want to be able to present the data from a QBF or QBE then be able to
step through the result set. However I don't want to have to configure the
DBMS structure - after all most of it is already in the DBMS (OK so not the
relationships in a MySQL db). It'd be really cool if I could throw SQL
directly at it *too*.

View Replies !
Libtool: Install: Error: Cannot Install `libphp5.la' To A Directory Not Ending In /va
I am trying to install php on a Solaris 9 box. Here is my configure statement: Code:

View Replies !
Html Code Within Php Code
How can I insert HTML code from within a php statement?

eg

if validation
{
html code snippet to display message
}else{
HTML Code snippet to display error page
}
}

View Replies !
HTML To BB Code
How do I convert HTML code to BB Code, primarily the [img] tag and the [url] tag. Here's the code I tried which doesn't seem to work (both [img] and [url] codes are below). PHP Code:

// [IMG] Code
$new_post = eregi_replace("[img]([^[]*)[/img]","<img src="1" border="0">",$new_post);

// [url] Code

I just realized that I don't even have the [url] code anymore.

View Replies !
HTML Code
code that is working

echo'

<input type="button" value="view" onClick="top.location.href= select_product.select.options[select_product.select.selectedIndex].value">'

i want to add target=_blank in the end so that url will open in a new window however i keep trying using different with different ' or ".

View Replies !
HTML With PHP, How I Can Add PHP-code In HTML...
Could you help me. How i can add my PHP script or PHP- code in HTML-file.

View Replies !
Parse PHP Code In .html??
I was wondering if it's possible to parse PHP code in .html documents without requiring root access (since I'm on a virtual server). I want to make a two line call to a log program, but I don't want to have to change all of my .html files to .php.

View Replies !
HTML Code In Eval
I'm currently trying to put some HTML code into a variable and to use
it later.
Any ideas, why TEST1 in the following example displays a link, while
TEST2 only displays a text?

<html>
<head>
</head>

<body>

<!-- TEST1 -->
<a href="www.test.com">this is test1</a>

<br><br>

<!-- TEST2 -->
<?
$teststr="?><a href="www.test.com">this is test2</a><?php";
eval($teststr);
?>

</body>
</html>

View Replies !
HTML Email Can Only See The Code
I create a PHP script like the following to send a form output, but only the html code is shown in the html, really can't find any mistake:

<?
for ($i=0; $i<count($uniEmailArr); $i++) {
$to = stripslashes($uniEmailArr[$i]);
$subject = "testing";
$body = "<b>test</b>";
$headers = "From: Marketing <mktg@co.biz>";
$ret = mail($to, $subject, $headers, $body);}?>

Returns only a message with the body as below: (only subject is correctly inserted in the email) <b>test</b> From: Marketing <mktg@co.biz>

View Replies !
Embed A Php Code Into Html
I want to embed a php code into my html file. But its not showing anything. The same code works when I rename the file as .php

<html>
<body>
<?php echo "hi";?>
</body>
</html>

This code works as hi.php3 but doesn work when I rename file to hi.html.

View Replies !
Put HTML Code From A File
How can I put HTML code that is in a file PHP have any funtion or I have to do it?

View Replies !
Embedded HTML In Php Code With 5.1.1
why this code works in 4.X, 5.0.X and not in
5.1?

<?php
function myfunction(){

*** php code ***
?>
<a href="bla.bla">bla</a>
<?
*** php code ***

}

?>

when i run it under 5.1 i get the error "Parse error: syntax error,
unexpected $end in" on the last line of the file. i drop the embedded
html and it works fine.

i know doing it this way is kinda sloppy and on my list of things to
fix, but that can't be done right now. is there some setting in 5.1
where i can turn this back on or do i have to downgrade to 5.0 again.

View Replies !
Color The PHP Code Into HTML
I have a website source code website. I want my code in HTML page is colored as standard color syntax. Are there anytool that can help me in this problem. For ex: My code is

<?echo "something";?>

I want the code in HTML looks colorful like:

<?echo "something";?>

Ofcourse, I can change the color manually, but I have tons of code and dont want to do it by hand.

View Replies !
Html Code From Folder
How can I write a php code that when it is include in a html page it
create a menu link automatically, reading from a main folder its
subfolder and html files?

View Replies !
Embedding Php In Html Code?
I'm a new boy to php and working on a web site with long sections of
code that could be done as includes apart from one or two things
changing.
I've tested the following and it works, but what I really want to know
is am I OK placing php code inside a html line like this, or could there
be problems?

<!-- html code for test.php -->
<!-- lot of code cut -->
<a href="<?php print $filename; ?>"><?php print $title; ?></a>
<!-- lot of code cut -->
<!-- end of test.php -->

<!-- which is called in the main file like this -->
<?php
$filename="index.php";
$title="Index Page";
include ("test.php");
?>

View Replies !
HTML Forms Within PHP Code
i want to do is put an "HTML form" from a PHP code, how do i do this ?? is there a way to do it? Code:

View Replies !
How To Get HTML Code Of Another Page
Can someone direct me to a code that will go to another page and retrieve the html source for parsing within a php script?

View Replies !
HTML CODE IN GMAIL
I have html generated code:

like

<table><tr><td><img src="http://www.abc.com/images/abc.jpg"></td></
tr></table>

When i copy above code and paste this code in gmail,yahoo or hotmail compose mail. But when i send mail with this code i received html code not display image in table format.

I want to accept this html code and display in html structure in mail without use of any server side scripting language.

View Replies !
Add Html Code Using Fwrite
I am just trying to put together a little "newsboard" script for a site. I have created my form, which contains 4 different fields, however i want to create a html page from the fields of the form. However, i can't seem to figure out how to put the html code and variables into fwrite($fp, $string); in order for all the fields to complete a page that the script is creating. Essentially right now it is creating a blank page.

View Replies !
Hiding HTML Code
I came across this site looking for a solution to this menu I've been trying to do with php. They way I wanted it to work was this:

<!--- page.php ---->

<a href=page.php?submenu=1>

<?php if($submenu!=0) {>
<tr>
<td>put sub navigation here</td></tr>
<?php }?>

As you can see I just want to pass the boolean to the same page, so that it changes the value of a $submenu. I'm still unfamiliar with developing, but maybe I should be using javascript or other language, I really don't know.

View Replies !
Echo Html Code
I would like to echo HTML code and not execute it, how can i do that.

Example : echo('<br>') would not print a line but "<br>" on the screen.


View Replies !
Grab URL Out Of HTML Code
Basically I have an HTML page with some text and URL's. I need to create a script that will grab the source code and grab the links on that page. Now the pages I use it on use graphics for buttons and I need those URLS too. How can I do this?

View Replies !
Html Code In Echo
i try to put this working but in some point it incorrect, i try 2 different ways, the code is: PHP Code:

<td>
<?php echo "<input type="button" name="refererEditBtn" value="Edit" class="form" onClick="frmAllowedReferers.refererBtnIDName.value='".$line."' frmAllowedReferers.refererBtnValue.value='Edit' frmAllowedReferers.submit();">"; ?>
</td>

or

<td>
<?php echo "<input type='button' name='refererEditBtn' value='Edit' class='form' onClick='frmAllowedReferers.refererBtnIDName.value='".$line."' frmAllowedReferers.refererBtnValue.value='Edit' frmAllowedReferers.submit();'>"; ?>

</td>

View Replies !
Strip Html Code
I have a mysql database and I am building a search engine on it. The problem is that in the database there is stored html code like , <align> so it messes up my result page. Is there enything I good do. Some php fuction? I have tried htmlspecialchars() and htmlentities() and there decode modes but nothing seems to happen.

View Replies !
Ereg_replace With Html Code
I'm writing some php code which parses an html file and formats it. I'm having a few problems using the ereg_replace command to strip out some html code. My code is as follows:

<?
$final = ereg_replace("<INPUT TYPE="checkbox" NAME="action_chk_lst[[0-9]]"", " ", $strip2);
?>

$strip2 is the html file contents. The file contains several instances of the above string and action_chk_lst shows up as action_chk_lst[1], action_chk_lst[2], action_chk_lst[3] and so on. My regular expression doesn't seem to match as the html code isnt removed once it's run. Using str_replace and referencing one of the action_chk_lst's specifically works fine (the code is removed and replaced with a space)
Any ideas as to why it's not working, and/or is there a better way to do it?

View Replies !
Maintaining Html Code
I've got a field in my db that stores some html content. For example, one line looks like this:

<ul>
<li>Bullet number one</li>
<li>Bullet number two</li>
<li>Bullet&reg; number three</li>
</ul>

View Replies !
Masking Html Code
I am modifying a guestbook code and there is one specific line, where I can't escape the double quotes that I want to be parsed to html.

$cookie = setcookie('entry','
<br><br><span class=warning>

You have already posted a Message on this guestbook.<br> wait 2 minutes and try again.</span>',time() + (120)); double quotes should be parsed around the term "warning" in the span class. I know it's not that necessary to have quotes in the html text, but I want to get this right. In other pieces of code I could easily escape the double quotes by using ".

View Replies !
Output Html Code
I have this image code inside my db

<img src="images/dir_48.jpg" width="119" height="114" alt="">

now when I select it and echo it out it justs shows up like that in the browser.

View Replies !
Variables With Html Code
can i create variables with html code in them and then print or echo out the variable in another php and html file. Code:

View Replies !
Posting HTML Code
I need to post from a php script several text fields that have normal text, but I also need to post some HTML code which consists of a table and hyperlinks as well. First can HTML Code actually be posted from a normal HTML form? Whether or not it can be done from a HTML form can it be done from a php script? If so how do I go about doing this.

View Replies !
Carriage Returns On Html Code
I'm rather new to PHP, though not to web developing. I'm developing a dynamic site with PHP and I have a problem with the HTML output.

It looks like PHP is adding an extra carriage return for every line of code it outputs, which makes the layout to break down.

An example:

View Replies !
How Do I Parse PHP Code Within An HTML File?
I'm trying to figure out a way to save message bodies of the various e-mails I send from my site into HTML pages and then import them when I send the e-mails. But I've never tried anything like this before so I'd appreciate some help. Here's an example of the code I'm using: Code: $email_body = file_get_contents("emails/application_approved.htm");
I can import the HTML files without problems, but I've also got PHP variables in the HTML code and I need to know how to parse those variables. Is it even possible?

View Replies !
How To Get PHP To Remove Html Code From Messages
I am running php scripts from the command line, and it always outputs
errors in html mode. Is there an option to disable the html from the
error messages?

View Replies !
Write Html Code To Another Php File.
im having problems writing to a file - What i want to do is to is write html code to another php file. PHP Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved