Search found 9 matches

by toqi786
Fri May 20, 2011 9:47 am
Forum: JavaScript
Topic: Pop Up
Replies: 2
Views: 1019

Re: Pop Up

no, it will be a new window that will have code in it!
by toqi786
Fri May 20, 2011 2:14 am
Forum: JavaScript
Topic: Pop Up
Replies: 2
Views: 1019

Pop Up

Hey is there a way to click on a link and get a pop up, i am using javascript and php. i have added this following script to the head of the document <script type="text/javascript"> function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } </script>...
by toqi786
Mon May 16, 2011 11:20 pm
Forum: PHP
Topic: Variable Problem
Replies: 5
Views: 953

Re: Variable Problem

yes it was thanx! all i had to do is get rid of the echo lol :D thanx for the help man!!
by toqi786
Mon May 16, 2011 11:10 pm
Forum: PHP
Topic: Variable Problem
Replies: 5
Views: 953

Re: Variable Problem

I have like a stocklist table, if the availability in the database = 1 [its either 1 or 0] then i want to show the price if not i want to show the sold.png i have created to show that it is sold and not available!
by toqi786
Mon May 16, 2011 10:55 pm
Forum: PHP
Topic: Variable Problem
Replies: 5
Views: 953

Variable Problem

Hey I have a problem, I am using the following code [line 141]if($Availability==1) { $Price = $row['Price']; $Price = echo "ONLY £$Price"; } else { $Price = echo '<img src="../img/sold.png" width="163" height="122">'; } I am using this code and i am getting th...
by toqi786
Mon May 16, 2011 10:50 pm
Forum: PHP
Topic: Update Problem
Replies: 6
Views: 1176

Re: Update Problem

yea thnx
by toqi786
Mon May 16, 2011 9:02 pm
Forum: PHP
Topic: Update Problem
Replies: 6
Views: 1176

Re: Update Problem

if (isset($_POST['thing']) == false){ // error }else if (isset($_POST['other']) === false){ // other error }else{ // success, do update query } error_reporting(E_ALL); I have used the way you have told me, so my code looks like this now: <?php include('webhostconnect.php'); if(isset($_POST['Submit'...
by toqi786
Mon May 16, 2011 1:42 pm
Forum: PHP
Topic: Update Problem
Replies: 6
Views: 1176

Re: Update Problem

no i dont get redirected to the manage.php page it stays on edit.php, and does not have the pre filled fields anymore, the field are now empty and about the nesting, it was the only way i could think of to make sure each field is filled in and if not return an error message. if you can help me on th...
by toqi786
Mon May 16, 2011 12:49 pm
Forum: PHP
Topic: Update Problem
Replies: 6
Views: 1176

Update Problem

Hey I have a slight problem! I have a form which is connected to a mysql database! With this form, I wish to edit the content of the mysql database! Each element in this form is pre-filled! [so this shows the connect file is working] This is the code for my Edit page <html> <?php include('connect.ph...