Jump to content

Search the Community

Showing results for tags 'variables'.

  • 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. I am trying to declare javascript variables from php array values using a loop. Trying to declare javascript var h1 as php array value from $array[1][h], and h2 as $array[2][h], and h3 as $array[3][h],and so on... Here is my code: <SCRIPT LANGUAGE="JavaScript"> for (var i=0;i<61;i++) { var h[i] = "<?php echo $array[i][h] ?>"; var hl[i] = "<?php echo $array[i][hl] ?>"; var hs[i] = "<?php echo $array[i][hs] ?>"; } </script> When I <script type="text/javascript"> document.write(h1); </script> it is blank
  2. I need some help turning code into functions, I am getting my page to do as it should but its not with functions $confId = rand(1,1000); I need for this to be a function as well as this if($base == "") { $errors .= "<li>How Many Days Are You Attending the Convention?</li><br />"; } if($base == "One") { $cost = 100;} if ($base == "One" && $mealPlan =="Yes") { $cost = 100 + 50; } if($base == "Two" ) { $cost = 175;} if ($base == "Two" && $mealPlan =="Yes") { $cost = 175 + 75; } if($base == "Three") { $cost = 225;} if ($base == "Three" && $mealPlan =="Yes") { $cost = 225 + 100; } $count = count($extra); // If no errors, display the form data if($errors == "") { echo <<<END <p>$first_name $last_name thank you for your interest.</p> <p>You have registered for $base day(s) at our Technology Conference</p> <p> You choose $track as for your track of interest.</p> <p>Please bring cash or your credit card the first day for payment.</p> <p> your Confirmation number is $confId</p> <p> Your total cost including your meal plan option is$$cost</p> <p> We look forward to your participation</p> <ul> END; echo <<<END </ul> END; } else // If errors, display errors { errorMessage($errors); } Thank alot for the help
  3. Hey can anyone help me. Im trying to pass some for variables to an EOD statement as a confirmation slash profile preview page. However when i try to insert the variables surrounded with the standard <? ?> tags i get a message about unexpected white space. here is the end o0f my processing script and the confirmation EOD which is echoes at the end of the script. GetSQLValueString($insert_upload1, "text"), GetSQLValueString($insert_upload2, "text"), GetSQLValueString($insert_upload3, "text"), GetSQLValueString($insert_upload4, "text"), GetSQLValueString($insert_upload5, "text")); mysql_select_db($database_w2w, $w2w); $Result1 = mysql_query($insertSQL, $w2w) or die(mysql_error()); } ?> <? $confirmation = <<<EOD // I WANT TO INSERT VARIABLES HERE FROM $_POST TO DISPLAY THEIR INFORMATION AFTER REGISTRATION AS A SORT OF PREVIEW PAGE // THIS IS WHAT I HAVE TRIED $password_entry = $_POST['password_entry']; $business_name = $_POST['business_name']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $address3 = $_POST['address3']; $postcode = $_POST['postcode']; $email = $_POST['email']; $website = $_POST['website']; $facebook = $_POST['facebook']; $twitter = $_POST['twitter']; $linkedin = $_POST['linkedin']; $openfrom1 = $_POST['openfrom1']; $openfrom2 = $_POST['openfrom2']; $openfrom3 = $_POST['openfrom3']; $openfrom4 = $_POST['openfrom4']; $openfrom5 = $_POST['openfrom5']; $openfrom6 = $_POST['openfrom6']; $openfrom7 = $_POST['openfrom7']; $opento1 = $_POST['opento1']; $opento2 = $_POST['opento2']; $opento3 = $_POST['opento3']; $opento4 = $_POST['opento4']; $opento5 = $_POST['opento5']; $opento6 = $_POST['opento6']; $opento7 = $_POST['opento7']; $business_description = $_POST['business_description']; $managers_message = $_POST['managers_message']; echo $username_entry; ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Registration complete! Thank you.</title> <style type="text/css"> but it seems i am unable to do this. Can anybody shed some light? Im sure its something silly. Thanks
  4. I’m trying to create a simple web site for people to track issues on a project. I want it to query a MySQL db and list all issues(for individual pages). Ironically it’s for our company website creation. I’m trying to use mysqli and stored procedures for this, and once I get a good handle on that convert the production site to mysqli and stored procedures. One of the issue’s I’m having (I have more questions I’ll most likely post) is I’m not able to pass the correct website page, as a variable, to the stored procedure. What I mean is if I manually put the page name as a string in the call, the query seems to run and create a simple table. If I create a variable with the same string I get an error. Below is my code and the error. At first look I’m assuming this might have something to do with how I have the stored procedure setup. “VARCHAR(255)” and dropping everything after the “.” But I don’t know that much about stored procedures. Everything I’ve done so far did not require passing in a parameter. More info: - The page variable is being populated via a drop down menu, that is created from another query above that gets a list of all pages on the site (stored in another table). Hope that’s not to confusing.. thanx Working: $issues = mysqli_query($connection, "call page_issues(\"ser_ms.php\")"); if (!$issues) { printf("Error: %s\n", mysqli_error($connection)); exit(); } Table created below with the result set separated out.. ****************************** Not working $page = "ser_ms.php"; //$issues = mysqli_query($connection, "call page_issues(\"ser_ms.php\")"); $issues = mysqli_query($connection, "call page_issues($page)"); if (!$issues) { printf("Error: %s\n", mysqli_error($connection)); exit(); } Error I get back is: Error: Unknown table 'ser_ms' in field list Stored Procedure: -- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE PROCEDURE `website`.`page_issues` (IN `cur_page` VARCHAR(255)) BEGIN select * from website_issues where page = cur_page; END
  5. Ok so I've watch a ton of tutorials, read a few books asked a whole bunch of questions and still can't find a solution. Here is my problem, I have this form here : http://jemtechnv.com/beta/finish_ticket.php if you play with the form you will see that entering input in the Qty, and Price boxes will populate the Ext box along with sales tax and material cost and Material boxes, and input in the rate and hours box will populate the subtotal and labor boxes now here is my problem. I need to auto populate the total hours box by from the sum of the hours column and I also need to sum up the material and labor boxes and populate that total in the grand total box, sounds easy huh? you would think but here is my code that I use to calculate my sales tax : function tax(){ var materialcost = document.getElementById( 'materialcost' ).value; var shipping = document.getElementById( 'shipping' ).value; var salestax = Math.round(((materialcost / 100) * 8.1)*100)/100; var materialtotal = (materialcost * 1) + (salestax * 1) + (shipping * 1); document.getElementById( 'materialcost' ).value = materialcost; document.getElementById( 'salestax' ).value = salestax; document.getElementById( 'shipping' ).value = shipping; document.getElementById( 'materialtotal' ).value = materialtotal; } this works fine but when I try to use the materialtotal in another function to total up the materialtotal and labortotals for the grand total it causes the browser to lock up. Can someone tell me how I can get my grand total without making the script too complicated? Thanks!
  6. Hi everyone I'm in learning laravel, really a newbie. It's seems somehow I can't pass the variables from controllers to view. So this is what I've got config/route.php Route::get('/' , "PagesController@link"); Route::get('pg' , "PagesController@link"); Route::get('pg/{link}' , 'PagesController@link'); controllers/PagesController.php public function link($link = 'index') { // option 1 return "--->" . $link; // option 2 return View::make('pages.index' , array('link' => $link)); // option 3 return View::make('pages.index')->with('link', $link); // option 4 return View::make('pages.index' , compact('link')); } views/pages/index.blade.php @extends('layouts.frontend') @section('title') @parent - Index file @stop @section('content') <article> <header>This is the {{ $link }}</header> <p>And this is the main body of {{ $link }} file</p> </article> @stop views/pages/layouts/frontend.blade.php <!doctype html> <html> <head> <meta charset="utf-8"> <title> @section('title') Lar4 Test @show </title> {{ HTML::style('css/frontend.css') }} </head> <body> <header id="header"> <div id='banner'> </div> <nav> {{ HTML::link('pg' , 'Home') }} {{ HTML::link('pg/about' , 'About Us') }} </nav> </header> <section> @yield('content') </section> <aside> </aside> <footer> </footer> </body> </html> So if I browse to <site>/pg/sometext only option 1 will work (shows "---->sometext"), all others will thrown an error "Undefined variable: link". If I comment both {{ $link }}, both layout and index views are successfully rendered. Any idea of what am I doing wrong?
  7. Hey:) I have a question. It may sound dumb, but I can't figure out the problem. What I have: <html><body> <?php $x=5; $z=6; $y=$x+$z; function myTest() { global $x, $z, $y; echo $x . " " . $z . " " . $y . " "; $x++; $z++; } myTest(); myTest(); echo "<br>"; echo $x . " " . $z . " " . $y; ?> </body> </html> Now my problem is that I don't know why the value of y doesn't change. x and z are changing fine, but y isn't. Thanks:) Tim
  8. I have the following code set up to insert data into my table. This is just a test to see if it will work before I go further into development. I know I'm able to connect to my data as I have a message appear when that happens, but it won't insert data into the table for some reason. $phoneNumber = "0786352373"; $firstName = "jennifer"; $lastName = "dunne"; $profilePicture = ""; $photo = ""; $video = ""; $text = "text is here yes yes eys"; $call = "call is here yes yes eys"; $activity = "this is jennifers activity"; $latitude = "-50.889473"; $longitude = "3.845738"; $date = "23/05/2012"; $time = "13:29"; $sql = "INSERT INTO member (phoneNumber, firstName, lastName, profilePicture, photo, video, text, call, activity, latitude, longitude, data, time) "; $sql .= "VALUES ('$phoneNumber', '$firstName', '$lastName', '$profilePicture', '$photo', '$video', '$text', '$call', '$activity', '$latitude', '$longitude', '$data', '$time')"; if (!mysqli_query($sql, $con)) { die('Error: ' . mysqli_error()); } else { echo "Comment added"; } mysqli_close($con); I do get an error message come up, but all it says is the following and doesn't shine light on the situation at all. Error: I'm very new to mysql and always seem to struggle with it but want to get over my fear of it. :-)
  9. hey guys, since i am so new to php and programming , i am having extreme difficulty creating a function from scratch. i understand functions if i am reading one or if watching a tutorial , but trying to create one based one what i need is proving to be a bit confusing for me. PURPOSE the purpose of the function is to grab an id from my user database , and convert that ID to an md5. i already have a while loop that is grabbing all the content from my database and then extracting it to the page. i then want to display the image id in a loops surrounded by <img> tags to show each individual persons image with the correct id from the DB. so the link would be looking like this if you were to inspect the element if you were to look in text editor it would be like <?php while ($row = mysql_fetch_assoc($content)) { extract($row); echo '<li>'; echo '<div class="profile_pic"><a href="profile.php?member=' .$member_title . '&memberid=' .$id .'"><img src="http://s3.amazonaws.com/fast-network/photos/c4ca4238a0b923820dcc509a6f75849b.jpg" width="101" height="150"></a></div>'; echo '<div class="member_about">'; echo '<div class="member_about_text">'; echo '<h1><a href="profile.php?member=' .$imdb_title . '&memberid=' .$id .'">' . $member_title . ' (2013)</a></h1>'; echo '<div class="c">Class: ' .$class_year . '</div>'; echo 'Courses:' . $_courses_taken . '<br>'; echo 'Views: <span>194526</span> (<span>176</span> votes)<br>'; echo 'Votes:' .$votes .' <br>'; echo '</div>'; echo '<div class="about_rete">'; echo '<div class="vote">'; echo '<div id="Mark">'; echo '<div id="Maro">Rating: $rating . ' </span></div>'; echo '</div>'; echo '</div>'; echo '</div>'; echo '</div>'; echo '</li>'; } ?> HERE IS WHERE I WANT TO ADD THE FUNCTION echo '<div class="profile_pic"><a href="profile.php?member=' .$member_title . '&memberid=' .$id .'"><img src="http://s3.amazonaws.com/fast-network/photos/c4ca4238a0b923820dcc509a6f75849b.jpg" width="101" height="150"></a></div>'; INSTEAD IT WOULD LOOK LIKE THIS echo '<div class="profile_pic"><a href="profile.php?member=' .$member_title . '&memberid=' .$id .'"><img src=" http://s3.amazonaws.com/fast-network/photos/display_member_image($id).jpg " width="101" height="150"></a></div>'; ultimately i would like some feedback as to how to best approach creating this function to what i need it to do .. i will be using this function anywhere i want the image to be shown.
  10. Hello, I have been trying to figure out how to write a certain php query and for the life of me I can not figure it out. I've tried searching on google like a mad man and still can not figure it out. Maybe Im missing something, Im not sure. I came across this site while googlin for answers. The php code is for a wordpress site I am working on. Here is my current code - <?php $custom_terms = get_terms('videoscategory'); $other_custom_terms = get_terms('product_category'); foreach(array($custom_terms as $custom_term) { wp_reset_query(); $args = array('post_type' => 'product', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'videoscategory', 'field' => 'slug', 'terms' => $custom_term->slug ), array( 'taxonomy' => 'product_category', 'field' => 'slug', 'terms' => $other_custom_term->slug ), ) ); $loop = new WP_Query($args); if($loop->have_posts()) { echo '<h1 style="margin-top:10px;">'.$custom_term->name.'</h1>'; while($loop->have_posts()) : $loop->the_post(); echo '<h2><a href="'.get_permalink().'">'.get_the_title().'</a></h2>'; endwhile; } } ?> Im trying to list all the posts that are in both of my custom taxonomies, however when I try using the code nothing shows but when I use 1 taxonomy at a time, with one array, it works perfectly. Someone on gave me some advice but I do not understand it - generate array of your second taxonomy terms and feed it into the query - What exactly is that advice telling me to do? Any help is appreciated. Thanks.
  11. I have a variable called $sqlCommand , variable is listed twice with two different values. the first $sqlCommand is holding a value of creating a table called page the second $sqlCommand is holding a value of create a table called blog As you can see in the code below : // Create the table 1 for storing pages $sqlCommand = "CREATE TABLE pages ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, page_title VARCHAR(255), page_body TEXT, page_views INT NOT NULL default '0', FULLTEXT (page_title,page_body) ) ENGINE=MyISAM"; $query = mysql_query($sqlCommand) or die(mysql_error()); echo "<h3>Success creating Pages table</h3>"; // Create the table 2 for storing Blog entries $sqlCommand = "CREATE TABLE blog ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, blog_title VARCHAR(255), blog_body TEXT, blog_views INT NOT NULL default '0', FULLTEXT (blog_title,blog_body) ) ENGINE=MyISAM"; $query = mysql_query($sqlCommand) or die(mysql_error()); echo "<h3>Success creating Blog table</h3>"; My question is how is php reading this as two separate values ?? they both seem to be declared in a global fashion , yet when they are inputted into the $query function they both are produced separately ? anybody know the reason for this ? thanks.
  12. Hi, I wonder if someone can help me... I am trying to extract the date into three different variables ready to go into three option boxes for the user to update a person's date of birth. I am using the following to split up the day, month and year: $queryDate = mysql_query("SELECT YEAR(playerDOB), MONTH(playerDOB), DAY(playerDOB) FROM player WHERE playerID='$playerID'") or die (mysql_error()); Now I have tried this within the database and can see that it splits it up. The problem I am having is being able to access them in variables. How do I go about accessing the year, day and month separately from the $queryDate variable? Appreciate the help in advance!
  13. I have a question about PHP, and how it stores data in RAM.. As we know, programs on a computer are run in RAM, and so, when I have a PHP script, and I am writing a string to a variable.... or when I am using file_get_contents to read data from a file into PHP... it's going to load it into RAM..... You see.... what I am really asking is a security question.... On Linux, you can run the following command, to get the 1st approx. 1MB of RAM extracted into a file... dd if=/dev/mem | hexdump -C > OUTPUTFILEHERE.txt And so... if I were to run this command, I would get 1MB of data from the RAM, and I'm thinking... this could contain sensitive data from a PHP script, aka passwords.... Like... if I have the following PHP code.... <?php $password = "my_password_here"; ?> .... then.... "my_password_here" might be stored in RAM, and thus, a hacker could extract the password out of RAM, and use it to compromise my security...? And so.....I have 2 quetions.... (1) how does PHP store variables in RAM? (2) if PHP does store it openly, what is the best way of wiping it...? Would over-writing the password variable with some junk.. manage to erase it from RAM..? Or... would I have to use some kind of PHP "flush" command...? Thank you for reading
  14. I currently use long variable names so I know what each one is at a glance, I also use a two dimensional array. In the current piece of code I have tried to tighten it from for($i=1; $i<12; $i++) { $battingPlayer[$battingLineUp[$i]]['energy'] += mt_rand(10, floor($battingPlayer[$battingLineUp[$i]]['fitness']/10+10)); #If energy is low then player gets a bit of it back $bowlingPlayer[$bowlingLineUp[$i]]['energy'] += mt_rand(10, floor($bowlingPlayer[$bowlingLineUp[$i]]['fitness']/10+10)); #If energy is low then player gets a bit of it back if($battingPlayer[$battingLineUp[$i]]['energy'] > $battingPlayer[$battingLineUp[$i]]['fitness']) $battingPlayer[$battingLineUp[$i]]['energy'] = $battingPlayer[$battingLineUp[$i]]['fitness']; #Energy cannot be more than fitness if($bowlingPlayer[$bowlingLineUp[$i]]['energy'] > $bowlingPlayer[$bowlingLineUp[$i]]['fitness']) $bowlingPlayer[$bowlingLineUp[$i]]['energy'] = $bowlingPlayer[$bowlingLineUp[$i]]['fitness']; #Energy cannot be more than fitness } to this for($i=1; $i<12; $i++) { for($j=0; $j<2; $j++) { if($j) {$x = $battingPlayer[$battingLineUp[$i]];} else {$x = $bowlingPlayer[$bowlingLineUp[$i]];} echo "<br>old energy is ".$x['energy']." and now they have "; $x['energy'] -= mt_rand(10, floor($x['fitness']/10+10)); #If energy is low then player gets a bit of it back if($x['energy'] > $x['fitness']) $x['energy'] = $x['fitness']; #Energy cannot be more than fitness echo $x['energy']; } } While the echo statements show an increase in the number($x['energy']) the variable is not increased when it is used with the full variable name! ($battingPlayer[$battingLineUp[$i]]['energy']). I know one method is to use shorter variable names but I'm very happy with how they are
  15. Hello: Any suggestions how to use all variables of a methods inside an array to apply another method on each one? fuction fn0(){....}//end fn0 function fn1($x1,$x2,$x3,$x4){ $mAr=array($x1,$x2,$x3,$x4); foreach($mAr as $val){ $this->fn0($val); }//end foreach }//end fn1 In reality I have like $x12. Thanks.
  16. Hi, I am following the PHP Academy tutorial on youtube, and I'm on part 4 (http://www.youtube.com/watch?v=cJJKQ8MXGrE). However, I am running into a bit of a problem as I have other session variables for my user login and when I am using the foreach statement I dont want to include the login session variables if you understand, only the product_ variables function cart() { foreach($_SESSION as $name => $value) { if ($value>1) { if (substr($name, 0, =='product_'){ $id = substr($name, 8, (strlen($name)-); echo '<br />'.$id; } } else { echo "Your cart is empty! <br />"; echo $name.': has a value of :'.$value; } } } and this is displayed: As you can see it's also using the login session variables which is causing some issues for me because it's displaying that the cart is empty when it is not! So i'm a bit stuck as to what to do :S Sam-
  17. Hi to all i am trying to create a right variable so can display random questions. Let me explain feather My first question is a checkbox questions with 5 answers. every answer have a 5 more group questions. I need a variables code to do this: Every time the user checks (in first checkbox) the answer 1 and 3 the code automatically selected to display the group of 1 or 3 (not the 2 together) The same philosophy must have and the outher questions, if the answer (on first) is 2, 4 and 5 must display the group of question 2 or 4 or 5. Thanks a lot!
  18. Hello I have a photobooth app that posts photos with comments to a facebook fanpage. The app posts the photos with no problem but the comments are not being posted. there is a form that you comment on an then when you click upload it submits the form and passes the data to another page. I know that the data is passed correctlt because I have tested it with an "echo" statement and it shows up. for some reason though I cannot take the passed variable and insert it into my comment that will be posted with the photo. I have attached the entire upload code but here is a snippet. If I take out $_POST["lcomment"], and use "a generic comment between single quotes' it works fine and posts the generic comment. but when I try to insert the passed variable as the comment 'message' => $_POST["comment"], I get a null message when it posts to facebook. You can see the app in action here http://eyesocialeyes.com/webcam/ and here is where the photos are being posted on Facebook https://www.facebook.com/pages/Izon/190815390965794 . Please help! #Upload photo here $args = array( 'message' => $_POST["comment"], 'img' => '@' . $original, 'aid' => $album_id, 'access_token' => $fanpage_token ); $photo = $facebook->api($album_id .'/photos','post',$args) ; upload.php
  19. Beginners question, I know. I have a variable $name (in this case 311) This needs to be inserted into another variable named param_title, so the result returns '{"metadata.title": "311", I have tried this with the following, but it does not return a result $params_title="'{"metadata.title":\"$name","; What am I doing wrong?? Thanks, Alec
  20. is it possible to store the keys of an array in to variables? currently my code looks like this: function getanswers() { $sql = mysql_query("select answer FROM answers WHERE question_ID= 1 "); while($row =mysql_fetch_row($sql)) { //print_r (array_keys($row)); $ans1 = $row['0']; $ans2 = $row; $ans3 = $row; $ans4 = $row; echo $ans1 . $ans2. $ans3. $ans4 ; } } and all I get are undefined offset notices what am i doing wrong? I'd appreciate any advice the output looks like this: The ‘Sea Swallow’ is an alternative name for which bird? Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 29 Notice: Undefined offset: 2 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 30 Notice: Undefined offset: 3 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 31 Seagull Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 29 Notice: Undefined offset: 2 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 30 Notice: Undefined offset: 3 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 31 Penguin Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 29 Notice: Undefined offset: 2 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 30 Notice: Undefined offset: 3 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 31 Tern Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 29 Notice: Undefined offset: 2 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 30 Notice: Undefined offset: 3 in /Applications/MAMP/htdocs/Quiz/newfile.php on line 31 Cormorant Just in case it helps when I call the array keys they show this: Array ( [0] => 0 )Array ( [0] => 0 )Array ( [0] => 0 )Array ( [0] => 0 ) Thanks in advance to anyone who can help!
×
×
  • 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.