I have a hyperlink in my excel sheet say:
http://abc.com/u?/abc,143
When i open this link it turns out something like this:
http://abc.com/cdm4/document.php?CISOROOT=/abc&CISOPTR=160&CISOSHOW=143
I get a new number for every link. In the above example it is “160” (CISOPTR=160).
How can i extract these numbers for every link and store it?
Everything after
.php?is usually a collection of GET request parameters. You can access them by using the global$_GETarray, like so:$myvar = $_GET['CISOPTR'];Things to keep in mind:
intval()for numbers andmysql_real_escape_string()for strings)