Forum: JavaScript / DHTML / AJAX 13 Days Ago |
| Replies: 4 Views: 361 thanks for the reply and advice airshow. I had thought of having the drop down menu's automated using a database but by the time i had got to the branch page, the unique content for each page would... |
Forum: JavaScript / DHTML / AJAX 14 Days Ago |
| Replies: 4 Views: 361 Hi all,
I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu.
My question... |
Forum: Windows Software 23 Days Ago |
| Replies: 3 Views: 355 |
Forum: Windows Software 32 Days Ago |
| Replies: 3 Views: 355 iv looked around quite a lot, most of them dont actually differenciate between new and default fonts. Maybe it would be good for somebody (me if i have the time to learn c+!) to design one. Id use... |
Forum: Windows Software 32 Days Ago |
| Replies: 3 Views: 355 hi all,
is there a program that lists all non-default fonts that have been manually installed on your computer?
Max |
Forum: Site Layout and Usability Aug 7th, 2009 |
| Replies: 2 Views: 412 don't worry, iv found a solution - http://clicksms.co.uk/.
You make an account, buy a minimum of 100 texts (at about 10p each - buying in bulk gets price as low as 5p i think..) and then use a... |
Forum: Site Layout and Usability Aug 6th, 2009 |
| Replies: 2 Views: 412 (I wasn't sure where to put this thread so move it if you need to! :])
I want to be able to send a text message to my mobile phone whenever I get an email through from my website (the sending of... |
Forum: Website Reviews Jul 24th, 2009 |
| Replies: 12 Views: 580 I like your design :) but take a look here
- http://www.lipsum.com/
easier than trying to make up random latin phrases for filling up space manually xD good luck. |
Forum: PHP Mar 3rd, 2009 |
| Replies: 10 Views: 1,703 Heyy,
Thanks for the reply, your answer makes sense and seems very logical. I entered the following code in the phpmyadmin code tester:
SELECT * FROM images WHERE fbid IN (SELECT fbid FROM... |
Forum: PHP Mar 2nd, 2009 |
| Replies: 10 Views: 1,703 each photo is saved in the table images with FBID as the primary key.
Then ratings are saved in the ratings table and FBID refers to the photo the rating is about.
I want to only use photos... |
Forum: MySQL Mar 2nd, 2009 |
| Replies: 34 Views: 4,086 Sure,
$sql="INSERT INTO bookings
(clientID, roomID, startdate, enddate, adults, children, roomtype, requirements)
VALUES
('$last_insert_client_id',
'NULL',
' ... |
Forum: MySQL Mar 2nd, 2009 |
| Replies: 34 Views: 4,086 I think generally to store dates into the database its best to use a timestamp. A timestamp shows the number of seconds that have passed since January 1, 1970 00:00:00 GMT. You get the current... |
Forum: MySQL Mar 1st, 2009 |
| Replies: 34 Views: 4,086 Ahhh i know whats going wrong. This bit:
foreach($result_array as $key => $value)
{
echo '<tr><td>Start Date</td><td>'.$result_array['startdate'].'</td></tr>';
echo '<tr><td>End... |
Forum: MySQL Mar 1st, 2009 |
| Replies: 34 Views: 4,086 Thats really wierd..
Can you send the entire code to me? |
Forum: MySQL Mar 1st, 2009 |
| Replies: 34 Views: 4,086 try using this:
$result = mysql_query("SELECT * FROM bookings WHERE bookingID='".$_POST['bookingID']."'");
sometimes when you don't encapsulate the second part of the where condition in... |
Forum: MySQL Mar 1st, 2009 |
| Replies: 34 Views: 4,086 Ah okay I understand.
the only possible reason for this, is that in your database, you are searching for all records where the bookingID is 33. You must have 9 different records that fit this... |
Forum: PHP Mar 1st, 2009 |
| Replies: 10 Views: 1,703 I dont think I can explain it easily.
I basically want to encapsulate this:
$get_photos = mysql_query('SELECT * FROM images');//get all photos
while($photos = mysql_fetch_array($get_photos)... |
Forum: MySQL Feb 28th, 2009 |
| Replies: 34 Views: 4,086 <?php
//do your query
$result = mysql_query("SELECT * FROM bookings WHERE bookingID='".$last_insert_booking_id."'");
//because your query uses a primary key, we only have one result and so... |
Forum: MySQL Feb 28th, 2009 |
| Replies: 34 Views: 4,086 What do you mean by:
2) It does bring back everything from the table
As for bringing it back in a table, use this:
<?php
//do your query
$result = mysql_query("SELECT * FROM bookings... |
Forum: HTML and CSS Feb 28th, 2009 |
| Replies: 1 Views: 410 Iv editted the code. Use this instead:
<style>
<!--
body{
background-color:#FFFFFF
}
div#Navigation{
width:115px; |
Forum: MySQL Feb 28th, 2009 |
| Replies: 34 Views: 4,086 yeah sure. assuming you understand arrays, the foreach function cycles through each array segment and runs a specific piece of code for that segment. The segment's title is saved in the $key... |
Forum: PHP Feb 28th, 2009 |
| Replies: 9 Views: 583 mysql_query("DELETE FROM user_notifications WHERE username='".$acc."' AND notification='".$note2."' ");
that should be fine. if its not, try checking your $acc and $note2 variables... |
Forum: MySQL Feb 28th, 2009 |
| Replies: 34 Views: 4,086 try this:
<?php
//do your query
$result = mysql_query("SELECT * FROM bookings WHERE bookingID='".$last_insert_booking_id."'");
//because your query uses a primary key, we only have one... |
Forum: PHP Feb 28th, 2009 |
| Replies: 10 Views: 1,703 Hi all,
I need to do a query like this:
SELECT * FROM table1 WHERE ( SELECT COUNT(*) FROM table2 WHERE fbid = *current primaryKey*) > 150
How do I get the *current primaryKey* in order to do... |
Forum: PHP Jan 28th, 2009 |
| Replies: 8 Views: 694 Thanks for all the replies, I can tell that in future ill be referring to all this info, so thanks :)
Iv gone with floatval(), it seems like the simplest and at the moment does exactly what I... |
Forum: PHP Jan 28th, 2009 |
| Replies: 8 Views: 694 okay, so if I wanted to echo 10.000 as 10, I would have to just shave off the appended 0's?
How would I do this? Can anybody post a simple script to remove the appended 0's?
Max |
Forum: PHP Jan 28th, 2009 |
| Replies: 8 Views: 694 I have tried decimal, but it always adds 0's onto the end of my number.
I want it to only add the exact number I enter in, so for example at the moment if i enter in 10, it changes it to 10.000... |
Forum: PHP Jan 27th, 2009 |
| Replies: 8 Views: 694 Hi all,
I need to save a number to 3 decimal points, however I want 10.3 to be saved like this:
10.3
not this:
10.300 |
Forum: PHP Jan 24th, 2009 |
| Replies: 1 Views: 514 ****************SOLVED****************
silly mistake, the column `rating` was a varchar, and so when sorting by rating, it treated 10 as being lower than 9. Iv changed it to integer and it works... |
Forum: PHP Jan 24th, 2009 |
| Replies: 1 Views: 514 Hi,
Im having a wierd problem with my mysql query:
I have entries in my database with a rating (out of 10) and a timestamp, and I want to pull out the highest rated entry from the past 30 days.... |
Forum: Graphics and Multimedia Nov 25th, 2008 |
| Replies: 1 Views: 998 Hi all,
I'm looking for a tutorial on how to make a dynamic flash photo gallery. I want it to do the following:
Automatically detect images in a folder without having to manually list them... |
Forum: Web Browsers Nov 11th, 2008 |
| Replies: 3 Views: 827 no luck with that post dickersonka :/
Also the problem with this is that google checkout will only accept the information through posted hidden fields with their specific parameters, and as far... |
Forum: Web Browsers Nov 10th, 2008 |
| Replies: 3 Views: 827 Hi all,
I know it sounds stupid (the title of this thread) but I am using php to write some hidden fields to a form and when the form is submitted some of the hidden fields are not being sent.... |
Forum: PHP Nov 9th, 2008 |
| Replies: 1 Views: 388 dont worry, iv figured it out. Do something like this:
explode the cart into an array.
foreach($cart as $pid)
{
if the pid is in the array, do nothing
else: use substr_count to get the QTY ... |
Forum: PHP Nov 9th, 2008 |
| Replies: 1 Views: 388 Hi all,
I have a shopping basket feature on my website which saves the product's primary key in the session array called 'cart', each one seperated by a comma, so example: '123,456,789'.
Now in... |
Forum: Graphics and Multimedia Oct 29th, 2008 |
| Replies: 19 Views: 4,735 .. that will be farrrr to vague. iv looked a lot into this already and havnt got anywhere. anyway if anybody is in the same boat and is looking for some kind of server-side video to .fla converter... |
Forum: Graphics and Multimedia Oct 26th, 2008 |
| Replies: 19 Views: 4,735 |
Forum: PHP Oct 24th, 2008 |
| Replies: 2 Views: 827 ahh fantastic, thanks for the script. I think I just dived in head first without trying to understand whats happening where first which is why my variables were so scrambled.
just incase anybody... |