Search found 94 matches

by revocause
Mon Jun 25, 2007 7:37 am
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

Thats because its on the first page : )
by revocause
Mon Jun 25, 2007 7:35 am
Forum: PHP - Code
Topic: What the heck am i doing with php and xml???
Replies: 15
Views: 4948

...wow that's funny : )
by revocause
Fri Jun 22, 2007 3:44 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

I did what you posted, and it doesn't work. example: Page 1 <?php session_start(); if (isset( $_POST['quantity'], $_POST['price'])) { $_SESSION['quantity'] = $_POST['quantity']; $_SESSION['price'] = $_POST['price']; $_SESSION['new_variable'] = (isset($_POST['new_variable'])) ? $_POST['new_variable']...
by revocause
Fri Jun 22, 2007 3:13 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

hey panama jack, How would i call that SESSION on the next page ? I tried what you posted to set the SESSIONS, and then on the next page i used. <?php session_start(); $_SESSION['new_variable']; ?> and that isnt working. Do i have to include the whole : $_SESSION['new_variable'] = (isset($_POST['new...
by revocause
Fri Jun 22, 2007 2:11 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

I have the whole thing working just exactly as it should be, and its passing all the of the correct $variables. Everything is working.. EXCEPT for that warning message on my select menu page as soon as you hit the submit button . It looks normal, then you hit 'submit' button . I even have all the $v...
by revocause
Fri Jun 22, 2007 1:40 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

I figured out what the warning/ error is from. Its because i have SESSIONS using newly created variables that are 'child' variables that are dependent on select menu variables. so say for example you have a select menu that has 2 options. option 1 = quantity option 2 = price and if you make a $new_v...
by revocause
Fri Jun 22, 2007 10:04 am
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

thats because i was taking it out where the variables for quantity changed. $quantity1 = $quantity; I'm messing with it and when i posted it i had already changed it , tyring to figure it out. sorry. the warning still happens as long as I'm using 'quantity' . a database fetched data. So im pretty su...
by revocause
Fri Jun 22, 2007 9:15 am
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

I'm not using session_register() the full code to this: SESSIONS ( take note that 'product_name' is irrelevant to the product_main select menu) <?php session_start(); if (isset($_POST['product_name'] )) { $_SESSION['product_name'] = $_POST['product_name']; $_SESSION['quantity1'] = $_POST['quantity1'...
by revocause
Fri Jun 22, 2007 7:37 am
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

the $row is coming from , <?php // db query fetch for quantity, baseprice , weight. if(isset($_POST['product_1'])) { $sql = "SELECT quantity, baseprice, weight FROM db_product WHERE id = " . $_POST['product_quantity']; $res = mysql_query($sql); $row = mysql_fetch_assoc($res); $quantity = $...
by revocause
Thu Jun 21, 2007 3:39 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

I have two things going on with SESSIONS. The first starts at top of page. <?php session_start(); if (isset($_POST['product_name'] )) { $_SESSION['product_name'] = $_POST['product_name']; $_SESSION['quantity'] = $row['quantity']; } ?> That's working. Except for that Warning message popping up. the S...
by revocause
Thu Jun 21, 2007 2:40 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

I'm doin that , but im getting this Warning. "Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data" I'm pretty sure its talking about this $_...
by revocause
Thu Jun 21, 2007 2:05 pm
Forum: PHP - Code
Topic: turning database fetched values into $variables?
Replies: 60
Views: 18582

turning database fetched values into $variables?

Hi, i pulled some data from a database and its working . the problem is, i never had to do convert anything before. So how would i convert a 'fetched' database value into a useable php variable to pass on in sessions? example (and i hope i do the tags right so i dont get in trouble l o l ) $quantity...
by revocause
Wed Jun 20, 2007 10:53 am
Forum: PHP - Code
Topic: Getting a value from a textbox in the same php form
Replies: 17
Views: 3503

BUT... like a fat lady leaning over to get somethin tiny in a rain drain.. if you ever need those variables of first name and last name again anywhere in your site on other pages. you have to use sessions. Sessions will store it through out the entire time that person is on your website. so on any o...
by revocause
Wed Jun 20, 2007 10:47 am
Forum: PHP - Code
Topic: Getting a value from a textbox in the same php form
Replies: 17
Views: 3503

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] so if you...
by revocause
Wed Jun 20, 2007 10:23 am
Forum: PHP - Code
Topic: Getting a value from a textbox in the same php form
Replies: 17
Views: 3503

RE xrez

why not just make your input text so its in regular HTML give it a name like: name= "my_input_textbox_blahblahblah " Then up in header put php to say somethin like <?php //set variable $name = $_POST['my_input_textbox_blahblahblah ']; ?> That would convert whatever they put into the text b...