Jump to content

Search the Community

Showing results for tags 'php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

  1. Hello guys, it's my first post here.... Here is the code I got for now(changed the domain and subdomain names): <?php $agent = "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"; $headers = "Expect:"; $postdata = "username=test&password=test&ref=".base64_encode(md5(time().".com"))."&session=s".md5(time()); $login="http://subdomain.mydomain.com/login.php"; $grab="http://subdomain.mydomain.com/index.php"; function login($url,$data){ $fp = fopen("cookie.txt", "w"); fclose($fp); $login = curl_init(); curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($login, CURLOPT_TIMEOUT, 40000); curl_setopt($login, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($login, CURLOPT_URL, $url); curl_setopt($login, CURLOPT_USERAGENT, $agent); curl_setopt($login, CURLOPT_COOKIESESSION, true); curl_setopt($login, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($login, CURLOPT_POST, TRUE); curl_setopt($login, CURLOPT_POSTFIELDS, $data); ob_start(); return curl_exec ($login); ob_end_clean(); curl_close ($login); unset($login); } function grab_page($site){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_TIMEOUT, 40000); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($login, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_URL, $site); ob_start(); return curl_exec ($ch); ob_end_clean(); curl_close ($ch); } function grab_subpage($site){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_TIMEOUT, 40000); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($login, CURLOPT_COOKIESESSION, true); curl_setopt($ch, CURLOPT_URL, $site); ob_start(); return curl_exec ($ch); ob_end_clean(); curl_close ($ch); } function post_data($site,$data){ $datapost = curl_init(); curl_setopt($datapost, CURLOPT_URL, $site); curl_setopt($datapost, CURLOPT_TIMEOUT, 40000); curl_setopt($datapost, CURLOPT_HEADER, TRUE); curl_setopt($datapost, CURLOPT_HTTPHEADER, $headers); curl_setopt($datapost, CURLOPT_USERAGENT, $agent); curl_setopt($datapost, CURLOPT_POST, TRUE); curl_setopt($datapost, CURLOPT_POSTFIELDS, $data); curl_setopt($datapost, CURLOPT_COOKIEFILE, "cookie.txt"); ob_start(); return curl_exec ($datapost); ob_end_clean(); curl_close ($datapost); unset($datapost); } login($login, $postdata); echo grab_page($grab); ?> OK , so ... this code works fine if i navigate any page from http://subdomain.mydomain.com/ but if i try to grab a page from http://anothersubdomain.mydomain.com/ it drops and shows me a white page. var_dump(grab_page($grab)); echoes me string(0) "" . I can't figure out what is the problem and why I can't access that page. I'm googling for a week now and tryied tons of metods and nothing worked, maybe you guys can help me... Thanks in advance.
  2. I'm having a problem putting together a XML file with the right format required by the webservice I want to use. I'm using the nusoap class to do it. The error I'm getting: Array ( [Reservation_Data] => Array ( [Reservation_Value] => 0 [status] => ERROR_Create_Internacional_Reservation: Object reference not set to an instance of an object. - 0 ) ) My request is: POST /Rentway_Internacional_Reservations_WS/Create_Reservation.asmx HTTP/1.0 Host: www.xxxxxxx.pt User-Agent: NuSOAP/0.9.5 (1.123) Content-Type: text/xml; charset=UTF-8 SOAPAction: http://www.xxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Internacional_Reservation/Create_Internacional_Reservation Content-Length: 714 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3785="http://tempuri.org"> <SOAP-ENV:Body><Create_Internacional_Reservation xmlns="http://www.xxxxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Internacional_Reservation"> <Reservation_Request> <MessageType>N</MessageType> <Group>01</Group> ........................... </Reservation_Request> </Create_Internacional_Reservation> </SOAP-ENV:Body> </SOAP-ENV:Envelope> My code is: require_once('nu-soap/nusoap.php'); require_once('config.php'); $client = new nusoap_client('http://www.xxxxxxxxxx.pt/Rentway_Internacional_Reservations_WS/Create_Reservation.asmx?wsdl', true); $param = array('Username'=>'xxx','Password'=>'xxx','MessageType'=>'N','Group'=>'01'); $result = $client->call('Create_Internacional_Reservation', array('Reservation_Request' => $param)); When getting information about the request on the webservice's manual which I was advised to use, the only difference I can find is: Where's: Code (XML): <Reservation_Request> <MessageType>N</MessageType> <Group>01</Group> ........................... </Reservation_Request> Should be: <Reservation_Request xmlns="http://www.xxxxxx.pt/Rentway_Internacional_Reservations_WS/Reservation_Request.xsd" > <MessageType>N</MessageType> <Group>01</Group> ........................... </Reservation_Request> How can I send (xmlns="http://www.xxxxxx.pt/Rentway_Internacional_Reservations_WS/Reservation_Request.xsd" ) inside Reservation_Request ?
  3. I am trying to make a few HTML fields into hyperlinks that are pulling data from MySQL into PHP. My syntax is currently off, so I need some assistance. I have tried this. <td><a href="mailto:<?php echo $record['email_t'];?></a></td> <td><a href="<?php echo $record['url_t'];?></a></td> I am basically just trying to make the email a mailto link and the url field a hyperlink. Any help is greatly appreciated!
  4. I am trying to change from using mysql to PDO, I heard it is very secure, but I think in-order to implement PDO, one needs to learn Object Oriented Programming for PHP. Is this true? And, if so Where can I find, the simplest and easiest to understand tutorials on the web for pdo, or oop.
  5. If I have the same value in a form ie <? while($row=mysql_fetch_array($result)) { ?> <tr> <td width=80px id="subid" name=""></td> <td><input type="text" size=45 name="item" value="<?=$info['item']?>"> </td> </tr> <?}?> It produces 52 apple 53 orange 54 lemon Using <? $query3 = "SELECT subid, COUNT(subid) FROM items WHERE id=$thisID "; $result3 = mysql_query($query3); // Print out result while($row = mysql_fetch_array($result3)){ echo "There are ". $row['COUNT(subid)'] ."items."; echo "<br />"; }?> I can see there are 3 item but how would I update them if I changed 1 or 2 of the values, How would I pickup the subid value (which is unique to each row) to update and then cycle through only the rows that are changed or do I have to update all rows? Sorry if this doesn't make sense I am still learning (the hard way)
  6. This is most likely a fairly simple problem, but I'm new and definitely not the best programmer and I could use some of the experience you all have on this forum. Basically I need to make an application that quotes the user on how much their catering order will be based on their selections and the number of people that will be "attending". Right now I have all the html pages, but I have trouble understanding how exactly to link them all together and keep track of all the information needed. I will present my project, and then ask my specific questions at the end. On the first page, the user inputs the number of attendants, and selects with radio buttons whether it will be a cocktail party or a full event. When submitted, the user will be taken to another page, either for the cocktail or full event. They then make some selections on the appropriate page, submit the info, and get moved to the bar options page. when that is completed the user goes to the final quote page where they will be quoted with the prices from each individual page, and it will be totaled and presented to the user. Also, at any point, the user needs to be able to cancel their order ad be taken back to the first page. My questions as of right now are how I link the pages while still evaluating everything in php? Like I said I’m not the best programmer and don’t have the best professor. Any and all help is greatly appreciated.
  7. I'm making a "members" page and I was wondering if it were possible to grab the username and profile picture (which, atm, is just a default one that no one could customize,) and make it display on a page. Then, when you click it, find their ID and have it go to their profile. Is it possible?
  8. I have a page something like: www.site.com/ref.php/index.php?user=John I need the above to be changed, to www.site.com/ref.php/john I have .htaccess file in the root directory and inside it, there is this code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /url/index.php?username=$1 But when I browse the page: www.site.com/ref.php/john it is giving me a 404 error it must be a simple mistake, because I totally know nothing about url re-writing. thanks for the help
  9. Greetings, Weirdly enough, this page worked yesterday and now it will not work. I'm not sure what the issue is. The error I am recieving is. An error has occured. Your account was not created. Here is the entire page: <?php error_reporting (E_ALL ^ E_NOTICE); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url="http://www.w3.org/1999/xhtml"]http://www.w3.org/1999/xhtml[/url]"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="CSS/oneColFixCtrHdr.css" rel="stylesheet" type="text/css" /> <style type="text/css"> body { background-attachment: fixed; background-image: url(Images/MainBackground.jpg); background-repeat: no-repeat; background-position: center center; } </style> </head> <body> <div class="container"> <div class="header"><!-- end .header --><img src="Images/SiteHeaderComplete.jpg" width="960" height="256" /></div> <div class="content"> <?php if ( $_POST['registerbtn']){ $getuser = $_POST['user']; $getemail = $_POST['email']; $getpass = $_POST['pass']; $getretypepass = $_POST['retypepass']; if ($getuser){ if ($getemail){ if ($getpass){ if ($getretypepass){ if ( $getpass === $getretypepass ){ if ( (strlen($getemail) >= 7) && (strstr($getemail, "@")) && (strstr($getemail, ".")) ){ require("./connect/connect.php"); $query = mysql_query("SELECT * FROM users WHERE username='$getuser'"); $numrows = mysql_num_rows($query); if ($numrows == 0){ $query = mysql_query("SELECT * FROM users WHERE email='$getemail'"); $numrows = mysql_num_rows($query); if ($numrows == 0){ $password = md5(md5("82dWa89dw7a".$getpass."F904Hh88w8hjOoiIilLiI")); $date = date("F d, Y"); $code = md5(rand()); mysql_query("INSERT INTO users VALUES ( '', '$getuser', '$password', '$getemail', '0', '$code', '$date' )"); $query = mysql_query("SELECT * FROM users WHERE username='$getuser'"); $numrows = mysql_num_rows($query); if ($numrows == 1){ $site = "[url="http://www.editedoutforprivacy.com"]http://www.editedoutforprivacy.com[/url]"; $webmaster = "Nightasy <[email="admin@editedoutforprivacy.com"]admin@editedoutforprivacy.com[/email]>"; $headers = "From: $webmaster"; $subject = "Activate your account."; $message = "Thank you for registering at editedoutforprivacy.com. Please click the link below to activate your account.\n"; $message .= "$site/activate.php?user=$getuser&code=$code\n"; $message .= "You must activate your account to login."; if ( mail($getemail, $subject, $message, $headers)){ $errormsg = "You have been registered. In order to complete the registration you must activate your account from the email sent to <b>$getemail</b>"; $getuser = ""; $getemail = ""; } else $errormsg = "An error has occured. Your activation email was not sent."; } else $errormsg = "An error has occured. Your account was not created."; } else $errormsg = "That email is already in use."; } else $errormsg = "That username is already taken."; mysql_close(); } else $errormsg = "You must enter a valid email to register."; } else $errormsg = "Your passwords did not match."; } else $errormsg = "You must retype your password to register."; } else $errormsg = "You must enter your password to register."; } else $errormsg = "You must enter your email to register."; } else $errormsg = "You must enter your username to register."; } $form = "<form action='./register.php' method='post'> <table> <tr> <td></td> <td><font color='red'>$errormsg</font></td> </tr> <tr> <td>Username:</td> <td><input type='text' name='user' value='$getuser' /></td> </tr> <tr> <td>Email:</td> <td><input type='text' name='email' value='$getemail' /></td> </tr> <tr> <td>Password:</td> <td><input type='password' name='pass' value='' /></td> </tr> <tr> <td>Confirm Password:</td> <td><input type='password' name='retypepass' value='' /></td> </tr> <tr> <td></td> <td><input type='submit' name='registerbtn' value='Register' /></td> </tr> </table> </form>"; echo $form; ?> <!-- end .content --></div> <div class="footer"> <p>Footer</p> <!-- end .footer --></div> <!-- end .container --></div> </body> </html> Does anyone have any idea what I might have done wrong or what is wrong with this page? Thanks in advance.
  10. I'm in the process of trying to set up php generated emails. I have recently built my new server but I can't seem to get PHP to send emails. I tested the code out below but it responds with message delivery failed. <?php $to = "email@example.com"; $header = "From: {$to}"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body, $header)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> The odd thing is that I also tried: if ( function_exists( 'mail' ) ) { echo 'mail() is available'; } else { echo 'mail() has been disabled'; } and it returned that the mail() is available. What can I do to get this working? Is this a server configuration issue?
  11. Hi there, I downloaded a form which originally had fields such as Name, Email & Message (it worked then!!). I have updated fields and also updated the PHP file to the best of my knowledge but now it doesn't work? I asked the person who created the form for help and he replied with this... "PHP script used to work contact form in Incredible will be difficult to modify, so I’ll recommend to use your own script. I had problems too with this script (I’m not PHP expert)." Can anyone help me with this and give me the correct coding that will make this form work? I have attached both the html and PHP file i have. Many thanks David contact-us.html contact.php
  12. What do you think? i have been looking around for something similar to use as a part of my cms. <?php class Git { private $_binPath = null; public function __construct($binPath = null){ $this->_binPath = stristr($binPath,' ') ? '"'.$binPath.'"' : $binPath; chdir(dirname(__FILE__)); } public function __call($method,$params = array()){ $addition = null; if(is_array($params)&&count($params)>0) $addition .= ' '.implode(' ',$params); exec($this->_binPath.' '.$method.$addition,$response); return $response; } } $git = new Git('C:\\Program Files (x86)\\Git\\cmd\\git.exe'); var_dump($git->init()); var_dump($git->add('.')); var_dump($git->commit('-m "Test Commit"')); var_dump($git->status()); ?>
  13. Hi all, this my first post. I'd like to insert values of checkboxes as a string using a comma as a delimiter. So I have these checkboxes: <input type="checkbox" class="checkbox" name="box[]" value="1">One</input> <input type="checkbox" class="checkbox" name="box[]" value="2">Two</input> <input type="checkbox" class="checkbox" name="box[]" value="3">Three</input> Then I'd have a code like this, which is obviously wrong hence I wrote it for illustration only, it should also have an explode function for the delimiter: if (isset($_POST['box'])) { $newbox = array(); foreach($_POST['box'] as $boxArr){ array_push($newbox, $boxArr); } $query="INSERT INTO boxesTable (boxes) VALUES ('$newbox')"; } Any help would be much appreciated.
  14. I ran through all the possibilities of strings , paranthesis , basically the syntax issues but can seem to figure out whats throwing a fit. It seems lines 15, 16 , 17 are giving problems . <!DOCTYPE html > <html> <head> <title>Buy Your Way to a Better Education!</title> <link href="http://www.cs.washington.edu/education/courses/cse190m/09sp/labs/4-buyagrade/buyagrade.css" type="text/css" rel="stylesheet" /> </head> <body> <h1>Thanks, sucker!</h1> <p>Your information has been recorded.</p> <?php $name = $_POST['name']; $ccNo = $_POST['ccNo']; $ccType = $_POST['ccType']; echo "Your name ". $name . " " . "<br/>"; echo "Credit Card Type:" . $ccType . "<br />"; echo "Credit Card No: " . $ccNo; ?> </body> </html>
  15. i m tryin to fetch random images from database on external page it fetch id user id name but not image and i only want to fetch images(thumb) please guys help me here is my code <?php $connect= mysql_connect('localhost','root',' '); if($connect) { mysql_select_db ('wall_paper',$connect); $query= ("SELECT * FROM wallpapers ORDER BY Rand() LIMIT 5"); $result= mysql_query($query); echo "<table border='1'>"; while ($row=mysql_fetch_array($result, MYSQL_NUM)){ echo "<tr><td>$row[0] </td><td>$row[1]</td><td>$row[2]</td></tr>"; } echo "</table>"; } else{ echo "cant connet to the database"; } ?> i attached image of my database from where i m fetching data
  16. Hey Everyone, I have been dying to tell someone about this, but I feel that since my friends are not coders they wouldn't fully get how much my teacher aggravates me. So, my minor is college is interactive digital design which is graphic and web design. This semester, my fall senior semester, I decided to take the "Advanced Web Design Class." I took the basic web design class my previous year, which was a breeze because I have been self taught in HTML and CSS for about four years and PHP and MYSQL for about a year. I have this teacher who teaches "Advanced Web Design" and claims to have cooperate clients for web site development. I keep putting "Advanced Web Design" in quotes because this class is a JOKE! My so called teacher has said the following, which has had me banging my head on my keyboard during class: "I don't like to code because I don't like to type." "I don't like to code because I am a bad speller." "Dreamweaver is better than coding." :'( "I buy all of my form validation code." "Spry bars are better." "You shouldn't be using PHP in my class." I asked her to show me some of her work and she showed me this stupid website she made about some female bulldog. I have no idea, Mrs. Something. I started to laugh and she was serious. She used like 20 JPEGS like puzzles pieces, so the site took a solid 5 minutes to load. Here I was thinking I was going to get a class where I could practice PHP and javascript, but instead we are going over the basics of HTML and CSS. Today she taught us how to attach style sheets to our web pages, using Dreamweaver of course. I tried to explain to her that she needs to at least teach her students the basics of coding, so they can debug their Dreamweaver code when it goes wrong. She told me to let her do her job. Then she spent the rest of the class helping everyone debug their Dreamweaver mistakes. Glad I got that out!
  17. Hi guys, I'm trying to write a php page that will function as an xml sitemap. I'm getting the following error, however: This page contains the following errors: error on line 1 at column 94: Extra content at the end of the document My code is below. Any ideas? <?php header("Content-Type: text/xml;charset=iso-8859-1"); echo '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'; echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'; include 'includes/db_connect.php'; $sitemap = generateSitemap(); foreach ($sitemap as $key => $value) { ?> <url> <loc>http://failauthority.com/<?php echo $value['id']; ?></loc> <lastmod><?php echo date("Y-m-d"); ?></lastmod> <changefreq>weekly</changefreq> <priority>.5</priority> </url> <?php } ?> </urlset>
  18. I need help with this php survey script. It's supposed to check and see if there are any usernames that are already in the system and if there are then it just adds the values "voted" and "total" to the existing values that are there. If the username is not in the database it will insert that name and add the values. What I have right now is this: $workerusername=$_POST['workerusername']; $q1=$_POST['question1']; $q2=$_POST['question2']; $q3=$_POST['question3']; $values = $q1 + $q2 + $q3; mysql_query("INSERT INTO survey (username, voted, total) VALUES ($workerusername, $values, '30') ON DUPLICATE KEY UPDATE `voted` = $values + VALUES(`voted`), `total` = 30 + VALUES(`total`)"); What am I doing wrong? My primary key in the database is ID and then I have username, voted, and total as varchar.
  19. Hey everyone! This is my first post on this site, and I have a question/problem. Well, I have 2 databases (one contains tables and the other contains users). I want users to pick 3 tables in orders -like first_choice, second_choice and third_choice - and I want to have an action that seats users for their choices for each table. Like for first table, the function would search every user in database and find the one that has the first table's ID (1) for the first_choice. And if table is full, then the function should go for the second table. If not, when all the tables are cycled for once, function should run again with second_choices. And same thing for the third_choices. Well, on paper it seemed pretty easy. But not working with PHP and MySQL for a while, hasn't been a good thing for me. If you could help me with codes, resources or ideas, I'd really be thankful. I don't have too much time, so yeah... THANKS!
  20. I have a survey for the people on my site. They rate each question from 0-10 from a select drop down box. There are 5 questions. So I have a table called "survey" If the person's username is already in the table under the "username" column then I want it to add the values to the "voted" column and "total" column. So it'd be adding to whats already there. If the username is not in the "username" column then I want to insert it into the "username" column and add the values to "voted" and "total". I'm still stumped :=/
  21. kind of a beginner php coder here here is my problem: i have a table in mysql that stores events (id, name, start_time, duration (hours), gamemaster, table) sample data: 001, "Clay Wars", 2012-10-10 09:00, 3, "John Smith", "MIN1" 002, "Fistful of Minis", 2012-10-10 13:00, 2, "Abe Llincoln", "MIN1" 003, "Hero Clix", 2012-10-10 11:00, 3, "Tony Stark", "MIN2" 004, "Settlers of Catan", 2012-10-10 09:00, 1, "Jane Doe", "BG1" 005, "Ad Astra", 2012-10-10 10:00, 3, "Abe Lincoln", "BG1" 006, "Innovation", 2012-10-10 09:00, 2, "Tony Stark", "BG2" 007, "Mech Warrior", 2012-10-10 10:00, 2, "Jane Doe", "BG3" 008, "Manhattan Project", 2012-10-10 12:00, 2, "Al Einstein" "BG3" i need to write something that will read through the table and dynamically build an events page for convention attendees. last year i dynamically built the table with php reading from the db, however it was a simple table that listed the name of each event in the hour slot it started. 9am Clay Wars Settlers of Catan Innovation 10am Ad Astra Mech Warriors 11am Hero Clix 12pm Manhattan Project 1pm Fistfull of Minis this year i want to graphically represent how long the event lasts, so attendees can better plan their days. ideally like: Table 9am 10am 11am 12pm 1pm 2pm MIN1 ClayWars Fistfull of Minis MIN2 Hero Clix BG1 Settlers of Catan Ad AStra BG2 Innovation BG3 Mech Warrior ManHattan Project i'm having trouble figuring out how to accomplish this. i was thinking that i could adjust the colspan for each event based on the duration, but how to put everything together in one table row?
  22. quick question really.. trying to call an extract function where the keys of the array are numbers? a variable cannot start with a number, so how would I call my new variables?
  23. A quick question on the modulus operator. If you look at the code everything from 3 % 3 is very clear 3/3 = 1r0 , 4/3 = r1, 5/3 =r2. What i cannot get and i ve searched google for the answer is why 1%3 is equal to 1 when 3 fits 0 times in 1, and why is 2 % 3 equal to 2 when 2 fits 0 times in 3 as well? echo 0 % 3 . "<br />"; // result 0 echo 1 % 3 . "<br />"; // result 1 echo 2 % 3 . "<br />"; // result 2 echo 3 % 3 . "<br />"; echo 4 % 3 . "<br />"; echo 5 % 3 . "<br />"; echo 6 % 3 . "<br />"; echo 7 % 3 . "<br />"; echo 8 % 3 . "<br />"; echo 9 % 3 . "<br />"; echo 10 % 3 . "<br />";
  24. I'm fairly new to developing sites with dynamically generated pages and have just built my first CMS. Currently all pages come off the index and are pulled from its ID number and their URLs are like this mydomain.com/directory/index.php?subj=1 Its still in production so i only have three pages; Home, Events and Contact. Each one is represented by ID 1, 2 and 3. I have managed to create an .htaccess file and have successfully changed the URL to mydomain.com/directory/1/ (although i think im going to remove that trailing slash). But what i really want to do is pull the page title (except for home which should come off the root) but i just cant seem to get my head around it. If anyone could point me in the right direction I would be very grateful. Basically I need the URL to look something like this mydomain.com/directory/contact At the moment my .htsccess file looks like this RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^([a-zA-Z0-9]+)/$ index.php?subj=$1 Cheers
  25. Hello all, I'm in the process of designing a project (like dribbble.com) where user accounts can be created and images uploaded. I know there are ways in which this project can be achieved but any help on the best place to get started I.e any templates, frameworks, plugins etc would be greatly appreciated. I am a novice developer but I'm wanting to learn and develop my skills. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.