Explore the Request a Tutorial

PHP

online reservation-restaurant

hi..a very good day...Im working on a project where i am doing online reservation-restaurant. It have tried to scripts it using Ajax, PHP but still i have some problems where i want the seat reserve prior to date and time. if some one book on the same date and time how will i do it?i need help how to make it possible?

Read More
PHP

Thor King

Hi Good day, i recently started working with php and is not completely sure of the capabilities. Im working on a project where i have more than 50 members registered at an institute. the thing is we would like each member to have a secure "admin" page where we can send the specific member his payment details and other privileged information. I would love to use a single template for this page and just change the dynamic contend for each user. Can this be done in PHP?

 

Please do not hesitate to contact me..

events@productionwise.co.za

Read More
PHP

Trying to update an XML file with PHP (Flash Trivia Game)

Hello everyone,  I have a XML driven Flash 8 (AS2) Trivia Game that works great.  It reads in questions, directions, scores, initials, tallys, etc.  What I would like to do is update the XML after each game (the top ten: initials, scores, as well as tallys)  The tallys are the percentages that add up and let the contestant know what percentages of the multiple choice answers were chosen by all past players.  Basically it just adds 1 to whatever answer the contestant chooses.  The trivia game currently has ten questions, each a 4 answer MC question.  

I have no PHP background experience, but need to jump this hurdle ASAP to figure out how to update the XML after the trivia submit button.  I know that appending data at the end of the XML isn't a problem, it's the writing back and only effecting certain child nodes (some halfway deep) on the original XML (i.e. only top ten scores, top ten initials, and the tallys for each question (right now 40 - 10X4 tallys each)) 

If there is any good articles or videos or sites please let me know.  I learn fast.   Thanks....  

Read More
PHP

File Upload and record insert into table

I can upload a file to my server from my local machine, I can also do the add record, edit and delete of table records via Mysql etc....

All these I can do individually, what I can not do is create a recordset insert which also uploads the image file at the same time using PHP.

Read More
PHP

Trying to populate new rows on a table

Hi all, I am trying to produce an ordering mechanism for photo prints. Each photo has properties 'url', 'alt_text', 'caption', 'order_size', 'surface_type', and 'id' (auto-increment). The images will be uploaded to the server, and dynamically displayed via Repeat Region. In order to show all the images, I need to have that number of rows in my table. I have tried using a 'for' loop with a max-value taken from a text field and then posting it the the URL, then reading it from there. I'm not sure how to take the automatically created Insert Record script and use it multiple times automatically. Here is the code from my test page, instead of displaying the image, I want to add new rows:

<?php
      $filename = "image";
      $string;
      echo '<table>';
      for ($counter=1; $counter<=$_GET['times']; $counter++)
      {
          $row_number += 1;
        echo '<tr><td><img src="/images/test_gallery/image'.$row_number.'.jpg" width="205" height="308"></td></tr>';
      }
      echo '</table>';
?>


 This works perfectly, taking the number of iterations from the URL variable. Now instead of writing the images, I want it to insert new records (I can theoretically add the rest of the table fields to the form - URL, alt_text etc.). Thanks in advance for help!

P.S. This is how DW connects to the table (I assume, since I don't know that much PHP)

<?php 

mysql_select_db($database_cias, $cias);
$query_photos = "SELECT * FROM photos";
$photos = mysql_query($query_photos, $cias) or die(mysql_error());
$row_photos = mysql_fetch_assoc($photos);
$totalRows_photos = mysql_num_rows($photos);

?> 

Read More
Older articles