ignace
Moderators-
Posts
6,457 -
Joined
-
Last visited
-
Days Won
26
Everything posted by ignace
-
the padding is there however HTML does not show padding in order to display it either wrap it in pre or code tags or assign an id or class to the element and via CSS add the line: white-space: pre;
-
Fetch information from database using unique ID
ignace replied to ryanwood4's topic in PHP Coding Help
SELECT * FROM links WHERE link = $link It would help if you could provide some more information like db structure and some code you already wrote. -
If you want 'no refresh' (altough it is also possible using a refresh) you'll need Ajax (JavaScript) and a script that will upload the image and return the full url to the stored image. Afterwards (after submitting the form definitly) you'll use the full url and store it along with the required attributes into the database.
-
Firefox (Mozilla) is a good option Opera is also a good option but I generally stick to Firefox because of add-ons already available (like FireBug).
-
Neither.
-
SELECT COUNT(*) AS Cnt FROM booking WHERE request_date='$request_date' AND e_time > '$s_time' AND s_time < '$e_time' GROUP BY Cnt
-
if (empty($row_MusicBody['Scene Description']) ^ $row_MusicBody[Author'] === $_SESSION['MM_Username'])
-
blocking users from entering url links in their comments
ignace replied to Buti Othaniel Doubata's topic in PHP Coding Help
if (!empty($_POST['comment']) && preg_match('/[0-9a-z@,_.!:\'\s]+/im', $_POST['comment'])) { -
There are many packages out there some are: - xampp - wamp
-
try: echo "Sending $i<br \>"; socket_write($socket, $i, 4); echo "Submitted $i; Receiving response..."; $input = socket_read($socket, 16); echo "Response: $input<br \>";
-
http://www.phpfreaks.com/forums/index.php/topic,266646.msg1257545.html#msg1257545
-
[SOLVED] MySql concat query, and then trim query
ignace replied to quasiman's topic in PHP Coding Help
UPDATE jos_vm_product p,zdata_w_data wd SET p.product_sku = wd.PartNumber WHERE p.product_sku = SUBSTRING(wd.PartNumber,3) -
Make sure you have form method="post" then use this code: if (!empty($_POST)) { $name = $_POST['name']; $email = $_POST['email']; $tel = $_POST['tel']; $question = $_POST['question']; $phpversion = phpversion(); if (mail( "Marnav14@earthlink.net", 'Contact Us Form', "Name: $name\r\n email: $email\r\n Tel: $tel\r\n question: $question", "From: $name <$email>\r\nReply-To: $name <$email>\r\nX-Mailer: PHP/$phpversion")) { echo 'e-mail send'; //header( "Location: http://www.myninelives.com/thank.html" ); } else { echo 'e-mail was not send'; } } Now if you send the mail it will say e-mail send or e-mail was not send. In the latter mail() doesn't work properly and their is something wrong with your PHP SMTP settings.
-
can anyone help me on this script search multiple words
ignace replied to merck_delmoro's topic in PHP Coding Help
http://www.phpfreaks.com/forums/index.php/topic,265154.0.html -
Array help hopefully somebody knows model railroading....
ignace replied to guyfromfl's topic in PHP Coding Help
$defaultValues['$func'] should be: $defaultValues[$func] -
$password = 'somepassword'; $salt = md5(time());//32 characters long $hash = md5($salt . $password) . $salt;//64 characters long Salt: 58a9eeb60f1f6500a93a1bf494dec24c Hash: 58a9eeb60f1f6500a93a1bf494dec24c58a9eeb60f1f6500a93a1bf494dec24c
-
Download the PHP source code from http://us2.php.net/downloads.php Learn how to hack the PHP core http://us2.php.net/manual/en/internals2.php and write your own echo (language construct)
-
$length = 180;//characters long $excerpt = $string; if ($length + 10 < strlen($string)) { $pos = strpos($string, ' ', $length); $excerpt = substr($string, 0, $pos >= $length ? $pos : $length); }
-
[SOLVED] f.* Mean selecting all Querys or only the F?
ignace replied to Gayner's topic in PHP Coding Help
f is an alias for ibf_forums thus f.* is the same as ibf_forums.* and thus it selects all columns of that table. -
Oh so you always write: $query = mysql_query('..') or die(); Oh yeah sure that is helpfull. While having this in your signature: Read: http://www.phpfreaks.com/blog/or-die-must-die
-
Euhm.. Multiple files are accessed as: $_FILES['userfile']['name'][0]
-
subtract two dates and get an integer???
ignace replied to SystemOverload's topic in PHP Coding Help
That actually doesn't matter but given you are retrieving the data from MySQL you might aswell do the conversion in your query so that you can start working with it in PHP -
that doesn't work either. It just inserts 0 when it should be 1. EDIT: IF I ECHO OUT THE $AUTHORID IT GIVES A RESOURCE ID. Then you are not using my code.