-
Web Development Problem - Need pointers!
Thanks for your reply but I do not want to use third party software. I was wanting to set it up so as I receive payment for an order, I can then fill in details on the wholesalers web page from my database fields without having to manually process the order. I have had advice on another forum that Pearl is the only option as it can not be done with PHP and MySQl but I thought I would just enquire here to see if anyone has had previous experience as it has been a helpful resource in the past.
-
Web Development Problem - Need pointers!
I am currently planning a development which will include taking orders through a site and then at the end of the day placing numerous orders to different suppliers. The problem I have is how to place the orders online once I have the required totals on a database. I want to be able to access the supplier order form automatically and update it with values from a database but I am unsure if this is possible. If anyone could give me some advice I would very much appreciate it. TIA!
-
PHP Form Help
I have been considering making a php form that will search a database to display results, the only problem is I want to have different option fields to appear depending on specific elementd selected from a drop down menu. So if an element is selected from the dropdown menu the form changes to suit that specific element. Can this be done purely through php?
-
Online Gaming Website Question
Yeah I am trying to pull scores directly from games as they are being played or just finished being played.
-
Online Gaming Website Question
No I don't have access to the servers. Although was hoping that there would be some way users could sign up with the required information to access any required data.
-
Online Gaming Website Question
I need to be able to get a website that can take scores straight from specific games from when the registered user plays the games. Is this possible?
-
Online Gaming Website Question
I am currently looking for someone to help develop parts of my website I am having created for online gaming. The trouble I am having is finding out what skills I should be looking for my candidate(s) to have. I need someone who can link my website with certain online games from PS3's, Xbox etc. But I don't have a clue how this may be done and therefor have no idea which skills to look out for. Could someone point me in the right direction?
-
HTML Visited links help.....
Thanks for the hepful reply Dizi, I think that could work for changing the link colour etc but not sure if that will prevent the link from being visited by other website visitors, thats the problematic part for me.
-
HTML Visited links help.....
I am trying to allow my site to have a selection of available links that will redirect to a corresponding webpage. I have a problem as I only want these links to be visited once, and once clicked I want to be able to change the link to a greyed out image and when clicked it doesn't respond in any way. Could anyone help me out please, I already have images etc and I know how to use the href in html to get the linked webpage it is just the visited part I am unsure of.
-
Blocking links once visited
Thanks for your replies guys, I am using images for the links, so I'll muck around with a few ideas tonight and see if I can get it to work out.
-
Blocking links once visited
I was wondering if anyone could give me some advice on how I could block off a link once it has been clicked on once. I have seen it done on other sites and was wondering how I could begin to use it.
-
Displaying a username on a page
Got something sorted from help in another development forum. This part of this forum has really deminished in the past few months imo, use to be able to get helpful comments on anything straight away, now lucky to get more than 5 replies in a thread.
-
Displaying a username on a page
Does anyone have any php code or know of a good tutorial where I can display the username of a user on a site page after they have loged in. Currently I am having the users re-type their usernames everytime they submit a contact form on my site but I want this to automatically be shown through an echo statement.
-
A form combined with PHP
I don't see a problem there myself. I had the script working with just a simple form at the bottom where the variables were replaced with plain html text, it worked fine but I want the first poster to be given different output than the proceeding posters. It was only when I introduced the variables $title and $secline that the problem occured. I naturally thought it was the form but after testing that it was nothing there so must be something that I am over looking regarding the new variables.
-
A form combined with PHP
The form is fine, I tested it this morning on a page of it's own. But I still get an error when trying to access the php file. The error I get is : Parse error: syntax error, unexpected $end in /home/compose.php on line 141 and my full code is : <?php require_once 'conn.php'; require_once 'functions.php'; require_once 'header.php'; $subject = ''; if (isset($_GET['topicid'])) { $topicid = $_GET['topicid']; } else { $topicid = ""; } if (isset($_GET['forumid'])) { $forumid = $_GET['forumid']; } else { $forumid = ""; } if (isset($_GET['reid'])) { $reid = $_GET['reid']; } $body = ''; $post = ''; $authorid = $_SESSION['user_id']; $edit_mode = FALSE; if (isset($_GET['a']) and $_GET['a'] == 'edit' and isset($_GET['post']) and $_GET['post']) { $edit_mode = TRUE; } require_once 'header.php'; if (!isset($_SESSION['user_id'])) { echo "<div class=\"notice\">" . "You must be logged in to post. Please <a href=\"" . "login.php\">Log in</a> before posting a message." . "</div>"; } elseif ($edit_mode and $_SESSION['user_id'] != $authorid) { echo "<div class=\"noauth\">" . "You are not authorized to edit this post. Please contact " . "your administrator.</div>"; } else { if ($edit_mode) { $sql = "SELECT * FROM forum_posts p, forum_forum f " . "WHERE p.id = " . $_GET['post'] . " AND p.forum_id = f.id"; $result = mysql_query($sql,$conn) or die('Could not retrieve post data; ' . mysql_error()); $row = mysql_fetch_array($result); $subject = $row['subject']; $topicid = $row['topic_id']; $forumid = $row['forum_id']; $body = $row['body']; $post = $_GET['post']; $authorid = $row['author_id']; } else { if ($topicid == "") { $topicid = 0; $topamt = 0; $topicname = "New Topic"; } else { $topamt = 1; if ($reid != "") { $sql = "SELECT subject FROM forum_posts WHERE id = " . $reid; $result = mysql_query($sql, $conn) or die('Could not retrieve topic; ' . mysql_error()); if (mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result); $re = preg_replace("/(re: )/i","",$row['subject']); } } $sql = "SELECT subject FROM forum_posts WHERE id = "; $sql .= $topicid . " AND topic_id = 0 AND forum_id = $forumid"; $result = mysql_query($sql,$conn) or die('Could not retrieve topic; ' . mysql_error()); if (mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result); $topicname = "Reply to <em>" . $row['subject'] . "</em>\n"; $subject = ($re == ""?"":"Re: " . $re); } else { $topicname = "Reply"; $topicid = 0; } } } if ($forumid == "" or $forumid == 0) $forumid = 1; $sql = "SELECT forum_name FROM forum_forum " . "WHERE id = '" . $forumid . "'"; $result = mysql_query($sql, $conn) or die('Could not retrieve forum name; ' . mysql_error()); $row = mysql_fetch_array($result); $forumname = $row['forum_name']; if($topamt == 0) { $title = "Title of offer"; $secline = "Description"; }else { $title = "Title"; $secline = "Reply"; } ?> <form id="forumpost" method="post" action="transact-post.php"> <h3><?php echo $edit_mode ?"Edit Post" :"$forumname: $topicname"; ?> </h3> <p> <?php echo $title; ?> <br> <input type="text" class="subject" name="subject" maxlength="255" value="<?php echo $subject; ?>"> </p> <p> <?php echo $secline; ?> <br> <textarea class="body" name="body" rows="10" cols="60"><?php echo $body; ?></textarea> </p> <p> <?php if ($edit_mode) { echo '<input type="submit" class="submit" name="action" ' . "value=\"Save Changes\">\n"; } else { echo '<input type="submit" class="submit" name="action" ' . "value=\"Submit New Post\">\n"; ?> </p> <?php echo "<input type=\"hidden\" name=\"post\" " . "value=\"$post\">\n"; echo "<input type=\"hidden\" name=\"topic_id\" " . "value=\"$topicid\">\n"; echo "<input type=\"hidden\" name=\"forum_id\" " . "value=\"$forumid\">\n"; echo "<input type=\"hidden\" name=\"author_id\" " . "value=\"$authorid\">\n"; echo "</form>\n"; } require_once 'footer.php'; ?> Any ideas whats wrong there?