hi, could you help me with this code:
$source1 = 'hello';
$cnt = 1;
$print = $source$cnt;
print $print;
I'm trying to dynamically build the variable $source1, but i cant seem to get it right. thanks
how do i tell php to start the setcookie function which will be on top of page in the middle of the page as it is included?
i know the setcookie function has to be on top of page, but how can i call it from the middle of the page?
hi, i am making a comment script, and i would like to know the best way to check if there are for example more than 5 of the same characters next to eachother in a string, aka spam.
hi, i am making a comment script, and i would like to know the best way to check if there are for example more than 5 of the same characters next to eachother in a string, aka spam.
hi, i am making a comment script, and i would like to know the best way to check if there are for example more than 5 of the same characters next to eachother in a string, aka spam.
after i will click the submit button it will send this info:
<input name="submit" type="hidden" id="submit" value="<?php print $cnt; ?>" />
where the value is the unique number for every form as i will have many forms.
what php function can i use to get the value from the submit field?
i have a php function to add "..." at the end of text if it surpasses 50 characters. but on some texts the last character is a space (" ") so instead of it looking like: lorem ipsum ..., how can i tell it to remove the last space if the last character is a space: lorem ipsum...
thanks
hi i have a form that needs to access the db. everything works as it should but it keeps saying edit_btn is underfined as a php error. but the script works... could you take a look a the script for me at tell me whats wrong with it?
<?php
$error_msg = "";
$success_msg = "";
$title = ""...
instead of saying
<?php
inlude "connectToMysql";
$id = 1;
$sql_default = mysql_query("SELECT * FROM extra WHERE id='$id'");
etc etc
?>
how can i get the $id variable from a form? e.g.
<form>
<?php $id = 1; ?>
</form
how can i give a form an individual id?
istead of all forms (if i have...
lets say i have a db with 8 cells/pieces of info
and i will have about 500 rows. what is the best way to be able to edit all the 8 pieces of info on all the rows by imputing the id of the row. e.g. 5
yes i know how to do all that.. but can u give me a full code example because thats the part im...